-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Android 11 package visibility changes break microg #1409
Comments
I have a similar setup, using Arnovas GCam Beta. (However I bake microg right into the ROM and do not do a later sideload) I searched my log and could not find the error in my logs. Did you use a specific feature of the googlecamera? If this is an issue, it probably helps if we can replicate it. |
For me, GCam 8.1.101.345618084 crashes immediately on startup without the ROM patch. I believe the key is that in I suspect that baking microg into your ROM will also work, because microg has the appropriate flag set in its manifest. Maybe this is a better long-term solution, although when I tried to add the "big 5" microg packages into priv-app, there was something wrong with the permissions that caused a bootloop (which I didn't investigate):
If the proposed solution is to ask people to just bake microg into their ROMs, it would be helpful to do the following:
|
Ok, for me gcam is working and I am taking pictures with it. So it will depend on your install method, which I can't reproduce that easy. So probably the signature spoofing patch should be reviewed by @mar-v-in if your extension is needed. A lot of people do add microg later on, but of course need the signature spoofing patch as a base. If you are interested in the "baking microg into the ROM", check https://github.com/chris42/android_prebuilts_prebuiltapks |
I ran into a related issue having upgraded to Android 11 (LOS 18.1) on one device: apps were complaining about the lack of Google Play services even though the latest version of MicroG (2.18) appeared to be set up correctly. The issue wasn't app-specific but can be nicely illustrated with the Matrix Element client (im.vector.app), which has a notification troubleshooting mode: The logcat output was: Turns out the solution was to "reinstall" both MicroG and FakeStore (com.android.vending) as user apps:
For the record, it was a clean install (starting with an empty There must obviously be a more elegant way to accomplish the same but in the meantime sharing this workaround hopefully helps someone. |
You will need an xml with the permissions for those apps. For eg., for GmsCore:
|
The latest version of microG GmsCore and FakeStore already have the right flag (you need to update both of them) so this is already fixed. |
Normally my workflow is:
When trying to run Google Camera under Android 11 I encountered this new crash:
After I uninstalled microg GmsCore and then sideloaded the APK using
--force-queryable
, that fixed the error. I confirmed withdumpsys package queries
that Android 11 no longer makes microg's GmsCore visible to all apps. Perhaps we should introduce a new framework patch to work around this quirk? This worked for me but I'm not sure if I should be listing other microg packages too:The text was updated successfully, but these errors were encountered: