Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to sign-in on Huawei #2091

Closed
Sam101011 opened this issue Nov 14, 2023 · 46 comments
Closed

Unable to sign-in on Huawei #2091

Sam101011 opened this issue Nov 14, 2023 · 46 comments
Labels

Comments

@Sam101011
Copy link

Describe the bug

The latest changelog states:

Allow sign-in without linking device. Useful for devices that are not qualified to run Google Play Services (e.g. because of Huawei ban).

I've tried it numerous times, cleared data and reinstalled to no avail.

To Reproduce
Steps to reproduce the behavior:

  1. Install microG services core and all of the other required components
  2. Enable Google account registration
  3. Attempt logging in
  4. See error

Expected behavior
I hoped I'd finally be able to login as that'd allow me to use the couple gapps I still find useful

Screenshots
Screenshot_20231114_061423_com google android gms

System
Android Version: 10
Custom ROM: EMUI 12
Device: Huawei p40 lite(JNY-LX1)

@Sam101011 Sam101011 added the bug label Nov 14, 2023
@Aeon1704
Copy link

Aeon1704 commented Nov 19, 2023

I have same bug... or whatever it is. Tried Aurora Store with google account after that, it worked. MicroG didn't.
P.s. i need microG and it's companion simply to verify Google Paid App info on Huawei. Without account it is impossible.

@Sapiosenses
Copy link

There is a test build of GMScore that is reputedly designed for Huawei devices - though this is not publicly documented.

I have talked to Huawei owners who claim it works, but the microG project officially advises people not to try it unless someone from microG asks them to.

See the reference to the "-hw" builds in the latest release notes:

https://github.com/microg/GmsCore/releases/tag/v0.3.0.233515

@Sam101011
Copy link
Author

Nope. Neither hw nor lh work. The wait goes on

@Aeon1704
Copy link

Can confirm. Not working.

@bulbulogludemir
Copy link

Afaik, the only devices can run the hw version of MicroG is the ones running on EMUI 13.1... So, If your device is below EMUI 13.1, then no chance....

@Sam101011
Copy link
Author

Bruh

@LukisG
Copy link

LukisG commented Nov 30, 2023

Can't find it the git issue anywhere that helped me fix this but I made it working. Huawei p40 lite,
I use latest version with -hw in the name and to make it work:

  1. Disable network,
  2. Force stop microg
  3. Clear cache and temp,
  4. Open microg
  5. Select device registration profile (arm64-v8a)
  6. Turn on internet and disable/enable device registration.
  7. Wait for ID
  8. Login to Google.

Thank me later :)

@bulbulogludemir
Copy link

Can you log in to your google account in YouTube, Google Maps...etc. ?

@Sam101011
Copy link
Author

Just tried it and it worked
BUT
I can't sign in into any google apps, which makes the whole thing pointless. I still get the pop-ups saying "Play Services are not supported-bla-bla". Trying to login again just shows that the profile was already added. Tried with gAuthenticator, Translate and Gmail.

Uninstalled, reinstallled and tried with all the other profiles as well. Same result every time. And tbh even if I knew how to create custom profiles, it's highly likely that it wouldn't work either. It looks like signature spoofing is still required, despite it being completely impossible to achieve on Huawei.

Idk why the Huawei login option hasn't been added yet, like on Vanced microG, along with dark mode(probably some technical issues).

TL:DR: You can login in microG, but not in any gapps

@LukisG
Copy link

LukisG commented Dec 1, 2023

No sadly I haven't been able to login, only few apps work, google play and Google play games, but it's buggy as hell and alot of features doesn't work.

@mar-v-in
Copy link
Member

mar-v-in commented Dec 3, 2023

The -hw version is currently only meant for testing on Huawei P60 Pro with latest EMUI version. Before reporting issues, always make sure that none of the items in microG Self-Check has an unchecked box. If you are using a Huawei device in Malaysia or Thailand, you can also try to install the -lh version of microG from AppGallery.

microG version other than -hw and -lh currently have the registration-less Google Account login disabled by default, with no user interface to enable it.

@LukisG
Copy link

LukisG commented Dec 4, 2023

@mar-v-in

The -hw version is currently only meant for testing on Huawei P60 Pro with latest EMUI version. Before reporting issues, always make sure that none of the items in microG Self-Check has an unchecked box. If you are using a Huawei device in Malaysia or Thailand, you can also try to install the -lh version of microG from AppGallery.

