GmsCore icon indicating copy to clipboard operation
GmsCore copied to clipboard

Suggestment

Open Wandstick opened this issue 3 years ago • 21 comments

You should add the huawei sign in option that the vanced microG has added it saves as so much trouble and will actually add so much to us huawei users which can't root their devices to get custom rooms with signature spoofing since OEM unlocking is completely removed from the system.

Wandstick avatar May 05 '22 20:05 Wandstick

It isn't needed, microG GmsCore since version 0.2.23.214816 allow to spoof device identity which is similar to the "huawei sign in" but more powerful.

ale5000-git avatar May 07 '22 11:05 ale5000-git

No it does not, it still needs me to have a ROM that supports signature spoofing and that is why we need a huawei sign in button to not confuse new users

Wandstick avatar May 07 '22 16:05 Wandstick

microG doesn't strictly need signature spoofing to work. Signature spoofing is needed only to bypass the check of signature that it is in every app (compiled with Google libraries) but microG alone, including adding an account will still work even without it. On Huawei it additionally need to spoof another phone but it has nothing to do with signature spoofing.

You can alternatively patch the external app to bypass the signature check and it will still use microG even without signature spoofing. Vanced didn't do anything special, they have a patched YouTube so obviously they didn't need signature spoofing.

ale5000-git avatar May 09 '22 08:05 ale5000-git

Huawei sign-in button was the worst thing ever (an hack at most) and it led to confusion. A lot of phones are blocked (all the uncertified phones) so do you expect a separate button for every brand?

Actually on old uncertified phones Google simply say uncertified but still allow it to connect instead new uncertified phones are blocked completely.

ale5000-git avatar May 09 '22 08:05 ale5000-git

Nope, microg itself doesn't even work without signature spoofing and the proof for that is when I attempt to sign in with a Google account, at the end when I press the "I agree" button it says "Sorry... There was a problem communicating with Google's servers". I mean like if you got a fix for that I would be ultimately thankful for that.

Wandstick avatar May 09 '22 12:05 Wandstick

Also the reason for the huawei sign in being added in the first place was because huawei was the only brand in the brand in the world which cannot be root to therefore patch or install ROM if it could be rooted you wouldn't see me here right now.

Wandstick avatar May 09 '22 18:05 Wandstick

You are misunderstanding, signature spoofing and device spoofing are separate. Even if you get root and signature spoofing you will still be unable to add an account.

Signature spoofing is needed to avoid apps saying that Google Play Service isn't installed. Device spoofing is needed to avoid Google blocking your requests (for example to add an account) from banned devices.

Quote:

Device profiles

This features is mostly useful for Huawei devices or other devices that are banned from accessing Google services. Choosing a profile of a non-banned device should allow using the device with Google services.

For now, two device profiles are included with microG (Nexus 5X with Android 8.1.0 and Moto G with LineageOS 14.1).

If you are a developer, you can easily create a device profiles based on data gathered from a device. See this file for a sample device profile. Once created, you can import device profiles in microG settings (under "Device registration") to test the profile.

ale5000-git avatar May 10 '22 11:05 ale5000-git

Quick question, is it possible for you to help me get microG to work on this huawei phone, since I tried registering with both devices you've mentioned but they had not worked sadly.

Wandstick avatar May 10 '22 11:05 Wandstick

I don't have Huawei myself so I cannot test but it is possible that there are problems with the error being cached.

Try to follow the procedure of this user: https://github.com/microg/GmsCore/issues/1651#issuecomment-1034312454

ale5000-git avatar May 10 '22 11:05 ale5000-git

So what do I do now is there anything possible I could do to make it work

Wandstick avatar May 10 '22 12:05 Wandstick

Quote:

  • disable wifi/data
  • re-install (or force stop + clear data/cache) microG service core
  • open microG settings, choose profile
  • force stop microG
  • enable wifi/data
  • go to microG settings and disable/enable google cloud registration (make sure it is registered)
  • go login with your account

ale5000-git avatar May 10 '22 12:05 ale5000-git

OK, I did all of this, I tried going into Google Play and it worked then I pressed sign in and then put my account details and all of that. After it got my account info it brought me back to the sign in page, the account is on the device but the apps just won't display the information got by them. Why is this happening

Wandstick avatar May 10 '22 12:05 Wandstick

It is what I tell you before:

  • Device spoofing is needed to avoid Google blocking your requests (so with this you can add the account inside microG).
  • Signature spoofing is needed only to bypass the check of signature that it is in every app (so without this apps will refuse to use microG and the account).

The alternative of signature spoofing on the device is to manually patch every app that use Play Services to accept a different signature. YouTube Vanced was patched, this is why the account worked.

ale5000-git avatar May 10 '22 13:05 ale5000-git

How can I do that

Wandstick avatar May 10 '22 13:05 Wandstick

Can I use lucky patcher

Wandstick avatar May 10 '22 13:05 Wandstick

I never used lucky patcher so I don't know, there are other forums where you can ask that maybe know more.

About the part of patching apps it is explained here: https://github.com/microg/GmsCore/issues/414#issuecomment-325027874

ale5000-git avatar May 10 '22 13:05 ale5000-git

Yo, I think I found the solution for huawei users to be able to use microG. So basically I was playing around after enabling device profile and I installed Gmail, now Gmail allowed you to login with Microsoft yahoo Google etc. I then tried using Microsoft account and it actually worked, so my assumption is that if someone takes microG and just remove the sign in feature, everything will work for use poor huawei users.

Wandstick avatar May 16 '22 11:05 Wandstick

Can you edit the title of your issue to be understandable ? thx

freechelmi avatar Jun 21 '22 10:06 freechelmi

https://github.com/jcchikikomori/GmsCoreHuawei there is a patched microg for huawei

RJK01-darkside avatar Jul 09 '22 00:07 RJK01-darkside

@RJK01-darkside: Official microG also contain the device spoofing code (to avoid Google ban of uncertified devices), others are just outdated versions.

But still there is nothing to do for missing signature spoofing other than the way explaind here: https://github.com/microg/GmsCore/issues/1716#issuecomment-1122408983

ale5000-git avatar Jul 09 '22 13:07 ale5000-git

I am surprised no one yet patched play store the same way vanced team did.

Wandstick avatar Jul 09 '22 17:07 Wandstick

Signature spoofing could be applied Revanced using a custom, per app, Patches. I'll test a solution for Huawei devices. ReVanced Youtube includes a patch for spoofing, for example.

cheadrian avatar Nov 11 '22 13:11 cheadrian

It is one thing to spoof sign a single Google app versus multiple Google apps. John Cyrill Corsanes abandoned his efforts to this project in GitHub .

On Fri, Nov 11, 2022, 08:02 cheadrian @.***> wrote:

Signature spoofing could be applied Revanced using a custom, per app, Patches https://github.com/revanced/revanced-patches. I'll test a solution for Huawei devices. ReVanced Youtube includes a patch for spoofing, for example.

— Reply to this email directly, view it on GitHub https://github.com/microg/GmsCore/issues/1716#issuecomment-1311672588, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZSVHMBNO2LKQ5BGJRLPHODWHY7VJANCNFSM5VGH5Q6A . You are receiving this because you were mentioned.Message ID: @.***>

RJK01-darkside avatar Nov 11 '22 13:11 RJK01-darkside

It is, but as long as we can't root, unlock bootloader or use other methods to gain access to system files, it's the only way to use GApps without shady Chinese containers or emulators (VMOS, Gspace, etc.).

cheadrian avatar Nov 11 '22 13:11 cheadrian

Good luck in your endeavors.

On Fri, Nov 11, 2022, 08:17 cheadrian @.***> wrote:

It is, but as long as we can't root, unlock bootloader or use other methods to gain access to system files, it's the only way to use GApps without shady Chinese containers or emulators (VMOS, Gspace, etc.).

— Reply to this email directly, view it on GitHub https://github.com/microg/GmsCore/issues/1716#issuecomment-1311685343, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZSVHMEPN3K36ELI66GSY3TWHZBM3ANCNFSM5VGH5Q6A . You are receiving this because you were mentioned.Message ID: @.***>

RJK01-darkside avatar Nov 11 '22 13:11 RJK01-darkside

I forgot to mention there is a recently released app lighthouse using MicroG with some success. https://forum.xda-developers.com/t/so-this-is-a-solution-that-works-for-some-google-apps-i-did-some-test-and-heres-the-result.4515073/

On November 11, 2022 8:17:02 AM cheadrian @.***> wrote:

It is, but as long as we can't root, unlock bootloader or use other methods to gain access to system files, it's the only way to use GApps without shady Chinese containers or emulators (VMOS, Gspace, etc.). — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

RJK01-darkside avatar Nov 11 '22 13:11 RJK01-darkside

I saw that, tested it but it doesn't work. I think it is using a Chinese or Asian version of the phone, which still have access to Huawei MDM API.

cheadrian avatar Nov 11 '22 13:11 cheadrian

@ale5000-git Man, you are patient.

If I don't get you wrong:

  1. Device spoofing is to make Google believe your device is certified which should be easy as it ultimately depends on MicroG to decide what to be sent to Google.
  2. Software signature spoofing is for MicroG to deceive other apps which are calling GMS api to believe that MicroG is the authentic Google Play Service and allow themselves to communicate with MicroG. This is much harder, it requires either a modified ROM(i.e. unlocked bootloader) or root access to the device.

What's Revanced team doing is mod those apps and have them trust Revanced MicroG which has not just a different signature but also a different package name.

I'm a software developer but I'm not familiar with Android development at all. I can see Revanced MircoG is currently only serving Youtube and Youtube Music, but I also see they have achieved a lot, especially for Revanced Youtube which includes not just Revanced MiroG mod, but also numerous other mods.

I feel like modding other apps which call GMS api with Revanced tool is not of much difference as modding Youtube, cause I think Youtube itself is already calling 90%, if not all, of GMS account-related apis.

But I don't see many developers out there doing this. I'm not sure whether it's because this is hard, or presumably everyone using MicroG should have access to an unlocked bootloader/root privilege hence no need to get around with signature spoofing by modding apps at all.

Smoovsky avatar Apr 01 '23 10:04 Smoovsky