microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
944 stars 207 forks source link

unifiednlp do not have location to test geocoder on Android Pie #164

Open ghost opened 5 years ago

ghost commented 5 years ago

I've flashed NanoDroid-patcher-18.2.20180916.zip and then NanoDroid-microG-18.2.20180916.zip On my LineageOS 16.0 (Android 9). Signature spoofing is working, but the last checkbox (unifiednlp do not have location to test geocoder) is unchecked. I've checked in SatStat app and it shows me location, but only from GPS. In conclusion my GPS is working, microG with network location isn't I have Apples and DejaVu backend turn on, as well as unifednlp and localisation.

subterfugium commented 5 years ago

I have same issue with OmniRom 9. microG installed via fdroid repo. ROM has signature spoofing support and unifiednlp should be able to run outside /system https://gerrit.omnirom.org/c/android_frameworks_base/+/32437/2

0pLuS0 commented 5 years ago

Solution? ----> https://github.com/microg/android_packages_apps_GmsCore/issues/366#issuecomment-427252345

subterfugium commented 5 years ago

I don't have root so can't test it.

0pLuS0 commented 5 years ago

@subterfugium it works here, but I forgot to mention, this is on Stock Android.

No root on OmniRom and microG is really limiting yourself...

subterfugium commented 5 years ago

@0pLuS0 It worked fine on android 8.1 (without root)

Devorlon commented 5 years ago

I've tested that the su commands do fix location for 8.1 but only partily work for 9.

I think this is becasue you cannot set "high accuracy" for location within pie but can for oreo. And that 'Network -based location enabled' does not get checked after the commands in 9.

Android 9 tests were done on the unnoficial lineage os builds for the OP5T using NanoDroid (nano repo), and tested with:

openstreetmaps in brower (partly working), maps.me from F-Droid (working), Pokemon GO (not working).

Android 8.1 test were done on Lineage + Microg and Lineage + NanoDroid (nano repo) for the 5T:

openstreetmaps in brower (working), maps.me from F-Droid (working), Pokemon GO (working).

ArchangeGabriel commented 5 years ago

@Devorlon Ah, indeed. I was wondering how to test network location only in Android 9 since the location settings are now either on or off. But what you describe matches what I see here.

subterfugium commented 5 years ago

I received update to microG today, 0.2.8, and now unifiednlp says it is able to provide updates in microg self-check. Using omni9 without root/gapps/etc. Wow, my location finally works, a have a smartphone ! :)

EDIT: After update and reboot, microg requested permission (did not specify which one) and after granting it, location started to work.

IzzySoft commented 5 years ago

@subterfugium I wish that update had done the same for me, but it didn't. Situation still the same: With "high precision" the last checkbox remains unchecked, with network only ("energy saving") all boxes are checked but still no location :cry:

subterfugium commented 5 years ago

Check that microg has the new permission (it didn't specify which which was weird) and make sure to reboot phone.

IzzySoft commented 5 years ago

@subterfugium it was the location permission (not sure which thread stated that) – and yes, it has both of them granted here. Had them before, so no change with that either. Didn't ask for anything new when I opened it after update+reboot.

ghost commented 4 years ago

I'm on Lineage 14.1 and it doesn't work even after giving perms as root. I am using Nanodroid.

septem9er commented 3 years ago

Solution? ----> microg/android_packages_apps_GmsCore#366 (comment)

Did solve the issue for me on two phones which used NanoDroid installed to install microG. A reboot was required.

I am using radiocells.org and local gsm location as UnifiedNlp backend.