microG version other than -hw and -lh currently have the registration-less Google Account login disabled by default, with no user interface to enable it.

I'm using it on Huawei p40 lite:

  • version: 12.0.0.258
  • Emui: 12.0.0
  • MicroG version: 0.3.0.233515-hw
  • self checks that are not checked:
    • Signature spoofing
    • GMS core has correct signature.
  • device profile: emulator arm64-v8a (android 13)
  • root: no (never intend on rooting yet)

I don't know if any of this information will help you or anything with the development, but if needed I can test Other versions on my device, to see if I get any of them working.

Currently tested apps that partially work:

  • Google play store - detects accounts but does not fully load images/crashes when trying to switch
  • Google play games - crashes when switching accounts.
    • logging into games does not work (known issue).
  • Youtube - crashes instantly.

P.S. we can create separate issue if you need me as tester.

@SamWang3047
Copy link

I fixed the sign-in problem, it works for me, try to set your date and time to Auto sync. Then try to sign in again.

@NeoGeo2K
Copy link

NeoGeo2K commented Jan 2, 2024

Try many versions. Found work for me (MatePad T10S).

https://dl.youtubevanced.org/new/microg/microg-latest-DEV-By-Vanced%20-team-(YouTubeVanced.org).apk

Old version. But work. Have button Huawei on first logon screen.

All other versions didnt have this button and get error "Try later"

@3laaHisham
Copy link

Try many versions. Found work for me (MatePad T10S).

https://dl.youtubevanced.org/new/microg/microg-latest-DEV-By-Vanced%20-team-(YouTubeVanced.org).apk

Old version. But work. Have button Huawei on first logon screen.

All other versions didnt have this button and get error "Try later"

Thanks a lot. This worked for me.

@Parsaww
Copy link

Parsaww commented Jan 8, 2024

Try many versions. Found work for me (MatePad T10S).
https://dl.youtubevanced.org/new/microg/microg-latest-DEV-By-Vanced%20-team-(YouTubeVanced.org).apk
Old version. But work. Have button Huawei on first logon screen.
All other versions didnt have this button and get error "Try later"

Thanks a lot. This worked for me.

hi is there any chance you could share the apk on another host? the website seems to be suspended

@LukisG
Copy link

LukisG commented Jan 8, 2024

Try many versions. Found work for me (MatePad T10S).
https://dl.youtubevanced.org/new/microg/microg-latest-DEV-By-Vanced%20-team-(YouTubeVanced.org).apk
Old version. But work. Have button Huawei on first logon screen.
All other versions didnt have this button and get error "Try later"

Thanks a lot. This worked for me.

hi is there any chance you could share the apk on another host? the website seems to be suspended

Please check the solution above, it's already solved. Tldr you need to fresh install it and set your device to emulated then you can login on latest version of microg

@LukisG
Copy link

LukisG commented Jan 8, 2024

Can't find it the git issue anywhere that helped me fix this but I made it working. Huawei p40 lite,
I use latest version with -hw in the name and to make it work:

  1. Disable network,
  2. Force stop microg
  3. Clear cache and temp,
  4. Open microg
  5. Select device registration profile (arm64-v8a)
  6. Turn on internet and disable/enable device registration.
  7. Wait for ID
  8. Login to Google.

Thank me later :)

@Parsaww you don't need -hw you can use latest version without any prefix

@3laaHisham
Copy link

Try many versions. Found work for me (MatePad T10S).
https://dl.youtubevanced.org/new/microg/microg-latest-DEV-By-Vanced%20-team-(YouTubeVanced.org).apk
Old version. But work. Have button Huawei on first logon screen.
All other versions didnt have this button and get error "Try later"

Thanks a lot. This worked for me.

hi is there any chance you could share the apk on another host? the website seems to be suspended

https://drive.google.com/file/d/10wJD-yd86_QOWznzOewPGtWI5uh-RmS5/view?usp=drivesdk

@mar-v-in
Copy link
Member

mar-v-in commented Jan 9, 2024

"Vanced microG" is not microG. It is a third party project that patched microG to remove some security functionality to allow their modded YouTube apps to run. At the same time, they broke 90% of microG's functionaloty. If you're using this "Vanced microG" or similar projects (e.g. "MicroG RE"), this is totally unsupported are. In this case please don't report any issues here as it's well known that most things won't work with it.

microG's support for Huawei devices and EMUI is still very young. The device profile feature (which allows to simulate a different device) allows to login on Huawei devices as was described above. Some versions of EMUI can be used with microG -hw and -lh versions, but again, this is still in development. Once it's working fine, there will be official releases on the website and in Huawei AppGallery.

@Wojtaz0w
Copy link

Vanced microG is never intended as replacement for microG official. Its sole purpose is to support YouTube (Re) Vanced . Do not install it from unofficial websites like the one ending in .org , only use mMicroG or VancedMicroG if u have YouTube ReVanced, otherwise it is useless!!

@rollingmoai
Copy link

Some versions of EMUI can be used with microG -hw and -lh versions

What is the difference between the -hw and -lh versions, and which one should I use?

@Parsaww
Copy link

Parsaww commented Jan 12, 2024

"Vanced microG" is not microG. It is a third party project that patched microG to remove some security functionality to allow their modded YouTube apps to run. At the same time, they broke 90% of microG's functionaloty. If you're using this "Vanced microG" or similar projects (e.g. "MicroG RE"), this is totally unsupported are. In this case please don't report any issues here as it's well known that most things won't work with it.

microG's support for Huawei devices and EMUI is still very young. The device profile feature (which allows to simulate a different device) allows to login on Huawei devices as was described above. Some versions of EMUI can be used with microG -hw and -lh versions, but again, this is still in development. Once it's working fine, there will be official releases on the website and in Huawei AppGallery.

Hi yes im aware of that , after some research it seems the Vanced microg version had the huawei button copied from a microg fork made specifically for huaweis and i finally found it , it works very well with google apps and drive seems to work with whatsapp backup, play store still doesn't work but Aurora is better.
Heres the repo https://github.com/jcchikikomori/GmsCoreHuawei
Used one version before the latest release.

@mar-v-in
Copy link
Member

mar-v-in commented Jan 12, 2024

What is the difference between the -hw and -lh versions, and which one should I use?

The -hw version uses the Huawei Differentiated Signature Capability. It's an official feature to support usecases like microG that require to be detected under a different signature. It's a relatively new feature, currently (as far as I know) only available to the P60 Pro with latest EMUI version.

The -lh version uses a hack from Lighthouse, a previous microG fork made for Huawei devices in Malaysia and Thailand, to reach the same functionality. It may work with other Huawei devices, but because it's not an official feature, it may break at any time.

The easiest way to figure out which version is working for you, is to install it and check the Self-Check in microG settings. If the box behind "System spoofs signature" is checked, you're good to go.

If the box is not checked, only a small subset of microG's functionality will be available:

  • Push notifications in some apps
  • Google sign-in in some apps

Most third party apps made for use with Google Play Services will continue to not work correctly and show corresponding error messages.

@Parsaww you might be in the state I just described, as the version you linked implements neither of the two mechanisms.

@rollingmoai
Copy link

rollingmoai commented Jan 12, 2024

Thanks for the detailed explanation; I was trying to find that information. The -lh version from the AppGallery works for me under EMUI 13.

@coolkid3245
Copy link

Using -lh version works for me.

Huawei Mate 30 Pro (bought indonesian version) LIO-L29
EMUI 12.0.0.365 C301

Installed from appgallery using malaysian region.

@khalidsbaih
Copy link

1
apply the settings in the photo & it will work

@bulbulogludemir
Copy link

What's the device, and EMUI version?

@rollingmoai
Copy link

@mar-v-in Where is the -lh variant in the latest version? https://github.com/microg/GmsCore/releases/tag/v0.3.1.240913

@DN2048
Copy link

DN2048 commented Mar 28, 2024

1 apply the settings in the photo & it will work

Worked for me on my Huawei P40 Pro with the latest Vanced microG. Thanks.

@Gotoro
Copy link

Gotoro commented Mar 29, 2024

Can't find it the git issue anywhere that helped me fix this but I made it working. Huawei p40 lite, I use latest version with -hw in the name and to make it work:

  1. Disable network,
  2. Force stop microg
  3. Clear cache and temp,
  4. Open microg
  5. Select device registration profile (arm64-v8a)
  6. Turn on internet and disable/enable device registration.
  7. Wait for ID
  8. Login to Google.

Thank me later :)

This is the solution

@bulbulogludemir
Copy link

Vanced microG? Doesn't it a thing for YouTube Vanced?

@bulbulogludemir
Copy link

@Gotoro can you use Google Apps with your google account? YouTube, Chrome, GMail....etc. ?

@mar-v-in
Copy link
Member

mar-v-in commented Mar 29, 2024

Please stop talking about (Re)Vanced microG in this venue. It already confuses a lot of people that they took the microG name to create an incompatible software, please don't add on top.

This issue is exclusively about signing in with upstream microG on Huawei devices.

If the last two settings in Google Account section of microG settings is configured as in khalidsbaih's screenshot, sign in should work fine on Huawei devices. This is now the default on the -hw variant, which I suggest to use when running microG on supported Huawei devices with EMUI.

@LukisG
Copy link

LukisG commented Mar 29, 2024

Marvin if you can pin this in any way so it stops being replied here is solution for those who is experiencing issues with loging in on huawei:

  1. Disable network,
  2. Force stop microg
  3. Clear cache and temp,
  4. Open microg
  5. Select device registration profile (arm64-v8a)
  6. Turn on internet and disable/enable device registration.
  7. Wait for ID
  8. Login to Google.

@Gotoro
Copy link

Gotoro commented Mar 29, 2024

@bulbulogludemir hey there. I use yt vanced and brave, both work. gmail requires you to sign in with google, which pulls up microg sign-in menu. Unfortunately, even if you login in it just errors out

@bulbulogludemir
Copy link

@Gotoro oh okay, thank you for the info. I guess still the only way to use microg fully is if you have a device which has EMUI 13.1 or EMUI 14 since those are the only 2 versions which has spoofing enabled.

@mar-v-in
Copy link
Member

mar-v-in commented Mar 29, 2024

@LukisG with the settings as mentioned above, you don't need to go the route you propose (which may break apps you previously used with microG)

I'm closing this issue, as I don't see any value added anymore.

@rollingmoai
Copy link

This is now the default on the -hw variant, which I suggest to use when running microG on supported Huawei devices with EMUI.

@mar-v-in Does that mean it's now safe for me to move from -lh to -hw variant? I thought not all devices support it yet?

@mar-v-in
Copy link
Member

Yes, not all devices support -hw yet, but that's Huawei's doing, nothing I can help with. Doesn't it work using the latest -lh build from AppGallery for you?

@ghost
Copy link

ghost commented Mar 30, 2024

Marvin if you can pin this in any way so it stops being replied here is solution for those who is experiencing issues with loging in on huawei:

  1. Disable network,
  2. Force stop microg
  3. Clear cache and temp,
  4. Open microg
  5. Select device registration profile (arm64-v8a)
  6. Turn on internet and disable/enable device registration.
  7. Wait for ID
  8. Login to Google.

Yea, tried this and it worked

@rollingmoai
Copy link

Yes, not all devices support -hw yet, but that's Huawei's doing, nothing I can help with. Doesn't it work using the latest -lh build from AppGallery for you?

@mar-v-in I received the 0.3.2 update from the AppGallery, and the System spoofs signature has become unchecked. Is this something I should be worried about?
image

@mar-v-in
Copy link
Member

mar-v-in commented May 16, 2024

@rollingmoai This shouldn't be like this. If you have previously used -lh version you very likely shouldn't have been updated to -hw. What is the country you have configured in AppGallery?

@rollingmoai
Copy link

rollingmoai commented May 16, 2024

I had mine set back to the Philippines at some point. I've now switched to Malaysia and rolled back MicroG by reinstalling it, now it doesn't prompt me to update to the -hw version. Oh well, I just have to wait for EMUI 14 🤷

@mar-v-in
Copy link
Member

@rollingmoai can you share which device you use? And was this an automated update in the background or did you manually click the upgrade button?

@rollingmoai
Copy link

I had mine set back to the Philippines at some point. I've now switched to Malaysia and rolled back MicroG by reinstalling it, now it doesn't prompt me to update to the -hw version. Oh well, I just have to wait for EMUI 14 🤷

Update: My phone has now received the 14.2 update, and migrating to -hw now works without issues.

@rollingmoai can you share which device you use?

Nova 11i

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests