yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] starbright_:
Indeed:

Found here (https://github.com/microg/android_packages_apps_GmsCore/wiki/Installation) at the very end

"Note: On Android 7 (or later) an additional patch is needed to make location work, or alternatively, you can install GmsCore.apk in the /system/priv-app folder."

But it is not explained, what to do with this patch ?!? So

best

they would

provide an separate patched App for Android 7+

.

Couldn't even FDroid decide which version fits to device (in terms of compatibility)?

So I have to go other way, install to a different location.

Mh, can you explain howto do that? I am not even sure where do installed it to. It's all done by FDroid automatically. I looked around and found:

/data/app/com.google.android.gms-1 - folder. Is this the one?

The others dealing with microG I found are:

/data/app/com.google.android.gsf-1 and

/data/app/org.openbmap.unifiedNlp-1 folder. Can I keep it here?

Can I just copy the complete folder via from terminal or adb shell to /system/priv-apps ?

But structure in this both folders are different different. In priv-apps it is just the apk file, each in a subfolder.

In data/apps there is some oat and lib beside the *.apk !?!
[Android Apps and Games] n76:
You can't write to the /system partition unless the volume is remounted. Here is, in part, what I used to do when I was using crDroid:

wget https://microg.org/fdroid/repo/com.google.android.gms-11675464.apk
wget https://microg.org/fdroid/repo/com.android.vending-16.apk
adb root
adb remount
adb push com.google.android.gms-11675464.apk /system/priv-app/
adb push com.android.vending-16.apk /system/priv-app/

You can leave the normally installed stuff in place. Turns out that if you install a newer version in the normal user /data area Android is smart enough to realized it is an upgrade of the version in /system/priv-app/ (as long as they were signed by the same key). So upgrading to new versions is trivial, just have F-Droid do its normal thing once you've added the microG repository to F-Droid.

I've now migrated to Lineage with microG so the above is no longer necessary for me.
[Android Apps and Games] starbright_:
I get it now working (partially) after moving gms. It seems not all backends working.

I still have problems with apps - but this is probably due to microg. The "bahn-navigator" and "clever-tanken" complain, that google-apps need to be updated. While in bahn the location service works, it doesn't at all in tanken-app. The Location icon is not even be activated in this app. Strange.

Maybe it is due to the fact, that also vendig has to be moved (according to post above from [MENTION=6204913]n76[/MENTION])

Instead of copy or move - wouldn't it be smarter to set links? At least for updates this would be useful.
[Android Apps and Games] starbright_:
I finally get it work, even together with microG. Many thanks to the dev and to you guys help me!

It has been two things - using latest beta microG core and moving it to /system/priv-app.

One question to get position via the offline cell database (localGSMbackend): Do they just use the position of the cell tower I am using or do they try some triangulation to become more accurate?

There is just one little thing. To get from geographical position to city/street I need a another service (address location if I remember right). I can't found one that works offline

In fact I have some offline Navigation apps (here, mapfactor) which can do this - but is there a chance to bring this two things together ?
[Android Apps and Games] androcraze:
So you had to move the UnifiedNlp.apk binary to /system/priv-app/ ? I'll have to adjust my zip installers. /stem/app/ worked with 6.0.1.
[Android Apps and Games] n76:
It attempts to use all towers reported by Android using both the older and newer APIs.

However I've yet to encounter a custom ROM for any of the phones I've had that reported more than the one tower you are connected to.
[Android Apps and Games] Ultramanoid:
/system/app is working fine for me. ( Nougat. )
[Android Apps and Games] starbright_:
Mh, I think the gsm-core includes the unified.Nlp, so yes. I don't have this as a single apk.

---------- Post added at 06:40 PM ---------- Previous post was at 06:34 PM ----------

Probably my english is to bad. I don't get it. So you think that the ROM is only reporting the one tower I am connected to?

That brings to my mind, that (using once this Cell-ID and power watching apps) at least my device doesn't report neigbar (2nd best...) stations. I am not deep enough in this topic, but this might deal with the baseband-processor/module, that doesn't report that. So it is not the question of the ROM but of the baseband-proc (which is controlled by a closed source binary).
[Android Apps and Games] guest4711:
The new backend is available now on f-droid:

Deja Vu Location Service (Mobile/cell and WLAN/Wi-Fi based network provider for UnifiedNlp and microG) - https://f-droid.org/app/org.fitchfamily.android.dejavu

But I'm missing an option to finetune the settings or to import GSM or local wifi databases.
[Android Apps and Games] n76:
One of my goals was to create a "install and forget" back end. So import/export and fine tuning of settings are intentionally missing.

With respect to tuning of settings, I have found that the defaults work well and in my other back ends caused support issues.

Import/export may be implemented in the future. The sqlite database schema is trivial, so with adb you can create import and export scripts using bash on your desktop computer if desired.

---------- Post added at 09:32 AM ---------- Previous post was at 09:01 AM ----------

Here is a backup sample:

$ adb root
restarting adbd as root
$ adb pull /data/data/org.fitchfamily.android.dejavu/databases/rf.db
6363 KB/s (4358144 bytes in 0.668s)
$ sqlite3 rf.db
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
sqlite> .tables
android_metadata emitters
sqlite> .schema emitters
CREATE TABLE emitters(rfID STRING PRIMARY KEY, rfType STRING, trust INTEGER, latitude REAL, longitude REAL, radius REAL, note STRING);
sqlite> .quit
$ sqlite3 -header -csv rf.db "select * from emitters;" > rf.csv

A restore is slightly more complex as you need to create the database and the emitter table before importing the .csv, but basically not too difficult. Once you have your database, copy it to your phone deleting the journal file. Probably best if you disable the backend while you do that.
[Android Apps and Games] BootloopedMillennials:
Much thanks. I downloaded it off F-Droid. As someone that uses their phone for offline GPS on motorcycle trips, these backends are great to have.

:good:
[Android Apps and Games] starbright_:
[MENTION=6204913]n76[/MENTION] and [MENTION=8010004]guest4711[/MENTION]:

What is the difference/advantage of DejaVu over localGsmNlpBackend ? Is DejaVu usable offline too?

Are the location sources databases the same?

Is there a chance to use a Navigation-app with all its offline maps/info as here or mapfactor to to be used as address resolve service (sorry if I translated wrong)?
[Android Apps and Games] n76:
DejaVu builds its own database while localGsmNlpBackend requires you build a database from a source like Mozilla or Open Cell ID.

The primary use of DejaVu is for offline. In fact all three of the backends I've written are targeted for offline use as I normally run with data turned off.

DejaVu uses the sensors in your phone to build its database. localGsmNlpBackend uses crowd sourced data downloaded from a server that combines the crowd sourced data into one unified database.

I am not sure what the question is here. Apps like OsmAnd and Maps.me use address information from OpenStreetMap (OSM) saved within their on-phone map data. However OSM address data is often quite sparse. I often use an app like AddressToGPS (which uses Google's address data) to get a my destination location when I have a WiFi connection before I leave on a trip. Maps.me can use the resultant geo intent (OsmAnd has more troubles with the geo intent from AddressToGPS). Once you have the lat/lon of your destination either OsmAnd or Maps.me can provide off line navigation.
[Android Apps and Games] kurtn:
I've made a system app out of unifiedNlp in LOS 15.1. Location works. But now I can't see the app in launcher. Is this a bug?
[Android Apps and Games] androcraze:
No. I don't see the icon under Launcher either.

Look under "Settings -> Location".
[Android Apps and Games] kurtn:
Oh yes. It's hidden under security settings in 15.1
[Android Apps and Games] kurtn:
[MENTION=5061138]androcraze[/MENTION] do you know why f-drod now continuously trys to update unifiedNlp? And how to stop?
[Android Apps and Games] androcraze:
I'm guessing that you have F-Droid's auto-updater installed? I manually download apps from F-Droid.

If it's seeing that you have F-Droid installed, it should also see the version as well. As I have the most current version in my zip installer, I'm surprised that's it's trying to download anything.

I'd have to get a source for the app that wasn't built by F-Droid, then include that version in the zip. Maybe someone else has a solution.
[Android Apps and Games] kurtn:
Just recognized your flashable zip from December 2nd. Works well in Oreo 8.1. Looks strange in f-droid, but no updater bug.
[Android Apps and Games] starbright_:
Ahh, so the name makes sense. It is only working for places where you have already been - dejavu ...

The background of this question has been, to have an offline coordinates to address translation, so with a database inside the device. As every (offline-)navigation app has to have this databases included (somehow) I am wondering whether this might be used with unifiedNlp as address-resolver.
[Android Apps and Games] n76:
I would like a geocoder backend that would use local databases also. A while back I looked at the OsmAnd and Maps.me apks to see if they had an undocumented API that could be used and at that time did not see one. It seems a shame to have a downloaded map with address information for the area of interest and be unable to access it. Or in my case, two sets of downloaded maps.

There is an open address project that could be of use to create an on phone database. But that would be yet another database to download. And I am not sure they have point of interest information for when you want to find a particular restaurant, museum, etc.
[Android Apps and Games] BenG7:
Hi

I am a bit confused here and would need clarification from someone familiar with UnifiedNlp.

Here is the deal: I bought a new phone, flashed it with lineage rom straight away / before first use; rooted

installed F-Droid + Yalp

installed UnifiedNlp in order to use OpenWeatherMap as weather provider, aslo installed DejaVu network location

the thing is Yalp reports there is an update for UnifiedNlp, When I click on the update, it display the UnifiedNlp icon but the wording says "Google Play Services"; so I did not go ahead with the update - can anyone please clarify; is it actually as the google play services or is it really UnifiedNlp? I certainly do not want

any

google

whatever

at all on my phone.

Thanks
[Android Apps and Games] kurtn:
You have no google play services. But you have aosp. And that is Google. But the least evil part.
[Android Apps and Games] BenG7:
Hi Kurtn

Thanks for the answer.

I forgot to mention: no gapps.

Still i don't understand : will the update install Google play services or just actually update unified nlp?

Thanks
[Android Apps and Games] n76:
If Yalp installs anything, it would be from Google as UnifiedNlp is not on Play Store. But most likely the attempted update would fail as the signing key would be different. Just tell Yalp to ignore updates for this.
[Android Apps and Games] ale5000:
For things to work microG GmsCore and UnifiedNlp have to have the same internal name of Google Play Services.

So currently any app that check updates like Yalp Store, F-Droid or Play Store will pick wherever it found in its list also if it isn't the app you have installed.

Updating it will likely fail for the mismatching signature but don't do it, update only the one (microG GmsCore or UnifiedNlp) you know you have installed.
[Android Apps and Games] Gerdje_:
Maybe a silly question but I'm not able to install the backends from Github. TWRP says Invalid zip format. For example the NominatimGeocoderBackend: https://github.com/microg/NominatimGeocoderBackend, I can only download the zip.

Device: Samsung S4 VE with Lineage by BenLue. Xposed. Signature spoofed with Fakegaps. MicroG installed.
[Android Apps and Games] n76:
Never tried that but it sounds like the hard way to do it.

Why not simply install the backends through F-Droid? The backends can and, in my opinion, should be installed as user apps anyway. Not sure if the Nominatim backend is in the standard F-Droid repository but if not it certainly is in the microG repository.

Edit: Just checked and the version of Nominatim I am running was installed from the standard F-Droid repository.

Edit 2: The only ZIP files I see on GitHub for the Nominatim backend are source file ZIPs. There is a compiled APK there for each version. Not sure how you install a APK through TWRP, but you could either download it directly to your phone and then install it with a file manager or download it to your computer and use ADB to install it. Again, install via F-Droid is the easiest and it will let you know when you need to upgrade to a new version. Also, APKs installed in the user area survive ROM upgrades so no need to re-install the backends after upgrading the ROM.
[Android Apps and Games] Ultramanoid:
Version 1.2.2 has only a source code release, no apk. The previous one, 1.2.1, does have a build :

https://github.com/microg/Nominatim.../download/v1.2.1/NominatimGeocoderBackend.apk
[Android Apps and Games] kurtn:
Try this https://github.com/microg/android_packages_apps_UnifiedNlp/releases
[Android Apps and Games] ale5000:
Beacause there isn't any flashable zip, the is only an apk to install from inside Android.

Download it from here, this version can be updated with F-Droid.
[Android Apps and Games] Gerdje_:
Thanks guys, I wasn't able to figure that out myself.
[Android Apps and Games] rjven:
Hey,

I just wanted to thank you for amazing work. It took me some time to get it work properly but it's worth it.

For future reference, as other people mentionned before, you need to install the app in /system/priv-apps for android 7+. /System/ is read-only by default so you need to change its permission to read-write. For some reasons this just wouldn't work for me on adb shell so instead I used an app called "/system/app mover" on F-droid and that solved my problem.

The unifiedNlp finally appeared as correctly bound to the system and I can now use geolocalisation! I am on a Huawei P9 running resurrection remix Gapps-less :)
[Android Apps and Games] n76:
adb root

adb remount

Didn't work?
[Android Apps and Games] Sam-Picotte:
Hello guys,

I would want your opinion on an issue I have. I've installed microG on the omnirom 8.1 for oneplus 3 with the Shadow53's pack (this one without playstore) in order to avoid to have to manually move the apps in priv-apps.

Almost everything works great but in the microG options, UnifiedNlp hasn't any known location.

My location apps work (Here Wego, Maps.me) but only in energy saving mod (the other mods don't).

I've also installed the Apple backend from the F-droid to test it, but it crashes everytime. Do I have to move it to priv-app too ?

Thanks for your help here ! :angel:
[Android Apps and Games] n76:
Unless something has really changed for 8.1, the location backends can be normal user apps. No need for them to be in /system much less /system/priv-app

Does the backend have all permissions granted? Can you get a logcat showing the crash stack trace?

FWIW, I have a bit more luck with the Mozilla backend in my area. That is, I do on the rare occasions I have it enabled. Most of the time I use the Déjá Vu backend. But then again, I have a prejudice for it. :)
[Android Apps and Games] kurtn:
Your phone is mentioned here

https://xdaforums.com/android/software/lineageos-microg-t3700997/post75900847

Maybe this can be a hint for your Rom's dev
[Android Apps and Games] Sam-Picotte:
I've granted all the permissions asked. Strangely, I can't reproduce the apple backend crash. Maybe I forgot to give it a reboot to get it work. But well, better like this :)

Is there an explanation why the location works in high accuracy and saving energy mod, but not in "phone only" mod ?

Interesting, so I'll have to wait and see what happens with this :cyclops:

Anyways, thank you for your help guys !! :good:
[Android Apps and Games] n76:
"Phone only" mode means GPS only in Android speak.

"Energy saving" mode means network based location only in Android speak.

"High accuracy" mode means both GPS and network base locations.
[Android Apps and Games] kurtn:
Phone only mode is GPS. Install SatStat to check sensors. Maybe another bug to report your Rom's dev.
[Android Apps and Games] EPT-3:
Wi-Fi/GSM Geolocation on Android 2.3.7...!

Just for the records and concerning my first post #118 on page 12 here, finally I didn't manage to fix Wi-Fi- and cell-tower-based Geolocation on Android 2.3.7...!

It is possibly my fault with all the necessary configurations.

However and since then, on all Android versions and devices (4.4+) it functions perfect!

I still keep my old device in order to check any backwards compatibility issues comparing to Android 4.4, 5, 6 and so on...

Sorry for the interruption and thank you.
[Android Apps and Games] ale5000:
Hi,

I have made a flashable zip to install microG (that include UnifiedNlp) but I don't have any way to test it under Android 2.3.

It would be nice if you can test it and report back.
[Android Apps and Games] .wojtek:
DarkSky (weather app) doesn't work well - can't detect the location and location search is heavily build on google serach. If restored from backup with some locations saved they will work just fine.
[Android Apps and Games] .wojtek:
Yes, that's the application.

However in my case it's even weirder - it doesn't detect Google Play Services ( "GooglePlayServicesUtil: Google Play Store is missing."):

04-12 16:29:12.348 3482-31496/system_process I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=net.darksky.darksky/.DarkSky bnds=[276,860][540,1245] (has extras)} from uid 10034 on display 0
04-12 16:29:12.389 3482-11964/system_process I/ActivityManager: Start proc 25253:net.darksky.darksky/u0a127 for activity net.darksky.darksky/.DarkSky
04-12 16:29:12.551 25253-25253/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app net.darksky.darksky
04-12 16:29:12.716 3482-31496/system_process I/Xposed: FakeGApps: returning fake signature to net.darksky.darksky
04-12 16:29:12.744 9004-25297/com.google.android.gms D/GmsHttpFormClient: -- Request --
X-GOOG.USER_AID=…
04-12 16:29:12.757 3482-3530/system_process I/Xposed: FakeGApps: returning fake signature to net.darksky.darksky
04-12 16:29:12.797 3482-3540/system_process I/ActivityManager: Displayed net.darksky.darksky/.DarkSky: +428ms
04-12 16:29:13.174 9004-25297/com.google.android.gms D/GmsHttpFormClient: -- Request --
X-GOOG.USER_AID=…
04-12 16:29:14.567 25253-25290/net.darksky.darksky I/CrashlyticsCore: Crashlytics report upload complete: 5ACFA8090101…
04-12 16:29:20.552 25253-25272/net.darksky.darksky I/FA: Tag Manager is not found and thus will not be used
04-12 16:29:20.592 25253-25272/net.darksky.darksky W/GooglePlayServicesUtil: Google Play Store is missing.
04-12 16:29:20.593 25253-25253/net.darksky.darksky W/FA: Service connection failed: a{statusCode=SERVICE_INVALID, resolution=null, message=null}
04-12 16:29:20.594 25253-25272/net.darksky.darksky E/FA: Discarding data. Failed to send event to service
04-12 16:29:29.564 25253-25258/net.darksky.darksky I/art: Do partial code cache collection, code=59KB, data=55KB
After code cache collection, code=59KB, data=55KB
Increasing code cache capacity to 256KB
04-12 16:29:42.728 25253-25296/net.darksky.darksky W/InstanceID/Rpc: No response
04-12 16:29:42.734 25253-25296/net.darksky.darksky D/FirebaseInstanceId: background sync failed: TIMEOUT, retry in 10s
04-12 16:29:52.772 3482-3530/system_process I/Xposed: FakeGApps: returning fake signature to net.darksky.darksky
04-12 16:29:52.807 9004-25374/com.google.android.gms D/GmsHttpFormClient: -- Request --
X-GOOG.USER_AID=…app=net.darksky.darksky&……

So when I try to search it fails with completely basic:

04-12 16:30:54.705 25253-25253/net.darksky.darksky W/GooglePlayServicesUtil: Google Play Store is missing.
04-12 16:30:54.706 25253-25253/net.darksky.darksky E/GooglePlayServicesUtil: GooglePlayServices not available due to error 9

I guess this fits better to main microG thread?
[Android Apps and Games] n76:
Yes, the microG thread would be a better place for this.

Do you have either FakeStore or BlankStore installed? Those are the microG project components that fool apps into thinking Play Store is installed.
[Android Apps and Games] .wojtek:
Actually I mixed FakeGApps with FakeStore. But after installing it I run into problem with

04-12 17:06:03.373 6619-6657/net.darksky.darksky W/GooglePlayServicesUtil: Google Play services out of date. Requires 10260000 but found 9258259

But I reported this on GitHub
[Android Apps and Games] addicted2sex:
Do I need NetworkLocation.apk and FuseLocation.apk system apps when I install UnifiedNlp or I can safely delete them ?
[Android Apps and Games] EPT-3:
Thanks. I'm planning to do a downscaling to also test your flashable.
[Android Apps and Games] kurtn:
Sorry, can't find
[Android Apps and Games] Ultramanoid:
"Can't" ?

https://f-droid.org/en/packages/47/
[Android Apps and Games] :
[MENTION=3999488]MaR-V-iN[/MENTION] Is there a way to enable it on Android Pie, right now it says it is not registered in the system, even after rebooting?
[Android Apps and Games] Oswald Boelcke:
Delayed response :o

UnifiedNlp (no GAPPS): https://f-droid.org/en/packages/com.google.android.gms/

UnifiedNlp (no GAPPS) (legacy): https://f-droid.org/en/packages/com.google.android.gms/

UnifiedNlp (GAPPS): https://f-droid.org/en/packages/org.microg.nlp/
[Android Apps and Games] mdl054:
I've been having issues with Pie as well. I can replicate the issue each time with multiple Roms on my OP6, works fine with Oreo and with Pie (gapps installed). May need an update though I feel like it's a permission issue somewhere I just can't figure it out. I'm the wrong guy to investigate this as my knowledge is limited but if I find a fix I will report back. I've spent a few weeks on it already with different combinations.
[Android Apps and Games] Oswald Boelcke:
As I'm extremely happy with the preciseness of my network location, I'd simply like to share which backends I use (and as you see I don't use the Mozilla backend). For details please refer to the screenshots and feel free to reply in case of questions, comments or other recommendations.

The last for screenshots have been taken from SatStat. For the first two, location mode was on energy saving (i.e. network/mobile data only), the last two with lacation mode in "high" (i.e. the former one plus GPS). For those who don't know SatStat, network location is indicated in blue, GPS location in red on the map. ...and in my personal opinion, the network location is really "acceptable".
[Android Apps and Games] n76:
You don't need both Deja Vu and local WiFi as they both do the same things with respect to collecting and processing WiFi data.
[Android Apps and Games] Shobit Joura:
Yeah i am also facing issues in pie , it register and binds in system(using microg) , i grant each permission through terminal , and then reboot , but i always get to see that plz check ur location backend unified nlp isnt able to test geocoder!

And sometimes it even doesnt get registered into system(standalone app without microg) , this thing is irritating and always i have to downgrade to oreo , plzz take a look into this devs!!
[Android Apps and Games] Ultramanoid:
Open an issue on GitHub.