Bootloop after trying to remove UnifiedNlp :-( - fixed, but how to switch to MicroG?

Fortsetzung der Diskussion von LineageOS for microG incl. UnifiedNlp vs. LineageOS + UnifiedNlp without microG:

@Roboe
I wanted to try out the recent MicroG for using the german Corona-Warn-App. I was using latest LoS 17.1 and tried to flash microg_2020-04-07.zip over unifiednlp_2020-04-07.zip, which I have been using for months. I read that TWRP 3.4.0 doesn’t work and downgraded to TWRP 3.3.1 and was able to flash the microg-ZIP. Back in LOS I did just see the UnifiedNlp app and no MicroG app and chose to remove UnifiedNlp as described in the linked thread. That lead to a bootloop… I’m unable to boot into my Android. Any help is greatly appreciated!

I got the files from here:

Thanks,
Singu

Got it booting again by re-flashing latest modem.zip, unifiednlp_2020-04-07.zip and lineage-17.1-20201009-nightly-FP2-signed.zip. I have no idea which file helped me.

@Roboe How can I upgrade or switch from just UnifiedNlp to full MicroG now?

Singu

Tried a flash of microg_2020-04-07.zip again and got a bootlop, which seems to be caused by that:

10-10 20:57:08.892  9897  9897 W PackageManager: Privileged permission android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST for package com.google.android.gms - not in privapp-permissions whitelist
10-10 20:57:08.893  9897  9897 I PackageManager: Un-granting permission android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST from package com.google.android.gms (protectionLevel=18 flags=0x20883e45)
10-10 20:57:08.937  9897  9897 E System  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.gms: android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST}
10-10 20:57:08.938  9897  9897 E Zygote  : java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.gms: android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST}
10-10 20:57:08.938  9897  9897 E AndroidRuntime: java.lang.IllegalStateException: Signature|privileged permissions not in privapp-permissions whitelist: {com.google.android.gms: android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST}
10-10 20:57:09.735 10213 10213 I zygote  : option[49]=-Xfingerprint:Fairphone/FP2/FP2:6.0.1/FP2-gms-18.04.1/FP2-gms-18.04.1:user/release-keys
10-10 20:57:12.831 10271 10271 W PackageManager: Privileged permission android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST for package com.google.android.gms - not in privapp-permissions whitelist
10-10 20:57:12.831 10271 10271 I PackageManager: Un-granting permission android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST from package com.google.android.gms (protectionLevel=18 flags=0x20083e45)
10-10 20:57:13.155 10271 10271 V PackageManager: Changing enabled state of com.google.android.gms/com.google.android.gms.nearby.messages.service.NearbyMessagesService to false
10-10 20:57:13.155 10271 10271 W PackageManager: Unable to change enabled state of com.google.android.gms/com.google.android.gms.nearby.messages.service.NearbyMessagesService to false
10-10 20:57:13.155 10271 10271 V PackageManager: Changing enabled state of com.google.android.gms/com.google.android.gms.nearby.discovery.service.DiscoveryService to false
10-10 20:57:13.156 10271 10271 W PackageManager: Unable to change enabled state of com.google.android.gms/com.google.android.gms.nearby.discovery.service.DiscoveryService to false
10-10 20:57:13.156 10271 10271 V PackageManager: Changing enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity to false
10-10 20:57:13.156 10271 10271 W PackageManager: Unable to change enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateActivity to false
10-10 20:57:13.156 10271 10271 V PackageManager: Changing enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateGcmTaskService to false
10-10 20:57:13.156 10271 10271 W PackageManager: Unable to change enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateGcmTaskService to false
10-10 20:57:13.156 10271 10271 V PackageManager: Changing enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateService to false
10-10 20:57:13.156 10271 10271 W PackageManager: Unable to change enabled state of com.google.android.gms/com.google.android.gms.update.SystemUpdateService to false
10-10 20:57:13.208   443  1820 W installd: Ignoring /data/data/com.google.android.gms/lib with unexpected GID 0 instead of 10157
10-10 20:57:13.210   443  1820 W installd: Ignoring /data/data/org.microg.gms.droidguard/lib with unexpected GID 0 instead of 10158

Fixed the bootloop by adding this to the privapp-permissions-microg.xml file:

<permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>

But can’t update to recent MicroG as signing keys are wrong, because my ROM doesn’t support signature spoofing… wow that was ugly until now :-D.

Is there any best practise on how to install MicroG on a current LineageOS 17.1 or is it recommended to switch to https://download.lineage.microg.org/FP2/ and use the migration.zip?

Sorry it went bad for you.

Yup, LOS doesn’t support as-is microG, so our installer package doesn’t work without a means of spoofing signatures.

That’s the most straightforward option, and the less error prone too.


Always, always (I mean it), do a backup prior to modify anything system-wide.

2 Likes

@Roboe Well I made a full backup before, via adb backup -apk -shared -all -f /home/FP2.ab, but to be honest I wasn’t able to restore it :face_with_symbols_over_mouth:.

What about adding the missing permission to the Zip you provide <permission name="android.permission.CHANGE_DEVICE_IDLE_TEMP_WHITELIST"/>? That would at least have prevented the boot loop :slight_smile:.

Yeah, adb backup is fun (not) … and deprecated (possibly for issues like that).

If you want to get the content out of the AB file …

2 Likes

Yes, ADB backup is horrible, but even minding that, it’s not thought to this case. ADB backup backs up apps. A NANDroid backup, the one you get with a recovery, is the one that should be used, because it backs up the system too.

Lack of time. Sorry. Developing this kind of mods and testing it’s a lot of work, and I don’t happen to have a testing phone handy nowadays neither. But I’m opening I opened an issue in the repo in case someone can lend a hand.

2 Likes

I’m now using the latest version of LineageOS for microG. The migration from official LoS to that one worked like a charm and before I made a full backup via TWRP + my own files via USB.

The Corona Warn App works like a charm and I’m also enjoying MapBox for apps which rely on Google Maps… good choice!

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.