You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I build an Android P ROM that's based on AOSP(android-9.0.0_r18) for my Pixel device. But UnifiedNlp of MicroG didn't work on my device. The getLastKnownLocation API of Android SDK got null. Also, 'Network-based location enabled' is unchecked in Self-Check.
Install MicroG as /system/priv-app by putting it in AOSP build tree with below lines in its Android.mk
...
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
After reboot device, install Backends from F-Droid, like AppleWifi, Mozilla Location Service, etc.
Enable backends in microG Settings->UnifiedNlp Settings->Configure location backends;
Reboot device
Self-Check in microG Settings. The 'Network-based location enabled' option is unchecked.
Finally, I made UnifiedNlp works. Here's what I changed:
Allowing 'network' as Location Provider in framework/base/packages/SettingsProvider/res/values/defaults.xml.
Change "def_location_providers_allowed" value from 'gps' to 'gps,network'
The text was updated successfully, but these errors were encountered:
perdubug
changed the title
'Network-based location enabled' is unchecked on AOSP 9.0
UnifiedNlp finally works on AOSP 9.0
Mar 1, 2019
Nice catch, thanks! Finally I can use it. You can also enable this at runtime in a shell with: settings put secure location_providers_allowed +network.
So is this an Android-problem/bug or one of microg? Should microg (unifiednlp) set this setting or should it be configurable in some android-gui?
FaN11X-zz
pushed a commit
to FaN11X-zz/android_frameworks_base
that referenced
this issue
Jun 14, 2019
I build an Android P ROM that's based on AOSP(android-9.0.0_r18) for my Pixel device. But UnifiedNlp of MicroG didn't work on my device. The getLastKnownLocation API of Android SDK got null. Also, 'Network-based location enabled' is unchecked in Self-Check.
The following is what I did:
...
LOCAL_CERTIFICATE := platform
LOCAL_PRIVILEGED_MODULE := true
Finally, I made UnifiedNlp works. Here's what I changed:
Allowing 'network' as Location Provider in framework/base/packages/SettingsProvider/res/values/defaults.xml.
Change "def_location_providers_allowed" value from 'gps' to 'gps,network'
The text was updated successfully, but these errors were encountered: