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

Various Google Apps stop working with microG (YouTube, Maps, Gmail, Google Opinion Rewards, etc.) #2680

Closed
phucvu4324 opened this issue Dec 11, 2024 · 60 comments

Comments

@phucvu4324
Copy link

phucvu4324 commented Dec 11, 2024

Affected app
Name: Google Opinion Rewards, Google App, Gmail, Maps, YouTube
Package id
com.google.android.apps.paidtasks
com.google.android.gm
com.google.android.googlequicksearchbox
com.google.android.apps.maps
com.google.android.youtube

Describe the bug
Google Apps including Opinion Rewards, Google App, Gmail, Maps, YouTube stopped working since last app update

To Reproduce
Steps to reproduce the behavior:

  1. Install/Update Opinion Rewards with versionCode 2019049870, Google App with versionCode 301437738, Gmail with versionCode 64884528, Maps with versionCode 1067838727, YouTube with versionCode 1550046656
  2. Open affected apps
  3. See error. It says that Play Services isn't installed or exit itself if installed without old previous app data, Account login function also does not work at all

Expected behavior
Apps should works with account, does not show any dialogues show that it doesn't have Play Services installed.
If i downgrade these affected apps to older version, it working again.

Screenshots
Image
Image
Image
Image
Image

System
Android Version: 14
Custom ROM: LineageOS 21 : 21-20241101-microG-akari

microG
microG Core version: 0.3.4.240913
microG Self-Check results: All ticked

Image
Image
Image

Additional context
This might also affects to more Google apps in future

@phucvu4324 phucvu4324 changed the title [com.google.android.apps.paidtasks] Google Opinion Rewards and other Google apps started stop working with microG [com.google.android.apps.paidtasks] Google Opinion Rewards, YouTube and other Google apps started stop working with microG Dec 11, 2024
@phucvu4324
Copy link
Author

I tried with 0.3.5.240913, but its still the same, nothing changed.

@mcgi5sr2
Copy link

0.3.2.240913-21 same issue.

I think their is another issue open that covers this, so potential duplicate

@Quills245
Copy link

Quills245 commented Dec 11, 2024

Family link login also seems to be broken after updating to 2.42.0.T.702836465

Downgrading to Family Link 2.41.0.S.703253343 worked

@phucvu4324
Copy link
Author

0.3.2.240913-21 same issue.

I think their is another issue open that covers this, so potential duplicate

it affects any microG version, as far as i tested from 0.2.26 till 0.3.5

@phucvu4324
Copy link
Author

phucvu4324 commented Dec 11, 2024

I think their is another issue open that covers this, so potential duplicate

i don't think so, there just issue about Maps doesn't work

@LZeugirdor
Copy link

Can confirm this is happening for me on Calyx OS on the Pixel 4A. Gmail JUST got updated and is no longer working, my google voice has been out all day today and yesterday.

@Tentos
Copy link

Tentos commented Dec 11, 2024

I have installed com.google.android.googlequicksearchbox and tried to capture possible errors with LogFox.

I have stumbled upon the following messages:

1733945761.615 10281 24955 24983 W GoogleApiManager: The service for ctpu is not available: ConnectionResult{statusCode=SERVICE_INVALID, resolution=null, message=null}
1733945761.615 10281 24955 25984 W GooglePlayServicesUtil: com.google.android.googlequicksearchbox requires Google Play services, but their signature is invalid.
1733945761.615 10281 24955 25984 E GooglePlayServicesUtil: GooglePlayServices not available due to error 9

Unfortunately, I cannot interpret the meaning of "signature is invalid" - maybe the spoofed microg signature is no longer considered up to date?

I can upload the entire log file if necessary (I will however have to make sure that no sensitive information is included).

Device: OnePlus 6, /e/OS T 2.5; microg version 0.3.2.240913-102

@stanwood77
Copy link

stanwood77 commented Dec 11, 2024

Confirmed. Same issue on /e/OS Version 2.5T stable (Android 13) - Fairphone 4 not rooted.
Google calendar + Google mail stopped working last night further both app updates.

microg version 0.3.2.240913-102 (d28f5bc)

@ghost
Copy link

ghost commented Dec 11, 2024

I can confirm, latest Google Drive app can't find my Google account. I will give the logs here.

EDIT: I only found this sentence from the logs:
1733954570.056 10288 6376 6400 W GooglePlayServicesUtil: com.google.android.apps.docs requires Google Play services, but their signature is invalid. and it continues spamming like this.

Device information:
Phone: Samsung Galaxy A52 4G
OS: LineageOS 21 (Official, December 9 nightly build)
microG versions: microG Services (v0.3.5.240913), microG Companion (v0.3.5.40226), microG Services Framework Proxy (v0.1.0)
Installation method: Followed the official installation guide from the wiki.

Image
Image

@personofnorank
Copy link

Confirmed issue on e/OS 2.5, Fairphone 5 unrooted, MicroG 0.3.2.240913-102

@tjanez
Copy link

tjanez commented Dec 12, 2024

Here are the versions I needed to downgrade to in order for the Google Apps to start working again with microG 0.3.2.240913-21 (9f758d8) that comes with CalyxOS 6.2.0:

The steps for downgrading:

  1. Uninstall the app (CAUTION: Your app permissions and settings will be lost!).
  2. Find the app in Aurora Store and click on the three dots in the top right corner and select "Manual download".
  3. Enter the desired Version code and click "Check". The app will be downloaded and installed afterwards.

@mar-v-in
Copy link
Member

mar-v-in commented Dec 12, 2024

Google seemingly has updated their signature checking code. On Android 9 and above, the latest code uses PackageInfo.signingInfo (via GET_SINGNING_CERTIFICATES flags) instead of PackageInfo.signatures (via GET_SIGNATURES flag). This will likely roll out to non-Google apps in the future as well.

This means that all signature spoofing patches need to be updated to address the change of API usage by - in addition to the PackageInfo.signatures also spoofing the PackageInfo.signingInfo. There's unfortunately nothing we can do in microG itself.

@jonathanklee

This comment has been minimized.

@zykure
Copy link

zykure commented Dec 12, 2024

@tjanez
Thanks, can confirm this solves the issue for now! I also had to downgrade Calendar on FP4 / microG 0.3.2.240913-102 (d28fb5c):

@ale5000-git
Copy link
Member

Since plain LineageOS does support signature spoofing, did anyone submit this issue to them?

@mar-v-in
Copy link
Member

Someone already submitted the patch from @jonathanklee to LineageOS: https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/411374

@pnaf
Copy link

pnaf commented Dec 12, 2024

Downstream projects such as /e/OS have begun applying the patch: https://gitlab.e.foundation/e/os/android_frameworks_base/-/commit/2b9c74a4409f41924905c4b28aa900904e442992

I also saw this announcement from a few of /e/OS's social media accounts:

A fix is available and will be deployed through an OTA update early next week.

@phucvu4324
Copy link
Author

Someone already submitted the patch from @jonathanklee to LineageOS: https://review.lineageos.org/c/LineageOS/android_frameworks_base/+/411374

is it can be included on next microG Service Core update? I wonder if lineage-microG also apply this patch

@ale5000-git
Copy link
Member

ale5000-git commented Dec 13, 2024

is it can be included on next microG Service Core update? I wonder if lineage-microG also apply this patch

"microG Service Core" is an app, the patch is for the ROM so it is completely unrelated.

The patch for LineageOS isn't yet merged, once merged it will likely be picked up by every other ROM.

@phucvu4324
Copy link
Author

phucvu4324 commented Dec 13, 2024

is it can be included on next microG Service Core update? I wonder if lineage-microG also apply this patch

"microG Service Core" is an app, the patch is for the ROM so it is completely unrelated.

The patch for LineageOS isn't yet merged, once merged it will likely be picked up by every other ROM.

what for -hw variant? i think fake-signature also must be updated with new spoofing method

@ale5000-git
Copy link
Member

ale5000-git commented Dec 13, 2024

On the -hw version is Huawei that handle the signature spoofing, so only Huawei can change it.

But are you sure that Huawei is also affected by this issue?
Since the way signature spoofing is handled is different the problem may be different or may not happen.

@petefoth
Copy link

I wonder if lineage-microG also apply this patch

As @ale5000-git says

The patch for LineageOS isn't yet merged, once merged it will likely be picked up by every other ROM.

The Lineageos for microG project will monitor the progress of the patch in the LineageOS gerrit. We will only act if LineageOS decide not to merge the patch

@heinhuiz
Copy link

Speech Recognition & Synthesis (com.google.android.tts) is also affected.

  • Last working version: googletts.google-speech-apk_20241030.02_p0.691594814
  • Version number: 210521474

@dimka40185
Copy link

On the -hw version is Huawei that handle the signature spoofing, so only Huawei can change it.

But are you sure that Huawei is also affected by this issue? Since the way signature spoofing is handled is different the problem may be different or may not happen.

Huawei has no problems, everything works as it worked. No problems

gilbsgilbs added a commit to gilbsgilbs/FakeGApps that referenced this issue Dec 13, 2024
Some major Google Apps stopped relying on the deprecated
`packageInfo.signature` field and started using
`packageInfo.signingInfo` instead. This commit introduces spoofing for
the `signingInfo` field to maintain compatibility.

Unfortunately, spoofing the `signingInfo` field is is a little more
involved than spoofing the `signature` field, because the former relies
on a `SigningDetails` class which is not part of the public SDK API [1].
We rely on reflection to instantiate the `SigningDetails` object, and to
find the associated `SigningInfo` constructor.

See also:

- microg/GmsCore#2680
- https://gitlab.e.foundation/e/os/android_frameworks_base/-/commit/2b9c74a4409f41924905c4b28aa900904e442992

[1] https://cs.android.com/android/platform/superproject/+/1c19b376095446666df2b2d9290dac3ef71da846:frameworks/base/core/java/android/content/pm/SigningDetails.java
@chipironcin
Copy link

The fix for CalyxOS is being tracked here in case you come looking for it:
https://gitlab.com/CalyxOS/calyxos/-/issues/2877

@DEV-197
Copy link

DEV-197 commented Dec 17, 2024

The new version of FakeGApps already contains the fix.

thanks!

It's still not working for me, same error. Did it work for anyone

@phucvu4324
Copy link
Author

The new version of FakeGApps already contains the fix.

thanks!

It's still not working for me, same error. Did it work for anyone

you need to reboot after enable fakegapps, it working for me with latest youtube app and maps

@gilbsgilbs
Copy link

@DEV-197

It's still not working for me, same error. Did it work for anyone

There's still a fix awaiting for Android 9 to 12, if that's your case. whew-inc/FakeGApps#25

@porcoddiocanebastardo
Copy link

porcoddiocanebastardo commented Dec 17, 2024

Hi, sorry to bother you and thanks a lot for your work!
I still have same problem, changed FakeGApps, rebooted soo many times, different version and way to install microG packages (Revived/MinMicroG/MicroGGApps/direct debloat and installation method), all in different way for two days, no result, I can't update GApps (Map-Calendar-Gmail-Contacts-Messages...) and so I can't use Revanced Youtube packages in mount-root mode has I did before, this time I have to install it in GSMCore way.
Everything work for a year until these Google Updates. I'm a noob but I've always modify Stock Roms of my phones.

In this case I have:
-Ulefone Armor 20WT with Android 12 Stock Rom (build TF3_EEA_V12)
-Root flash boot.img with Magisk
-LSPosed with: FakeGApps6 - GravityBox12.0.0S - DisableFlagSecure2.0.0
-De-Bloater eliminated PlayStore-PlayServices-Framework
-Companion0.3.5 - microG0.3.5 - microGServiceFrameworkProxy all installed without conflicts
-microG 0.3.5 all is ticked OK, only problem in "SafetyNet: CTS profile does not match"

SPIC give errors of pictures and apps too (in picture I try to open Calendar updated version, with old ther's no problems like others GApps).

Thanks a lot for your work and your attention, I'm really so glad to talk and read about you!

Image

Image

Image

@gilbsgilbs
Copy link

@porcoddiocanebastardo You are using Android 12. Did you try the fix I just mentioned: whew-inc/FakeGApps#25 ?

@porcoddiocanebastardo
Copy link

porcoddiocanebastardo commented Dec 17, 2024

I have try now!
It function!!!
I try all now and I write here: whew-inc/FakeGApps#25

Thanks a lot!!!

@ale5000-git

This comment has been minimized.

@petefoth
Copy link

  • LineageOS for microG (no info yet)

The code was merged in the upstream lineage-21.0 branch at 20:52 yesterday. Looking at the `MicroG LineageOS builds' Matrix room I think that lemonadep should be the first build to have the fix. Other devices will pick up the fix in due course as they are built

  • IodéOS: the patches have been applied, and are available in beta updates for some devices. The fix should make it in to the next build run (v5.8)

@D3SOX
Copy link
Contributor

D3SOX commented Dec 17, 2024

Adding to this:

@ale5000-git

This comment has been minimized.

@LZeugirdor
Copy link

Adding to this:

Once the patch rolls out live will it be safe to update apps or should we stick to older versions still?

@phucvu4324
Copy link
Author

Adding to this:

Once the patch rolls out live will it be safe to update apps or should we stick to older versions still?

of course, yes

@grenadin
Copy link
Contributor

grenadin commented Dec 18, 2024

On the -hw version is Huawei that handle the signature spoofing, so only Huawei can change it.

But are you sure that Huawei is also affected by this issue? Since the way signature spoofing is handled is different the problem may be different or may not happen.

Huawei below P60 was found the problem with this. Above P60 was perfect with 0.3.3 and 0.3.5

@ale5000-git ale5000-git changed the title Various Google Apps stop working with microG (YouTube, Maps, Google Opinion Rewards, etc.) Various Google Apps stop working with microG (YouTube, Maps, Gmail, Google Opinion Rewards, etc.) Dec 18, 2024
@ale5000-git

This comment has been minimized.

@chirayudesai

This comment has been minimized.

@ale5000-git
Copy link
Member

ale5000-git commented Dec 24, 2024

Here's a summary of the situation:

  • FakeGApps (fix merged) - v6.5 or higher contains the fixes
  • LineageOS 19.1/20/21/22 (fix merged) - All builds from 2024/12/17 onwards contain the fix
  • LineageOS for microG (fix auto-included from upstream) - All builds from 2024/12/17 onwards contain the fix
  • /e/OS (fix merged) - v2.6.3 or higher contains the fix
  • CalyxOS 6.2.2 and 5.14.1 (fix merged) - New versions in the works
  • crDroid 15 (fix merged)
  • IodéOS v5.8 or higher (fix included)
  • DivestOS (no info yet)

@pnaf
Copy link

pnaf commented Dec 27, 2024

/e/OS 2.6.3 or higher contains the fix: https://community.e.foundation/t/feedback-for-v2-6-3/64267

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

Successfully merging a pull request may close this issue.