-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
No location provided (how to debug) #50
Comments
I'm running Lineage 16 w/o Gapps on a XZ1C. There is a known bug that makes IchnaeaNlpBackend find no cells, see [https://github.com//issues/38](this issue). With wifi disabled and with an app in foreground that queries network location, i.e. SatStat The backend does resolve location by wifi, though. With wifi enabled, you should get |
Thanks for the reply, but this doesn't seem to be the problem. I checked the log and there are access points around me in there and even my accurate location. But somehow this location does get lost somewhere along the way. I've added two logs - one is filtered by "nlp" and the other one by "Ichnaea". In both I removed my location and replaced it with XX,XXXXXX and YY,YYYYYY |
I have the same problem and after some analysing, testing and searching I found the following issue tracker entry: https://issuetracker.google.com/issues/113560852 |
This seems to be fixed upstream but not fixed in the source code of LineageOS 17 where I have just committed. |
Yes, I see this too. But I don't think this is fixed correctly. It's still checked if length of MNC is between 2 and 3.
I know that MNC must be 2- or 3-digits. But since the MNC is passed as INT to the constructors of the subclasses the 0-prefixed MNCs will be translated into 1-digit MNCs.
|
Maybe you need to add a comment there. By the way, I don't know what You can also commit at the LOS repo. |
Sorry, I overlooked the second constructor in the subclasses.
Here the MNC is passed as STRING to the constructor. But I don't get it where these constructors get called.
|
There seems a lot of constructors. By the way, do you know how often these codes are merged into LOS repo? |
No, sorry. It's the first time I deal with the Android/LOS internal source code. |
Sorry, that's not how pull requests for LineageOS are done. They have ther code review in https://review.lineageos.org/q/status:open |
Hi people, |
Switching to microG and it's shipped UnifiedNlp can do the trick, at least when using LocalGSM network provider. |
LocalGSM provider should always work. |
I made a pull request in the UnifiedNlpApi (microg/android_external_UnifiedNlpApi#10) which has a workaround for the bug in Android 9. If you want you can install the attached APK. For me this fixed the problem and I successfully get a network location. If you have tested it, please tell me if it workes for you also. |
Thank you. org.microg.nlp.backend.ichnaea2 keeps crashing on my LineageOS 16 device using com.google.android.gms (microG Service Core 0.210.19420) and it's built in UnifiedNlp. I'm going to test it on org.microg.nlp (a.k.a UnifedNlp 1.6.8). Update: |
LocalGSM works, I confirmed this today. |
It crashes on my LOS 16 also. |
Could you please go into app settings of my app and give it the two permissions. They should be deactivated. After activation it should work without crashes. |
Both permissions disabled and enabled (and repeated several times), also deleted /data/user/0/org.microg.nlp.backend.ichnaea2 and rebooted several times, but no luck. |
Could you please retry it with the following APK? |
Sorry, does work on first try on superiorOS android 10 bacon. But stops to work after some time. |
Works quite well. Repeated screen unlock / open SatStat / get network location fix / close SatStat / lock screen several times. Acquiring a location fix usually takes 5 to 20 seconds and grays out after some seconds, but that's fine. Log messages look good. Edit: Sony G4881 (XZ1C) with LineageOS 16 |
What phone/ROM? |
Yay, first time I got Ichnaea to work. Could you please provide a pull request or diff for that? |
Unfortunately I can't get the location backend to work and I'm a bit lost to find the reason. I've installed the latest UnifiedNlp (GAPPS Version, since I've playstore installed), the XposedUnifiedNlp Module and the IchnaeaNlpBackend 1.4.0 configured and activated. According to the SelfTest everything is in order and should work but "No UnifiedNlp location was provided by the system within 10 seconds".
Now I'm a bit lost on how to find the problem. There is no error message and logcat doesn't show any related errors. Are there any other ways to debug this problem? Or is this a known behaviour?
Im using Lineage 16.0 on an Sony Xperia XZ1Compact
The text was updated successfully, but these errors were encountered: