-
-
Notifications
You must be signed in to change notification settings - Fork 210
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 install on Android 9 (LineageOS 16) #181
Comments
For anybody who found themselves here after following the README instructions and discovering their device no longer boots correctly (-.-"), here is how to unbrick it again (using TWRP):
Leaving this here as "just delete the file again" is obvious, but how to mount the right thing was not for me. |
I've used Stanley to extract the manifest of NetworkLocation.apk. It lists the app's name and permissions.
Stanley also shows the certificate used to sign the .apk:
|
I build a magisk module and work correctly. |
@pedrxd Thank you for your input. However, If you install UnifiedNlp as location provider without the "gms-core" there is no need to spoof the signature (as far as I understand) and therefore the permissions should be something like |
Yes, that was strange for me. But I check the name that unifiedNLP package have and was the same as the google one. So when i made the permission file I use the same. Probably I use the wrong apk when installing unifiedNLP. |
Ah ok. I'll check it on Thursday and update this comment accordingly. |
As of today it seems not to be possible to install standalone Unified NLP with Lineage OS 16? Or is there some workaround? |
Copy this apk to /system/priv-app/UnifiedNLP/ and this permission file to /system/etc/permissions/ (remember use the .xml extension) . |
So I tried these two files and did Edit: Renamed the apk to UnifiedNLP.apk and the permission file to privapp-permissions-unifiednlp.xml. Now its booting again. |
The name of the .apk is irrelevant, but the permissions file needs to be a .xml. Can confirm it also works for me. |
Thank you! Can confirm working with .xml. No magisk microG module was needed (which broke all gsf dependant apps). Is it possible to update the description, it seems like legit workaround? Tested on LG G4, Lineage OS 16.0, Android 9. System without GApps. |
Can anybody explain how to use it with gapps? |
@TontyTon As far as I understand this implementation this is not possible since this is a replacement of a Google Play Services component. |
@sirtoobii I was talking about this (org.microg.nlp) -
|
The described method in the readme (copying the apk to /priv-app) does not work anymore on Android 9 due the permission-whitelist enforcing ASOP docs. As a result of this, your phone won't boot if you just copy the apk to
priv-app
!As far as I understand, the issue should be solvable by creating a matching priv-app-permission.xml file in
/etc/permissions
.I'm willing to contribute the required changes to the readme - however since I'm pretty unfamiliar with the android stack a need a bit more information:
The text was updated successfully, but these errors were encountered: