-
-
Notifications
You must be signed in to change notification settings - Fork 213
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
UnifiedNlp with GAPPS not working on Android 10/Q, even after installing in /system/priv-app/ #188
Comments
Same with lineageos 16 (android 9) |
I have an extra phone running LineageOS 17.1 without GApps on which I would like to use UnifiedNlp, I would like to volunteer to do testing, is there any way where the installation process is documented? I would like to help in some way to get it working. |
I put some effort to get it working on Android 9 / Pie / LineageOS 16.0 as privileged app in /system/priv-app.
These are my findings so far. Somebody willing to build a ROM to check this out? I'll contact the maintainer of the ROM for my phone and ask for a change framework-res. I'll update you if this works out. cc: @TontyTon |
@greenflash1986 Ya, good findings. Maybe this will help @mar-v-in . |
Hi there. It worked out and I already created a PR for LineageOS 16.0 here. https://review.lineageos.org/c/LineageOS/android_vendor_lineage/+/295384/2 Some additional findings: after the collection of the signatures the ServiceWatcher asks for all packages which define an implementation of the locationservice.v3 and compares them with the selected signatures. After that it checks the metadata of the package for the "serviceVersion" and the package with the highest version wins. I had to compile version 1.6.8 with serviceVersion = 3 to get it to work together with Gapps. |
@TontyTon you can have a look at https://github.com/greenflash1986/UnifiedNlpOverlay. There's also a description how to compile it in the readme. |
I too got unifiedNlp working with A10, just with an overlay (in vendor partition (if it makes any difference)), not making any other changes. I added all the following to strings.xml, I think some of these are not needed.
And added 'org.microg.nlp' to the following arrays in arrays.xml
I uploaded the overlay I used in https://github.com/TontyTon/Microg-UnifiedNlp-Overlay |
@TontyTon good job! After some busy weeks working I had the time to do some research with your solution. First things first: I was able to bring it to work. Thank you for your work and the proof of possibility. My findings so far by merging your and my solution: I was missing the Explanation: with On Android 9 it even seems to work without the "force". So just by having Unified installed in /system/priv-app/, leave the (I'm 90% sure that this was not possible in Android 10 and that I had to increase the service version of the Unified-Service-Impl to be able to use Unified, when I did some tests around the christmas holidays and Android 10) |
I created a flashable zip, based on the work of WeAreFairphone |
Hello @greenflash1986 ! I've tried your zip on a Samsung Galaxy XCover 4 running Android 9 (One UI 1.0) with GApps (and Magisk 23.0, FWIW), but sadly, UnifiedNlp doesn't seem to work quite yet : However, using My Location (https://f-droid.org/packages/com.mirfatif.mylocation/), the different backends seem to be working : Please note that for obvious privacy reason, I've disable Googled improved location precision, while still enabling wifi analysis. (I would have liked to report on your GitHub repo, but the issue tracker seems to be deactivated.) |
Hi @breversa I activated the issue section on the repo. Did you install some additional Magisk modules respective to location backends? (One picture of the missing tick in UnifiedSettings would be enough) |
I installed UnifiedNlp (org.microg.nlp) in /system/priv-app/ on a Android 10 device, but in 'Self Check' both 'System supports location provider' and 'UnifiedNlp is registered in the system' are not checked.
I have also tried giving 'ACCESS_COARSE_LOCATION' permission to it from terminal, but no result.
('ACCESS_FINE_LOCATION' permission can't be given as the app don't ask for it.)
'UnifiedNlp Settings' option is shown in Location Settings when installed in priv-app, and not shown when installed as user app.
I also tried putting xml file to /system/etc/permissions/ , but no results(expected).
privapp-permissions-unifiednlp.txt
The text was updated successfully, but these errors were encountered: