microg / UnifiedNlp

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

Question: How to install UnifiedNlp on CM11 without gapps #11

Closed wangnick closed 10 years ago

wangnick commented 10 years ago

I'm running CM11 galaxysmtd without gapps and can't get NLP to work. I did install the NetworkLocation.apk (V1.0.1) into /system/priv-app and rebooted, cleared the dalvik cache via recovery and rebooted again. I installed GSMLocationBackend V0.0.1.4 via F-Droid. Location service is switched on in system settings and power saving mode is selected.

Catlog shows a ProviderRequest and then a Request for POWER_LOW from net.osmand.plus traced by org.microg.nlp.location.LocationProviderV2: 07-06 17:58:47.800: V/org.microg.nlp.location.LocationProviderV2(3465): onSetRequest: ProviderRequest[ON interval=0] by WorkSource{10059 net.osmand.plus} 07-06 17:58:47.800: V/org.microg.nlp.location.LocationProviderV2(3465): onSetRequest: request: Request[POWER_LOW network requested=+24h0m0s0ms fastest=+24h0m0s0ms] 07-06 17:58:47.804: V/org.microg.nlp.location.LocationProviderV2(3465): onSetRequest: request: Request[POWER_LOW network requested=0 fastest=0] 07-06 17:58:47.804: V/org.microg.nlp.location.LocationProviderV2(3465): using autoUpdate=true autoTime=1500

Still osmand reports "location not yet determined" (or rather, something similar to that in German).

Also, NLP Controller shows an empty window.

Any clue what I'm doing wrong?

After all, what I'm trying to achieve should be possible, no? I mean, microg and its NLP are exactly meant to overcome https://jira.cyanogenmod.org/browse/CYAN-2449, am I right?

Kind regards, Sebastian

wangnick commented 10 years ago

Seems to work now. Was caused by a) GSMLocationBackend not properly installed after switch from CM11 back to CM10.2 and forward again to CM11, and b) the nearest tower not being contained in the opencellid database (duh). Sorry for the noise.

Kind regards, Sebastian