yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] snowyrain:
Hello,

Edit: solved see below.

first thank you very much for the great app. I do not have to install the gapps anymore.

I’m using µg UnifiedNlp on a Google Galaxy Nexus (maguro) with slim-4.4.4.build 9. No Google Apps are installed.With the backends „LocalWifiNlpBackend“ and „GSMLocationNlpBackend“ it works fine. But I’m not able to use the „LocalGsmNlpBackend“. I’m downloading all files from the f-droid store.

I get no position with „LocalGsmNlpBackend“ only. The app „CellID info“ shows: Mobile Network Code (MCC) 262. So I set the „MCC Filter“ to 262 and Generate a Database. After that a got a file „/storage/emulated/0/.nogapps/lacells.db.new“. When I rename the file to „lacells.db“. The „LocalGsmNlpBackend“ shows a correct date on “Current Database”. But it don’t works.

The backend “GSMLocationNlpBackend” has an included database. This makes the app very big. And I can’t update the database. So I want to use the backend „LocalGsmNlpBackend“.

The GSM Tower is in the database. I go into the db (“sqllite3 lacells.db) an run the query “select * from cells where cid = 0000” (0000= my cid). There is a line with the correct mcc,mnc,lac and cid.

Are there some logfiles where I can find a hint?

Thanks

Snowyrain

Edit: It seems to work. I switched to cyanogenMod M11 (without any gapps) and I'm using the lacells-creator script.
[Android Apps and Games] sancho_panzer:
[MENTION=3999488]MaR-V-iN[/MENTION] please read my most recent PM, something strange is happening.

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Alucard-V1.4qs

Recovery:

TWRP 2.8.3.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M9 (KK 4.4.4)

Kernel:

Default CM11/M9 3.1.10

Recovery:

TWRP 2.7.1.0
[Android Apps and Games] user822:
I would guess LocalGsmNlpBackend+OpenCellId is by far the best method to get a offline location, since there are so many cell towers in their database and around the world?
[Android Apps and Games] CokeFever:
OpenWlanMapNlpBackend doesn't seem to work, and I think the libwlocate has been updated from using http method other than socket, could someone helps to confirm this? Thank you. :)

Reference: http://sourceforge.net/projects/libwlocate/
[Android Apps and Games] Oberhorst0815:
Hello everybody!

First of all: I REALLY like the project. I am a fan of google free apps and my phone is google free.

The geolocation with cell-towers or Wi-Fi is really interesting and I tried it on my phone (Samsung Galaxy S3 i9300, CM 10.2.0, Adnroid 4.3.1). I installed it via fdroid with the backends LocalWifiNlpBackend, GSMLocationNlpBNackend and LoalGSMNlpBackend. And it works!!!

Unfortunately it seems like the GPS is never used anymore... Even if I turn the Wifi & cell-tower location off it does not take GPS. It still uses wifi & cell-tower-based geolocation. If I change the options in the µg UnifiedNlp it is still working and using wifi & celltowers.... If I uninstall all apps and reboot it still uses it... So it looks like the GPS is somehow "overwritten". Do you see any posibility to still be able of using gps? I'd like to use it for geocaching :)

Thanks a lot for this awesome project!

Oberhorst0815
[Android Apps and Games] Ultramanoid:
I'm using the latest version with the Apple backend and works just fine ( mostly I just need it to locate me on the Google Maps mobile site in a browser when I'm travelling in another country ).

Except it silently stops working for no reason, and the only way to make it 'switch on' again is to restart the device, which is very annoying, particularly when I'm using maps in the browser and I have to reload all the tabs I had open again.

Any ideas about this ? There are no errors or toasts or anything, it simply stops. Clearing all data and force stopping it, stopping Location and restarting it, etc, does nothing, the whole device must restart for Location to 'switch on' again.

Edit : CM11, 4.4.4, rooted devices, no Google stuff, and the apk is in /system/priv-app/ already.
[Android Apps and Games] TassMetal:
Hi, UnifiedNLP just appeared on my FDroid as installed, but I never installed it and when i try to uninstall it says "De Installation Error" after asking me if i wanted to uninstall Google Play Services.

Do i have UnifiedNLP installed or not?

Thanks :)
[Android Apps and Games] Uran-235:
[MENTION=6283030]TassMetal[/MENTION]

I guess you have gapps installed on your device, didn't you?

UnifiedNLP has the same “name“ as the corresponding app of google (com.google.android.gms). Thatswhy it seems like UnifiedNLP installed.
[Android Apps and Games] TassMetal:
That is :) I have gapps installed, thank you very much bud.
[Android Apps and Games] Uran-235:
I have a gapps-free tablet (Note 10.1, N8000) with OmniROM Kitkat.

I installed NetworkLocation.apk, LegacyNetworkLocation.apk, GSMLocationNlpBackend, LocalGsmNlpBackend and NominatemNlpBackend.

Every backend is activated.

But I don't know how to check if it works?
[Android Apps and Games] pepepenk:
Have RILJ wakelock after every reboot which kept the device awake nearly 100%. Can solve it by deactivating 'location slider' (plus disconnect data) and activate it afterwards again.

PM me which logs you need to investigate, running full-clean-wiped fresh installed CM11.

*love* my _working_ Google-free'd phone - you rock!
[Android Apps and Games] aelmahmoudy:
Remove LegacyNetworkLocation.apk
[Android Apps and Games] Uran-235:
So I did and restart. But what is the next step? e.g. which App provide GSM location?
[Android Apps and Games] aelmahmoudy:
Those backends provide GSM-based location: GSMLocationNlpBackend & LocalGsmNlpBackend.

Note that LocalGsmNlpBackend needs you to download a database.

You can test with an app like OSMAnd for example.
[Android Apps and Games] Uran-235:
thanks for your reply...

I already downloaded some databases, e.g.

GSMLocationNlpBackend:

Data of OpenCellID (~ 64 MB)

and

LocalGsmNlpBackend:

Mozilla Location Services for my MCC

Now when I open OSMAnd and “click“ the location icon the app says no location available.

Android settings / preferences, location, mode = only wifi / mobile network

If I set the location settings mode to GPS my location will be shown correctly.
[Android Apps and Games] gorillus:
Here it's a similar behavior. It takes some time until there is a cell-position and a bit later there is the wifi-location - after some more seconds they disappear. With the NOGAPPS-Networklocation (only =<v1.1.0) there was an immediate position which wont disappear. I'm using Slim-Bean 4.3.
[Android Apps and Games] sancho_panzer:
+1.

Device:

Samsung Galaxy S4 (GT-I9505)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Googy-Max3 CM-Kernel 1.2.5

Recovery:

TWRP 2.8.4.0

Modem:

I9505XXUGNE8

Device:

Nexus 7 (Grouper)

ROM:

CyanogenMod 11/M12 (KK 4.4.4)

Kernel:

Default CM11/M12 3.1.10

Recovery:

TWRP 2.8.4.1
[Android Apps and Games] zxhcat:
cool
[Android Apps and Games] gorillus:
I finally figured out what was the issue. I had LegacyNetworklocation AND µg UnifiedNlp from F-Droid installed. I didn't know they are doing the same, so probably there have been conflicts. The LegacyNetworklocation works perfectly without UnifiedNlp from F-Droid! Thanks a lot!
[Android Apps and Games] Nosepull:
Cannot disable GSMLocationBackend

I switched from CM11 and minimal, restricted GApps to the Google-less ug stuff several days ago, and I'm impressed: For me (avoiding Google as much as possible even before the switch) there is no real disadvantage when using BlankStore & Co. Thanks for the work!!!!!

However, I notice that according to CM privacy settings "GSMLocationBackend" (not: "GSM Location Backend" - BTW not very good idea to name two backends pretty much the same :p) keeps on querying the mobile's position continuously. No matter if I enable or disable this backend, even after a restart, even if I only enable GPS-based location in the settings. Seems to drain the battery, too.

I can, however, greenify this app, which prevents the constant location queries.

Has anybody else noticed that?
[Android Apps and Games] Shobit Joura:
I have opened , an issue

Link =

https://github.com/microg/android_packages_apps_UnifiedNlp/issues/167#issuecomment-435774413
[Android Apps and Games] Shobit Joura:
It's not working in android 9

I installed microg on oreo 8.1 roms , it works like a charm, but when i install the same on android pie and after setting up location backends in self check , following bozlxes are unchecked and location services arent working fine!!

Box 1 - no known location

Box 2- geocoder cant test location no location is provided !!!

Plzz help !

I have tested it in 3 to 4 pie roms it didnt work !!!!

I am attaching a log cat , and I have also tried rebooting after giving the following commands , pls help.......

Shabinder Singh:

./adb shell

su

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
[Android Apps and Games] Tomatot-:
I have the same issue on Pie as well. No way to make it work. Running LOS on an OP6.
[Android Apps and Games] Shobit Joura:
Hello devs plzz look into the issue!!!!!
[Android Apps and Games] guest4711:
No reasons to be rude... (the use of a lot of exclamation marks can be interpreted such a way). And how should they look into it without proper logs?
[Android Apps and Games] Shobit Joura:
See i have provided logs , and i dont use exclamation mark to show my rudeness , i use them to attract attention of dev. Ohk sir .
[Android Apps and Games] rayman95:
Hello, I use microG LA15.1 unofficial on Galaxy Note 3 and want to know if I must update the network location app, and which one or maybe the 3, certainly not??? Got V O.2.6.13280 ....

Thanks for the advice....
[Android Apps and Games] kurtn:
NLP core is part of microG. You only install and activate location back ends like deja vu
[Android Apps and Games] salmanfarisy:
Hmm.. I installed all six of them (Mozilla, dejavu, apple, radiocell, local wifi, local GSM). Is that no good? Any bad effect?
[Android Apps and Games] n76:
UnifiedNlp and/or microG will use the location report with the smallest error estimate. Deja Vu is a replacement for local wifi and local GSM so you probably don't need all three of those.

I personally have Mozilla, Deja Vu, Local GSM and local WiFi installed but only have Deja Vu enabled. The Mozilla one I'll enable if I get off a plane in an area I haven't been to so that I will have a location while Deja Vu is learning the new environment. The only reason I have the local WiFi and local GSM backends installed is so I can provide support for them if someone reports a problem.

One could make an argument that the local GSM backend preloaded with the mobile/cell tower information for the area you are traveling to might be good enough to get started with while Deja Vu learns the area and that would allow you to avoid needing a data connection when you arrive. So I can see where one might not need to install the Mozilla, Apple or Radio Cell backends if the location provided by the local GSM backend is sufficient for your needs.
[Android Apps and Games] salmanfarisy:
Thanks for the explanation.

Just downloaded database of local GSM of my country. And disabled local wifi since I already have dejavu.

So the question is, for online backend I only have to use one of Mozilla, apple, and radiocell? If I use all three, will the result be better? If no, which one is the best?
[Android Apps and Games] n76:
The accuracy of each of the online backends depends on their dataset. One might have more complete data in one place than the others. And in a different location another backend might be better. So it depends on where you are which of the online backends is better.

Since I usually run with data disabled I don't have much of an opinion on which of the on line backends is better where I live and travel.

I guess if you run all of them, then the one that reports a smaller error will be the one used. Seems like wasted bandwidth to me though.
[Android Apps and Games] salmanfarisy:
Cool. I'll have them all enabled then..

Edit : Enabling all backends takes a lot of RAM. Offline solutions save you bandwidth, but take more space of RAM and storage. Online backends take less RAM. I guess I'll use Dejavu (saves bandwidth, storage, and ram), but will enable another three (local GSM uses database from Mozilla too right?) when navigating..
[Android Apps and Games] Klizi:
I think I have have successfully configured the back end, with radiocellids and wifi. It's displaying accurate location in sat stats. And also in Google maps.

But I can't start Google maps navigation mode, because it asks to turn on high accuracy mode. (which activates the GPS antenna I guess)

Can I just use the cell tower back end on navigation mode too?
[Android Apps and Games] kurtn:
Osmand can navigate with NLP only. But I think GPS is better for stable navigation outside of cities.
[Android Apps and Games] salmanfarisy:
Yeah, even Navigation for Maps Go stuck in the logo when Location is Battery Saving mode.
[Android Apps and Games] PJK2011:
I've been running microG successfully on marlin, Bootleggers ROM (Pie/9), for a while now, except the last checkbox is never checked:

"UnifiedNlp do not have Location to test Geocoder".

So today I joined the nogoolag TG group and found two helpful posts.

First I went to Shadow53 to install microG as a system app:

https://shadow53.com/android/no-gapps/faq/location-services-not-working/

Then I saw the nogoolag post and followed this technique:

-If NLP is not working:

--download and install this: https://f-droid.org/app/com.vonglasow.michael.satstat

--Enable High Acccuracy Location and open SatStat. Wait for it to get your location.

--Don't close SatStat, minimize it and open MicroG Settings > Self-Check. All boxes shold be checked.

Report problems with the MicroG app here:

Well, that linked to the main MicroG thread, which then redirected me here for Nlp problems.

In microG I have the first three UnifiedNlp boxes checked (registered, backends, location enabled).

The last part says UnifiedNlp has not last known location even though I have a perfect fix and map reading in SatStat.

Then the last checkbox, UnifiedNlp do not have a location to test Geocoder.

Please verify your location Backend.

And

No UnifiedNlp location was provided by the system within 10 seconds.

All the Backends in UnifiedNlp Settings look good and have the boxes checked.

Thanks
[Android Apps and Games] kurtn:
In satstat there is a map and the threedotmenu has a legend for you to know what location is reported by what provider. If you see a blue pin at your location, NLP is OK.
[Android Apps and Games] PJK2011:
Okay. Thanks. My location has both a red pin from gps and a blue pin from network provider. There's also a blue square about 300 meters away from my location. I suppose that's the 3G cell tower location. But in either case, SatStat says my location is good, but microG says UnifiedNlp does not have Location.
[Android Apps and Games] salmanfarisy:
From Nanodroid's documentation :

“

- unified Nlp is registered in the system, but fails to get location

*issue the following commands as root, on-device:

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION

*some versions of com.qualcomm.location conflict with uNlp, if it's installed and unified Nlp doesn't work, try the following command to get rid of it, as root, on-device:

novl -a com.qualcomm.location

- Ichnaea (Mozilla) location backend doesn't provide location

*if you use Blockada, add the location backend to the whitelist

for any other ad-blocker, whitelist the following domain:

https://location.services.mozilla.com

”
[Android Apps and Games] PJK2011:
Okay. Thanks. I was only using documentation at microG's github. I hadn't seen Nanodroid's documentation.

Issuing the two terminal commands cleared the checkbox, "UnifiedNlp has no last known location".

Then once I had location, microG asked for the Address Geocoder to be configured.

At that time I noticed that I missed the section in microG about installing Nominatim. After installing that, my microG Self Test shows all boxes checked.

Thanks for your help.
[Android Apps and Games] djuka007:
Here's my problem:

ROM - https://xdaforums.com/galaxy-s4/i9506-develop/rom-resurection-remix-5-6-2-unofficial-t3321411, patched to support signature spoofing.

Installed the latest version of NanoDroid-microG (0.2.7).

Added Mozilla backend beside DejaVu and Nominatim.

Navigation works fine unless I try to use a mock location.

But if I set a mock location via https://play.google.com/store/apps/details?id=com.lexa.fakegps, microG self check loses last known location and location to test the geocoder.

This doesn't bother Google Maps (the location is not active/blue, but it's set) but other apps don't see the mock location at all.

I've also tried setting the location inside the microG with "Geolocation Map", but the settings don't stick.

How can I troubleshoot this and has someone found a mock location app that works with UnifiedNlp?

P.S. Also tried https://repo.xposed.info/module/com.fakemygps.android with Xposed, but I can't choose anything, the picker is not working (probably because of microG)
[Android Apps and Games] Oswald Boelcke:
In order to fake my location, I'm successfully using the Xposed module XPrivacyLua (XPL) in combination with its pro-companion. As I don't use and haven't installed anything by Google (neither applications nor services) I've no experiences with Google Maps. However, just as an example I've attached screenshots from the use with OSMand, after I just "told" XPL to fake the location for OSMand. Screenshot (SS) 1 is with location on "saving", SS 2 with GPS. SS 3 shows the log of the XPL pro-companion about the condcuted fake.
[Android Apps and Games] djuka007:
I actually need the ability to spoof the location "on demand" i.e put the exact location instead of a random one.

I don't think that you can do that with XPrivacy.
[Android Apps and Games] guest4711:
You can do so by installing a fake location app and selecting this app in developers settings "select mock location app".
[Android Apps and Games] djuka007:
That's exactly what I did (scroll a bit up), but it "breaks" location update
[Android Apps and Games] Oswald Boelcke:
Guess it gets slightly off-topic in this thread, and I hope @MaR-V-iN doesn't mind.

Unless I misunderstand your requirement, the pro-companion of XPL provides me this feature (please refer to screenshots); however, if I correctly remember this feature must be purchased. I bought the "complete package" - not because I've a use for all but mainly to support the XPL development and to deference to Marcel, the developer of XPL and many other privacy dedicated applications.
[Android Apps and Games] djuka007:
I figured out that one can use Fake GPS as a picker for Fake My GPS from Xposed.

With location set in Fake My GPS, location in Google Maps becomes live (blue), but if I try it with Tinder, it still gets my real location.

This really confuses me.

Screenshots included.
[Android Apps and Games] guest4711:
Probably Tinder uses wifi- and celltower based location service (not GPS) - also known as battery save mode location services (while GPS only mode is 'on device mode').
[Android Apps and Games] djuka007:
I hope we are not going too much off-topic here.

Here's the thing - before switching to microG (from GAPPS), Fake My GPS did all the work by itself. The picker was working normally, I didn't need to install a separate mock location app (or set any app for a mock location for that matter) and it would spoof all location settings - whether it was battery saving or device only. But microG framework or UnifiedNlp don't work too well (or at all) with it.

P.S. Poz za BG! ;)
[Android Apps and Games] dhacke:
Hey i found out that UnifiedNlp doesn't register anymore in the system. I'm using the UnifiedNlp which comes with NanoDroid.

I have a XZ2 with OmniROM 9 on the april 2019 security patch.

Has anyone the same problem on this ROM?
[Android Apps and Games] tiktok1:
Same issue here with same setup on a p10

I tried this but did not work:

pm grant com.google.android.gms android.permission.ACCESS_FINE_LOCATION

pm grant com.google.android.gms android.permission.ACCESS_COARSE_LOCATION
[Android Apps and Games] PoochyX:
There's a xposed module to get it recognized by the system

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] dhacke:
In my case it's works again. But no exact idea why. In only update baseband etc with new stock rom and update the OmniROM build which i use.

---------- Post added at 03:11 PM ---------- Previous post was at 03:10 PM ----------

Unfortanetly Xposed is still not there for Android 9:(
[Android Apps and Games] antimatter.web:
Can someone point me towards how to apply the suggested change? I don't know how to locate the pathway (via fx file explorer with root add on) and am not versed with scripts
[Android Apps and Games] Doom Slayer:
Xposed works with Pie.

U need riru - core, riru edxposed (sandhook) from magisk modules and edxposed manager.

This particular module (xposedgsmcoreunifiedgpl) is working for sure. Other modules may not be compatible with pie, so be careful
[Android Apps and Games] Valdrio:
First check if you enable high accuracy GPS or not in GPS settings when GPS is active. If not enable it and it'll be solved
[Android Apps and Games] joshthemajor:
What if I use Waze?

I downloaded waze and it's working with this amazing method!

Question is, is google still able to "spy on me" when I'm using Waze with no account logged in?
[Android Apps and Games] kurtn:
Google knows you and your phone. And with waze Google gets your location.
[Android Apps and Games] ffew2:
Hello, my english is not very good, sorry. (Also I don't have enough posts for post links, sorry for that too and replace _ to .)

I don't have github account, so i thinking post it here, maybe devs will look at it. Nexus 5x, I installed lineage-15.1-20191213-microG-bullhead (from lineage.microg_org) -> franco kernel -> magisk + Better Battery Stats. If wi-fi is turn on and I don't turn on anything in "Configure locations backends" (default setup) the phone can't go to "deep sleep" (very fast battery discharge). Links to Better Battery Stats dump is here here. But if I set checkbox "Mozilla Location Service" in "Configure locations backends" all working fine. I spent some time to figure that is the problem, maybe it will helps to others or maybe it is just a bug.
[Android Apps and Games] kurtn:
Why Franco kernel? I don't think you will see that issue in default configuration. So the only one to have a look is Franco.
[Android Apps and Games] aceventura82:
Hello,

I have installed MicroG+UnifiedNlp in my Phone (Pixel Sailfish) with LineageOS 17 (Unofficial Android 10) without GoogleApps

everything I need work as expected, MicroG setting show All options checked and I do can get the location correctly.

the only problem is the location do not update automatically. to update the location I have to disable and enable the Backend (Mozilla Location Backend), I have tried other backends with similar outcome.

MicroG and the Backend have both Location Permissions

Does anyone knows why the location is not updating?

Thanks!
[Android Apps and Games] kurtn:
https://github.com/microg/IchnaeaNlpBackend/issues/50
[Android Apps and Games] Fruitrat:
Same problem here with DejaVu and local GSM backends. After re-enable it works briefly and then it dies again.

Some apps rely on the network location backend and dont get a location at all even when GPS is active for another app.

crDroid 6.2 (Android 10) + microg.