yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pedrxd:
I have the same problem as you and geting the next logcat:

02-15 00:22:44.050 1490 3280 W ActivityManager: Appop Denial: Accessing service org.microg.nlp.backend.ichnaea/.BackendService from pid=3435, uid=10121 requires appop COARSE_LOCATION
02-15 00:22:44.052 3435 3723 D NlpLocBackendHelper: Not (yet) bound.

It seem that app doesn't have the correct permission when it should (I accept all permission).

Edit:

More errors

02-15 00:40:26.636 1490 1508 E WifiService: Permission violation - startScan not allowed for uid=10120, packageName=org.microg.nlp.backend.ichnaea, reason=java.lang.SecurityException: UID 10120 has no location permission
[Android Apps and Games] Fruitrat:
There is an issue at microg about this

https://github.com/microg/android_packages_apps_GmsCore/issues/986
[Android Apps and Games] oskarrrrr:
Hello, I have the Hal9k rom for my 2din radio with Android 5.1.1 with 1gb of RAM, the rom is great without Gapps, but I do not find the location problem, I have the GSMlocation, Mozilla and dejavu backends activated, and also Nominatim, the problem is that sometimes the GPS picks up satellites very fast and other times it takes a long time, I don't know if I have to configure something else, if someone can help me I would appreciate it.

Enviado desde mi CLT-L09 mediante Tapatalk
[Android Apps and Games] JoeRifle:
A quick and dirty hack is to add the permission ACCESS_BACKGROUND_LOCATION to MicroG (systemized install). Then install all the backends after that (systemized install also).

When backends are run as system apps, they also receive the necessary permissions in Q to run unthrottled and in the background. Explicitly granting BACKGROUND_LOCATION is not needed here.

And it might not even be needed for MicroG, since the FINE and COARSE permissions should actually extend to BACKGROUND as long as MicroG is installed in system/priv-app. Haven't tried that though.

PS GO Marvin, go Marvin! *clap clap*
[Android Apps and Games] TaZeR369:
Yes I installed all the microg and backends as system apps and everything is working AOK, microg settings displays "persmission is missing or something" when I click it nothing happens i guess its a bug, but self-check every box is ticked and its working. I am using Motorola stock Pie rom with all google stuff manually removed on a Moto g7 Power.
[Android Apps and Games] Pierre49976:
Hello,

I can't get UnifiedNlp status to be OK on my Samsung A3 2016 with LineageOS 17.1.

Multiple reboots didn't do anything.

Any idea ?
[Android Apps and Games] kurtn:
You didn't make nlp a system app? It generally works better with lineageOS 16.0
[Android Apps and Games] Pierre49976:
I don't know about that, how do I do it?
[Android Apps and Games] kurtn:
Depends on your setup. If you have magisk, easiest way is to use systemizer module. Or use a flashable microG zip. Or use that https://download.lineage.microg.org/a3xelte/
[Android Apps and Games] Pierre49976:
Worked great! Thanks for the quick and pro tips. :o
[Android Apps and Games] johnsmith0123:
Huawei P40 pro ELS-NX9 running EMUI 11, As you may know Huawei Phone have No Google and Bootloader is locked.

Trying to get Location Backend to work, Can't activate it in UnifiedNlp, can't really use GPS on My Huawei P40. In MicroG setting it's showing that Location backend not configured

Is there a way to make it work. or is there any other apps, Apps that use Google play services don't work.

google map, Gmail works fine.
[Android Apps and Games] kurtn:
Unified NLP can't register, because it's no system priv-app. You need unlocked bootloader to get that. Why can't you use GPS? Do you live under the earth?
[Android Apps and Games] johnsmith0123:
Is there a way with adb method

many thanks
[Android Apps and Games] kurtn:
No there is a way with the front door of your home. Go outdoors and enjoy the GPS fix.
[Android Apps and Games] sabei:
Can anyone give me a clue as to why Deja Vue won't show up in AFWall+ (which means I cant give it permission) but Mozilla Back End does?

AEX 7.3, Android 10. I systemised both to priv app along with MicroG.

Neither backend shows up in list of apps but do in my file manager.
[Android Apps and Games] kurtn:
Déjà vu has o internet access. It builds it's own local networks database by combining network and GPS data.

There is no need to systemize location back ends. Only microg has to be a system app for registering as location provider.
[Android Apps and Games] sabei:
Ok thanks I think. However AFWall also stops access to wireless data which unless I am misunderstanding is needed by Deja Vu?
[Android Apps and Games] q1nt:
On microG install with UnifiedNLP and several backends I'm still seeing connections to Qualcomm's Izat location service. Anyone know if I still need Izat for anything or can I disable it by commenting it out in GPS.conf? Rather not send anything to Qualcomm if I can help it
[Android Apps and Games] kurtn:
@q1nt have you seen that?

https://review.lineageos.org/c/LineageOS/android_device_leeco_s2/+/310814
[Android Apps and Games] q1nt:
Would be great if they can make it work and not have ppl complaining their fav app don't work. Only gps app I got that requires Izat/xtra to work is OsmAnd. Really like it cuz seems most privacy friendly map app. If didn't use it I'd disable all the Qcom gps garbage and be done with it
[Android Apps and Games] Exabyter:
Unfortunately I know virtually nothing about Gerrit and I can't figure out the context of that commit or the big-picture impact.

Looks like it's the 17.1 branch (which afaik is deprecated now, and you know how LOS is about old branches), is there a Github issue or something I can read?

For those of us who use QC based devices, I wonder whether this will degrade performance in some way. (I'm a big privacy advocate too but by the same token I don't want to completely shoot myself in the face chasing that ideal either)

Thanks
[Android Apps and Games] MrRulf:
I know this might be the wrong place to ask this, but every other possible place I found was even more wrong.

I have lineage with microg (lineage.microg.org) with the 2.19 of the gms core. But the 2.21 has released yet. In fdroid i only find that UnifiedNLP has an update, from the old gms version to the new one. My question is now, do I have to wait for the next system update for the update? Or can I just do the update? And is the UnifiedNLP update everything I need or do I have to find a way to update the gms core on its own?
[Android Apps and Games] duttyend:
If I remember correctly, you can update microG independently. Make a nandroid backup of your partitions to be safe and try it.
[Android Apps and Games] kurtn:
Updating microG is not so risky @duttyend .

The correct thread for your question is https://xdaforums.com/t/lineageos-for-microg.3700997/

Your problem is, both microG and nlp try to be com.google.android.gms - so f-droid is confused. If you see an update to nlp 0.2.21 that's indeed microG and you can proceed with updaing.
[Android Apps and Games] MrRulf:
Thank you, if I have any new questions I'm gonna ask there!

Since I had a problem while updating I hope you can forgive me continuing the discussion here. I tried to update it, but I got an error, see picture.

And btw, if both packages try to be the same, how do I update the other one?
[Android Apps and Games] kurtn:
You have both installed? That'sno good idea.
[Android Apps and Games] MrRulf:
uhm, I have the lineage from lineage.microg.org installed, they were already both installed.
[Android Apps and Games] kurtn:
No

GitHub - lineageos4microg/android_prebuilts_prebuiltapks

Contribute to lineageos4microg/android_prebuilts_prebuiltapks development by creating an account on GitHub.

github.com
[Android Apps and Games] MrRulf:
ahh, sorry, I think I misunderstood my phone there, I thought the NLP is installed since fdroid shows jt to me, but how someone here already explained fdroid just doesnt unterstand that they are different, since when downloading I'm downloading the core. So I only have the core
[Android Apps and Games] Watchwolf:
Hello,

I know this thread is old but it's the subject.

I am working on a device without screen and I wish to use UnifiedNlp on a custom rom with Android 4.4.

I have installed NetworkLocation.apk, org.openbmap_27.apk, IchnaeaNlpBackend.apk but now I do not know how I can activate them.

Some information :

context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_LOCATION_NETWORK) -> True

locationManager.isProviderEnabled(LocationManager.NETWORK_PROVIDER) -> False

Settings.Secure.getString(caniGPSApplication.getApplicationContext().getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED) -> gps,network,wifiBluetooth

Bluetooth and Wifi are off, I wish to get the position from cell tower.

Off course GPS is working but only outside, I wish to get position (approximate off course) inside too.

If I understand well, I should start UnifiedNlp and activate the modules but I can't without screen ... Is there a solution ?
[Android Apps and Games] Vovan2k:
How to uninstall NetworkLocation.apk, i just installed with regular installer, now i see no way to remove it.
[Android Apps and Games] kurtn:
The app is registered location provider in system? Try to disable that registration first.
[Android Apps and Games] Vovan2k:
How do i check that?
[Android Apps and Games] ale5000:
This enable some backends by default in the UnifiedNlp included inside microG: https://github.com/micro5k/microg-u...8daec7b9f5e/zip-content/origin/etc/microg.xml

I'm not sure if it works in the standalone UnifiedNlp.
[Android Apps and Games] stan210:
Nice project!!

I have installed the legacy version, the applewifi backend and the LocalGsmNlpBackend version 0.5.4 (downloaded databases; and I’ve checked on http://opencellid.org/ that my area is covered). The other one called GSMLocationNlpBackend 0.0.1.4 is not working with my device (phone is getting hot; the app is always consuming a lot of cpu power ). The wifi location backend works, but the LocalGsmNlpBackend version 0.5.4. doesn’t. With tasker I’m able to show the cellid, so the cellid is available on my phone. My device: S3 neo running android 4.3.

Does any have an idea, why cell location isn’t working?
[Android Apps and Games] Nosepull:
Could be related to my problem (one post earlier): The backend running your phone hot is the one which is not deactivated and querying locations all the time on my phone. LocalGSMNLPBackend works according to FDroid's "Here GPS Location", however not all the time - I can not really pinpoint when and when not.
[Android Apps and Games] stan210:
The former version from this thread http://xdaforums.com/showthread.php?t=1715375 is working with my device s3neo android 4.3. https://github.com/microg/NetworkLocation/releases/download/v1.3.2/NetworkLocation.apk

I use this app to download the database for my location https://f-droid.org/repository/browse/?fdfilter=gsm&fdid=org.fitchfamily.android.gsmlocation

As this app has no app icon in the drawer, I use the following command (with terminal emulator or gscript lite) to start the app

am start org.fitchfamily.android.gsmlocation/.settings
[Android Apps and Games] mat1371:
May you develop an online GSM Location backend?

It's more up to date and isn't storage consuming.
[Android Apps and Games] Nosepull:
Can be found on FDroid! Just search.
[Android Apps and Games] BridouZ:
I just discovered that project and already love it.

I just want to know if disabling nlplocation service in Play Service and installing legacynetworklocation would do the trick ?
[Android Apps and Games] bilbonotry:
There is an xposed module and a dedicated version of UnifiedNlp to work alongside play service.

It has been written on github, but I add it here that unifiednlp 1.3.0 from f-droid does not work on cm12. I am on HTC one X and tried all backends listed
[Android Apps and Games] mat1371:
I found it:

https://f-droid.org/repository/browse/?fdfilter=UnifiedNlp&fdid=org.microg.nlp.backend.ichnaea

But isn't it possible to do so for OpenCellID ?
[Android Apps and Games] rnd83:
https://f-droid.org/repository/browse/?fdfilter=Localgsm&fdid=org.fitchfamily.android.gsmlocation

You have to create a database (in the backend configuration). You need an OpenCellID API-key and it takes a while to create the database.
[Android Apps and Games] mat1371:
It's something else.

It doesn't need an on device database and can query your location online.
[Android Apps and Games] herrdeh:
Hi everybody,

tried to make it work on my slimkat 4.4.4. y300. Found, that Apple's Wi'Fi Backend works,, but not Personal WiFi Backend and GSM Location Backend.

I'm in Berlin, Germany. Could it be the case that databases for the non-Apple-backends dont have data in Germany - or do I have to do special adjustments for Germany?

Cheers,

Wolf
[Android Apps and Games] anderledani:
How to install backends? I can't see any apks on that page.

And the app NLP Controller is empty for me.
[Android Apps and Games] nussbaum:
LocalGsmNlpBackend works fine here, you need to adjust MCC Filter to 262 in settings, and download the Database from OpencellID or Mozilla Location Services, then you need no more internet for locating. I can share my OpenCellID database for germany tomorrow if anyone interested (91MB)

Edit: corrected MMC :o
[Android Apps and Games] Nosepull:
302 for Germany? I user 262 (https://en.wikipedia.org/wiki/Mobile_country_code#G).
[Android Apps and Games] nussbaum:
You are right of course, thanks, my memory failed me again... The database is correct, though :)

---------- Post added at 01:34 PM ---------- Previous post was at 01:10 PM ----------

OpenCellID database for Germany only, 40MB zip to download, 90MB on the phone. Put lacells.db in /.nogapps/ of your sd. MMC: 262

https://app.box.com/opencellid-germany-zip
[Android Apps and Games] bilbonotry:
I have to answer myself because I got unifiednlp 1.3 to work on cm12 with localgsmnlpbackend. Previously it did not work because I did not change MCC value for my country before downloading the database (thanks to nussbaum for pointing it out). [MENTION=3999488]MaR-V-iN[/MENTION] : I think it should be mentioned in the backend ui or in fdroid.

Other backends did not work for me.
[Android Apps and Games] BlackAfghan:
Could you please add an option for storing the database on the external SD?
[Android Apps and Games] hydroxymoron:
"unknown format" error

It seems quite troublesome to get the cellid db

on Gsm location backend i am getting "unknown format" error at "generate database"

downloadable databases from opencellid.org do not work. is there a simple way to convert the csv files to the db format that this app uses?
[Android Apps and Games] Uran-235:
[MENTION=4380276]hydroxymoron[/MENTION]

Do you have an OpenCellId API?
[Android Apps and Games] MaR-V-iN:
[MENTION=1160716]bilbonotry[/MENTION] [MENTION=411194]BlackAfghan[/MENTION]: The LocalGsmNlpBackend is not written or supported by me, for problems with it contact the original developer [MENTION=6204913]n76[/MENTION] or report issues on his issue page: https://github.com/n76/Local-GSM-Backend/issues

Thanks.
[Android Apps and Games] okar1:
Hello! I have some little question.

I use your library. All works fine, but I must to choose between it and Google Services. Xposed version don't work on my device (Sony Xperia Z1 Compact).

So, It is possible to provide location through FakeGPS feature?

This will allow to use your library with the GAPS-enabled devices without xposed!
[Android Apps and Games] TheAbalone:
I use it with Google and xposed module on stock (14.4.A.0.104) and it works!

Which backends did you try?
[Android Apps and Games] okar1:
Backend is OK. I Use GSM Location backend with last database update. Now I use it with LegacyNetworkLocation.apk and it works fine.

But when I install UnifiedNlp.apk+xposed module+enable it+reboot then screen becomes black. Really, enabing xposed module change my wallpaper to black! I don't believe it for the first time! And location isn't work.

I use custom ROM: MIUI v5 (4.11.28) with stock kernel (14.4.A.0.133), locked bootloader
[Android Apps and Games] MaR-V-iN:
This is planned as an additional feature, but low priority. See https://github.com/microg/android_packages_apps_UnifiedNlp/issues/27
[Android Apps and Games] streambinder:
Hey, [MENTION=3999488]MaR-V-iN[/MENTION], where can I have detailed informations about MicroG project status? I'm really interested migrating to this.

Let me know! ;)
[Android Apps and Games] MaR-V-iN:
I am currently rather busy so don't expect anything the next days/weeks.
[Android Apps and Games] streambinder:
I do not expect you to do it right now. :P

If you need help, just ping me up: a conversation to make me up-to-date with your to-dos list and to know how you're building everything, and then I would be really glad to help you. :)
[Android Apps and Games] eric2:
On my GApps-free AOSP-v4.4.2 I've installed NetworkLocation.apk v1.3.0 (downloaded from the GitHub page) and a backend that uses the Mozilla Location Service (downloaded from F-Droid).

I'm using this with OSMAnd. OSMAnd is a navigation app that is using OpenStreetMap's maps.

Everything works as expected when GPS is turned off or when GPS does not yet have a fix: Mozilla's Location Service (MLS) located me close to my real location.

But I have a problem when GPS does have a fix.

Every second OSMAnd is switching back and forth between the more precise GPS-location and the less precise MLS-location... forcing OSMAnd to redraw the display after every switch.

Shouldn't the more precise location given by the GPS be prefered once there is a GPS-fix?

I've the same problem when using the backend with Apple's Location Service.
[Android Apps and Games] bamtan2:
Hey guys (including [MENTION=6204913]n76[/MENTION]) I want to say I support this project! I think it's a great idea to be independent of google, and so this project is a must-have for long-term android! It's probably a major issue to tackle, so I wish you all the best!!!
[Android Apps and Games] beebelo:
My sentiments exactly, [MENTION=4545566]bamtan2[/MENTION].

I now have a working Gapps-free phone, running CM 12.1 nightlies, with location services. I am geeked! After installing the microg stuff, I got Osmand~ working. Then decided to try Nokia Here. Don't like the tracking, but I may need an alternate navigation source at times. Well it wouldn't work at first, but I noticed I hadn't installed [MENTION=3999488]MaR-V-iN[/MENTION]'s legacy FLOSS MapsAPI. Installed, and that was all I needed. "Here" is now working.

Thank you MaR-V-iN and team!
[Android Apps and Games] orky87:
What backend should I use if Internet connection is not an option at all times? Great work OP been looking for such solutions for a long time.
[Android Apps and Games] Meowdib:
You can also use WAZE
[Android Apps and Games] rnd83:
Im quite happy with LocalGsmNlpBackend from F-Droid. It uses data from OpenCellID and/or Mozilla. You need to create a database in the settings menu (or download one) before you can use it. It's not very precise because it uses cell tower locations but very quick. In Osmand i get a position almost immediately.

---------- Post added at 08:57 AM ---------- Previous post was at 08:49 AM ----------

And make sure to set the right MNC/MCC filter for your country before creating the database. I think it's set to the US standardly. Or no filters if you want the whole world, but then the database will be about 1GB.
[Android Apps and Games] 1/4 Life:
Has anyone had luck with this under CM12.1 with Xposed? I'm getting "Check step unified nlp package failed" with the current versions of unified nlp, the Xposed module, and apple provider.
[Android Apps and Games] Nosepull:
I regularly update to the latest CM and current Xposed alpha versions. I never had any problems with uG all the time. However, I don't use the Apple Backend, and I never did need to reinstall since CM11 times.
[Android Apps and Games] bilbonotry:
What do you do when you clean flash ? When I restore gsmlocalbackend with titanium backup, it does not work anymore. I have to generate database again. Other providers do not work.
[Android Apps and Games] Nosepull:
I don't even "clean" flash, and haven't done so for ages. I just flash new CM nightly, Xposed alpha, BlankStore and mapsapi, wipe cache and dalvik and reboot. The only problem is that once in a while a CM nightly has a few issues, but even that is very rare. Even Xposed alpha (with carefully selected modules) is only making sporadic problems. Never had the slightest problem with UnifiedNLP.
[Android Apps and Games] n76:
Playing around with the Mozilla (Ichnaea) UnifiedNlp Backend and notice that in 1.1.0 the settings that allow you to contribute data to Mozilla are missing. They are there in 1.0.0. Looks like it happened in the last commit:

Anyone have an explanation of the reason?

---------- Post added at 03:50 PM ---------- Previous post was at 03:44 PM ----------

The database for LocalGsmNlpBackend is located in the /sdcard/.nogapps/ directory (a relic of its development based on the database used by the old NetworkLocation that was superseded by the more recent UnifiedNLP.) You should be able to backup and restore that separately from the APK.
[Android Apps and Games] tofu:
LocalGsmNlpBackend doesn't work

I cannot make LocalGsmNlpBackend to work. I've tried it with my countrycode and without (I've generated the opencellid database several times just to make sure it is not a database problem).

At "privacy guard settings" I can see that LocalGsmNlpBackend has asked for location and it has been granted several times, but when I go to Settings --> location, I never see LocalGsmNlpBackend listed on the list of apps "Recent Location Requests". Wifi Location Backend is always there if activated, it just works. Which indicates that Unified is working too.

I have disabled privacy guard for all location backends.

I have tried several ROMS (Exodus, Blisspop, SlimLP), and LocalGsmNlpBackend never gives me network based location when using Osmand or SatSat.

I have Oneplus one, and my ROMS are always with stock settings, and I never install GAPPS.

Where is the problem? Why LocalGsmNlpBackend seems to ask for location, but doesn't show it on any map?
[Android Apps and Games] n76:
Looks like you've entered this as a bug report on github which is a good thing. It might be better to have a backend specific discussion there. Especially for the local GMS and/or local WiFi backend as those are not written or supported by MaR-V-iN.

The local GSM backend needs some location privileges to access information about what cell towers your phone sees but it does not actually make a location request so you will not see it in the system settings location request history. The local WiFi backend has a service that is passively listening for GPS location and then storing information about WiFi APs that your phone sees. For that reason the local WiFi backend will show up in the system settings location request history.

You don't mention if you've installed UnifiedNlp and you don't mention if you have enabled the local GSM in the UnifiedNLP settings. Nor do you mention if you've accessed the settings for local GSM backend to configure it and download a database.

And easy check for operation is to use the SatStat app to display your position. You should have two points, a red one for the GPS position and a blue one for the network based location. And there will be two circles showing the uncertainty radius (again red for GPS and blue for network). If the blue point and circle are not there then you are not getting network based locations. If you are getting the blue circle you are getting a network based location. Unified NLP will give you the location with the smallest error estimate which will generally be the WiFi based location. If you disable the the WiFi location backend then you can see the position and uncertainty being given by the GSM backend.