yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] heilbron:
Number of known Wifi networks remains 0

Hi there,

I've been having µg UnifiedNlp (GAPPS) and LocalWifiNlpBackend installed for several weeks on my rooted Samsung S4 Mini with CM13 (Android 6.0.1).

However, as already happended to me with 5.1.1. the WLAN backend

never acquires any wifi networks, i.e. the counter in LocalWifiNlpBackend remains zero

.

(I have GPS fixes frequently as I love gathering Wifi informations for Mozilla Location Services and openwlanmap.org)

Does somebody have any idea what I could do? The Mozilla backend works fine. Is there something that would help debugging?

Thanks in advance, Stephen
[Android Apps and Games] n76:
The local WiFi backend collects data when the GPS is enabled by some other app and the accuracy reported by the GPS is equal or better than a threshold. You can see the various values in the advanced area of the settings. Are those still set to default values on your phone?

And using a program like OsmTracker or SatStat you can see what accuracy the GPS is reporting. That would tell if the issue was insufficiently accurate position information.
[Android Apps and Games] heilbron:
I dont think I've changed any defaults. But just to make sure - here is a screenshot (as well as the screenshot showing that I'm getting no collection)

PS: My GPS fixes usually come down to having a accuracy of around 5m to 7m.
[Android Apps and Games] n76:
I don't have any great ideas. . . How many WLAN access points does a program like SatStat show?

What version of Android are you running?
[Android Apps and Games] heilbron:
It depends ofcourse ;) - around the house in a residential area I have around 5 to 10 according to WifiAnalyzer - in the city about 50. As I mentioned, I do wifi-stumbling for MLS and openwlanmap.org, so I do have some experience regarding these issues....

Im running latest (inofficial) CM13 from k2wl for the dual-SIM Galaxy S4 Mini (GT-I9192). But I already had the same problem with CM12.1 (Lollipop 5.1.1) on the same phone. (When upgrading to CM13 I wiped the data partition).

Are there any log files one could examine?
[Android Apps and Games] n76:
I've placed a debug (unsigned) version of the local WiFi backend at https://dl.dropboxusercontent.com/u/19663978/WiFiBackend-debug.apk which has some debug logging turned on. All logging can be viewed with

adb logcat | grep WiFiBackend

Or for just the sampling service that builds the database:

adb logcat | grep WiFiBackendSamplerService

You will have to uninstall the signed version from where ever you got it (I assume F-Droid) to install this using adb.

It used to be that debug logging could be turned on and off through preferences but that was removed during one of the refactoring updates. . . Looks like it ought to be put back.
[Android Apps and Games] heilbron:
I uninstalled the old app from f-droid, installed the debug version and went outside and back in.

I have attached the logs gained with catlog, filtered for WiFiBackendSamplerService.

-------

UPDATE: For some stupid reason (different apk?!) it actually had worked !! The app now tells me that it has found 23 known WLANs! What is different with the debug version?

I will reinstall the f-droid version again tomorrow morning and will try, whether it works, too.....

Thanks for your help so far! I well get back here in 22 hours.
[Android Apps and Games] n76:
Looks like the WiFi scan is not getting data. I see you are running Android 6.0.1, I assume you've allowed all the permissions the backend has asked for. . .
[Android Apps and Games] heilbron:
Now, it also worked with the original APK file from f-droid, too... I'm sorry to have bothered you. Thanks for your help!
[Android Apps and Games] n76:
No worry. . . I am glad it is now working but it would be nice to know what was keeping it from working before so I can make it more robust.
[Android Apps and Games] 1plus:
It seems that unlp was updated to 1.6.0 on github. Though actually it is reported as 1.5.1 in about menu inside the app itself.

Unfortunately had to downgrade back to 1.5.0, as 1.5.1 is not working properly. It installs and you can run a self-check immediately (which obviously tells you have to reboot as the service is not registered). But after reboot the app crashes when attempting to run self-check.
[Android Apps and Games] bharat g:
Recently the clock widget in cyanogenmod 12 and 12.1 isn't getting location data. Weather data (Yahoo weather and OpenWmap weather) isnt displayed . Could it be related to unified nlp someway?
[Android Apps and Games] budbay:
I have faced this also, I have fixed it by opening the settings for the widget and setting my location manually, then after weather info is displayed go back and change it to automatically get location. After that it should update properly.
[Android Apps and Games] bharat g:
When location is set to manual it updates the weather data. But after that when location is set to auto, it only updates the weather data of the last manually set location, not the current location obtained from network. Very inconvenient on roaming. This is giving problems only since recently. Previously the same rom version with the same unified nlp backends used to work fine. I suspect the weather sources. Other apps work perfectly with grabbing network location.
[Android Apps and Games] bharat g:
How to use unifiednlp gapps without xposed?

[MENTION=3999488]MaR-V-iN[/MENTION]

I see the instructions (from fdroid) for devices with gapps say,

I want to use UnifiedNlp along with GApps. I don't use Xposed framework and I'm reluctant to use it for this single package. Is there any way to make the rooted custom rom add org.microg.nlp to the list of network location providers? Or is there any way to use this with GApps and without Xposed module?
[Android Apps and Games] .bastian:
I've searched so long for a method getting rid of the crappy official playservices without losing the possibility to use the playstore.

Thank you for your work!
[Android Apps and Games] user3210:
Installation does not work properly

Hi all,

what are the requirements for using µgUnifiedNlm with appropriate backends.

Is it indispensable to install:

a) GmsCore? (I would circumvent this packages because I don't wont to interact with the playstore).

b) fake signing app? (I would circumvent this packages because I don't know the security issues come along with a fake signing app installed on my smartphone).

My starting position: Cyanogen mod 13, root, no other geolocation apps and no GAPPS, "Unknown sources" in Settings->Security is activated for app installation.

I've installed µg UnifiedNlm (no GAPPS) (legacy), LocalGsmNlpBackend and NominatimNlpBackend - all packages via f-droid.org and rebooted the smartphone several times.

After that there is UnifiedNlp > UnifiedNlm Settings > "System supports location provider" and "UnifiedNlp is registered in system" not activated, the other properties are ok.

So how can I activate this two properties?

In the openning post of this thread under the section "Installation" there are two hints:

1) "If your system is not AOSP-based but GAPPS-free and the above instructions do not work for you, try placing NetworkLocation.apk directly in /system/priv-app/"

2) "Push LegacyNetworkLocation.apk directly to /system/app and reboot to try it out."

After installing UnifiedNlp via f-droid there is NetworkLocation.apk neither in /system/priv-app/ nor in /system/app. Why this?

Thanks in advance
[Android Apps and Games] n76:
GmsCore is not needed if all you want is location services. It contain Maps API v2 which some apps need but if you are avoiding Play Store the chances are pretty good that the apps you will be using will either use the older MapsAPI v1 or neither.

Signature faking is only needed by GmsCore, not by UnifiedNLP.

Signature faking allows GmsCore to pretend to be Google to other apps. It could also be used by a malicious app to look like anything it wanted, however the patch to allow signature faking (at least on Marshmallow) is on a per app basis so you only need to give that permission to GmsCore. You can review the source code to see if it is malicious in your opinion.

It has been a while since I transistioned from UnifiedNLP to GmsCore. The old UnifiedNLP did not even have that status/settings so I am not sure what is going on here.

IIRC, there are several different versions of UnifiedNLP now that differ slightly based on your ROM. You may have installed the wrong one for your needs.

You should not need to install UnifiedNlp on /system. At least that is my recollection.

Be sure that in your Settings->Location that you have either "High Accuracy" or "Battery Saving" checked to use network locations. For the local GMS backend you will need to download a database for your area before it will do anything.

I find that the SatStat app helps in showing how well network location is working.

Some older apps need the Maps API v1 available from the old NoGapps thread.
[Android Apps and Games] bilbonotry:
Honestly according to me unifiednlp works better when installed in microg project, that is to say with gmscore. It will not interact with playstore if you do not install it, and I think location network works without fake signing. So all you would need in that configuration would be gmscore and a backend (local gsm is the only reliable one for me). For more details http://xdaforums.com/showthread.php?t=3217616
[Android Apps and Games] barturblits:
First should not be an issue. Had a rom with first one not checked and no problems. Second one looks like you forgot to check the backends (activate them) in the backends settings of unifiednlp. There are two options there, enable/disable and settings.
[Android Apps and Games] cmonty14:
[Q] LocalGSMLocationProvider: storage location of database file

Hi!

The GPS Location Provider backend for µg UnifiedNlp fails when downloading the GPS database after x%.

I found the file here for download.

Question:

Where should this file "cell_towers.csv.gz" be stored to be available for GPS Location Provider backend?

THX
[Android Apps and Games] n76:
That is backend is actually a separate piece of software from the UnifiedNLP and issues on it should probably be reported on the GitHub site where the source is hosted.

There should be a log file for its attempt to generate an on phone database located at /sdcard/Android/data/org.fitchfamily.android.gsmlocation/files/lacells_gen.log (but you can remove the thousands of messages about percent complete). That log file should help figure out what went wrong.

Alternatively, you can use some off line scripts to generate the database and then push it to the backend's data file directory (in which case you will want to be using a very recent version of the backend that allows you to define where the database files are located).
[Android Apps and Games] freworld:
Hello

I really appreciate you for working on this MicroG project when whole Frigging world is a**licking the closed source S**T of GAPPS. Kudos to you :good:

I also want to move away from GAPPS, as i anyway dont use them other that playstore & maps & its shocking to see the hell lot of permissions they have, to do anything with their closed source apps.

But frankly, some installation instructions are confusing. Tried on a clean CyanogenMod 13 (MM 6.0) Rom without gapps +Xposed .

Gives me a error "error initializing backend" on UnifiedNLP settings on enabling Local GSM location Service backend (even after giving all permisisons) ) some confusing things

So which all apks have to be installed? Only Networklocation.apk? is that right? Nowhere in above you have told people to install UnifiedNLP.apk above (just mentioned about Xposed users + unifiednlp ) . But people are talling about UnfiiedNLP only in whole thread. So confusing

So both UnfiiedNLP & networklocation.apk needs to be installed?

Any order of installation or any is fine?

After these 2, one each of location and address (local or online) backends has to be installed for sure?

Any advantage or problem or conflict if XposedUnifiedNlp is also installed alongwith, even when you are on NOGAPPS?

Thanks

---------- Post added at 03:50 AM ---------- Previous post was at 03:45 AM ----------

I second here that INSTRUCTIONS are confusing :(. People are talking UnfiedNlp & 1st post ONLY talks about networklocation.apk installation.

I offer myself to rewrite detailed Installation instructions , in multiple scenarios, (after i set this up myself) for ease for readers, who are already pissed off at limited NO-GAPPS options or alternatives (esp to Play services framework (gms core is the alternative right?)). Let me know, if you are fine with that

Thanks
[Android Apps and Games] MaR-V-iN:
[MENTION=670928]freworld[/MENTION]:

UnifiedNlp is the name of the project. The apks are all built from the same source code and thus all contain UnifiedNlp. After all, filenames are just filenames, you could use any other name and it will still work.

You should never have more than one apk (of NetworkLocation.apk, LegacyNetworkLocation.apk and UnifiedNlp.apk) installed. In most cases (including the one you described) you only need NetworkLocation.apk.

As a first step when setting up UnifiedNlp, open the Self-Check in setting and ensure that permissions are granted correctly. Basically all nodes except "backends set up" and "has known location" should be ticked. Then continue with backend configuration.

Although it already works pretty good, UnifiedNlp still needs better in-app instructions. It was planned to add a setup wizard, but this requires some work...
[Android Apps and Games] bilbonotry:
[MENTION=670928]freworld[/MENTION] : first thing first, this thread is only about unifiednlp, that is to say a replacement for Google localisation service. If you are interested in replacing all Google framework services, you should go to microg thread which includes also unifiednlp and is much simpler to set up according to me.
[Android Apps and Games] freworld:
1)Believe me you need to add that in instructions.that only 1 apk is needed

Anyhow i came to know unifiednlp is inbuilt in microg project, so i moved to it & this confusion was solved.

2) On a MM ROM (CyanaogenMod13), When using Unfiiednlp function only (without any microG products),

Networklocation.apk (package name com.google.android.gms; v1.4.0) didnt work. On selecting backend(Tried Location backends-GSM location offline & Mpzilla Location Online), it always gives some error like "Error initiating backend" while tapping (enabling them) in configuration & thus GPS locks didnt work.

But UnifiedNlp.apk(package name com.microg.nlp; v1.4.0) worked fine & gave no GPS issues at all.

(interestingly UnifiedlNlp V 1.6.6 also gave same "Error initiating backend" toasts

Thanks
[Android Apps and Games] Xspeed:
Google Maps

Hello

I've got a problem with UnifiedNlp (I use GmsCore, but since it's location-related, I am posting here).

When using Google Maps everything works fine, location is shown and updated correctly, but after entering navigation mode, location stops updating. The app tells me I am being in the same spot no matter how far I move. The GPS Toolbox app in background detects it correctly at the same time however.

What can I do?
[Android Apps and Games] sonickles9:
I am tempted to believe this issue is caused by GMaps rather than UnifiedNlp. Does the issue repeat itself when you use another app like OsmAnd or HERE Maps?

Enviado do meu GT-I9505
[Android Apps and Games] n76:
FWIW, OsmAnd and Maps.me both work perfectly for me with UnifiedNLP and/or microG gmsCore. OTOH, I mostly use the backends I wrote so if they didn't work for me I'd be figuring out why and fixing it. :)
[Android Apps and Games] bilbonotry:
Just to clarify, Unified NLP handles network location (with cell towers and Wi-Fi networks). It has nothing to do with GPS which apps handle directly (with system APIs I believe).
[Android Apps and Games] freworld:
Yes i understand that but location on GPS wont be shown, with backends not active in UnifiedNLP. Thats was what i was trying to say in issue 2 in last post
[Android Apps and Games] jerryshaw12:
Unable to get access location in LINE, or do i need another backend?
[Android Apps and Games] sonickles9:
WiFi backend depends on GPS data. It will only work properly once you havê a good WiFi AP database and this is collected with GPS.

GSMNetwork backend is outdated and reportedly causing battery drain. I'd recommend switching it for Mozilla or Apple one, since it will provide location based on network plus LocalGSMBackend (please note this will take a bit of space) alongside wifibackend to get location while offline.

Enviado do meu GT-S5310B
[Android Apps and Games] jerryshaw12:
Thank you for your explanation

The apple one seems buggy, sometimes it will change my location to 0,0
[Android Apps and Games] sonickles9:
Yeah, mine worked weird either. Right now I use only WiFi and Mozilla back ends.

Sent from my GT-S5310B
[Android Apps and Games] anonimou:
I've tried downgrading the LocalGSMNLP to 1.4.3, 1.4.4 and restoring to 1.4.5. No luck..

Upgraded to 0.2.3-6, still no luck =(

======

I was posting it on GMScore forum. However, this seems to be the right local (as pointed out there). I'm having the same problem as the colleague above.

If I disable and reenable the GSM Location Service, on Micro G Settings > Unified NLP > Configure location backends, it gets a new position and keep holding there (in OsmAnd, for example). If I disable and reenable, it gets a new position and gets stuck..
[Android Apps and Games] n76:
Just to be clear, which backend are you referring to, the Local-GSM-Backend or the LocalGSMLocationProvider?
[Android Apps and Games] anonimou:
I'm guessing Local-GSM-Backend, because it is still updated and the app i have was recently updated.

The package is org.fitchfamily.android.gsmlocation .
[Android Apps and Games] n76:
Can you please open an issue on this at https://github.com/n76/Local-GSM-Backend/issues and it would be very nice if you post a log created by the following when you are having the problem:

adb logcat | grep NlpLocationBackendFuser
[Android Apps and Games] anonimou:
n76, there we go!

there is the logcat and a video showing the bug.

the position is corrected after disabling and reenabling the GSM Location Backend!
[Android Apps and Games] n76:
I was hoping for a issue report on the backend’s project page but I guess this will do. :)

It appears that none of onServiceStateChanged(), onCellLocationChanged() or onCellInfoChanged() are being called by the OS when conditions change.

I could get you a debug version of the backend with debug logging turned on, but in the meantime could you verify that the location permission is enabled for the backend (it needs ACCESS_COARSE_LOCATION to allow it to listen for LISTEN_CELL_LOCATION which then triggers calls to onCellLocationChanged()).
[Android Apps and Games] anonimou:
Is it that? It's allowed.
[Android Apps and Games] n76:
Looks like you are set with the permission. And after I posted I realized the backend checks and will give you a dialog box to enable the permission if it doesn't have it (at least if you are running Marshmallow).

There are a number of things I noticed in the code that I'd like to change at least one of which will affect this issue. I probably won't be able to work on it for a day or two but look forward for a new version shortly. And if you'd like to test a preview, PM me and I'll share a link to my build with the changes.

P.S. If you have time, I could send you a copy of the strings file for you to translate. That way the next version should have your language included. Again, PM me if interested.
[Android Apps and Games] anonimou:
There we go. Attached is the strings.xml file translated (got from GitHub - Local-GSM-Backend/app/src/main/res/values/strings.xml).

This is Brazilian Portuguese. It may differ from Portugal Portuguese.

Whenever you got a test build, PM me so I could test. Thanks!
[Android Apps and Games] vanarok:
Please help . My definition of a location on wifi and mobile networks operate , but through the ability to do for a while , it just disappears , but the GPS works! I use all the engines that exist. All the checkboxes in the self-diagnosis . android- 4.4.2 ( unofficial )
[Android Apps and Games] n76:
Which backends have you been using?
[Android Apps and Games] Freefri:
LocationAvailability Null Pointer Exception

I've got the following exception running an app in my Nexus 4:

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean com.google.android.gms.location.LocationAvailability.isLocationAvailable()' on a null object reference

I'm runing Android 6, in CM13 without Google Aps but with microG Services Core and Framework Proxy packages installed from the Fdroid repo (microg.org / fdroid/repo)

I was wondering if I need to install some other package. And where to find it.

I had a look to the following file that could be the provider I'm looking for github.com /microg/android_external_GmsApi/blob/master/play-services-api/src/main/java/com/google/android/gms/location/LocationAvailability.java

Sorry if this is not the correct place to ask this. I would appreciate you can redirect me to correct place or give me a hint about what can I do to fix this exception.
[Sony Xperia T, TL, TX, V] QA Bot:
Q&A for [ROM][4.4.4][OFFICIAL & NIGHTLIES][TSUBASA] MoKee OpenSource Project

Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.

Before posting, please use the forum search and read through the discussion thread for [ROM][4.4.4][OFFICIAL & NIGHTLIES][TSUBASA] MoKee OpenSource Project. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.

Thanks for understanding and for helping to keep XDA neat and tidy! :)
[Sony Xperia T, TL, TX, V] That_Thing:
Does this ROM require an unlocked bootloader?

I tried installing this to my Xperia TL with no luck.
[Sony Xperia T, TL, TX, V] finac94:
Yes it does
[Sony Xperia T, TL, TX, V] maciutek028:
I have Status 7 error. Any Ideas?
[Sony Xperia T, TL, TX, V] harrymason37:
Can't detect sdcard when in gallery and Walkman
[Sony Xperia T, TL, TX, V] ghecha02:
Hi to all, i'm new here in xda and modding my device, I just want to ask if i have to unlock bootloader for this rom? Some say there are some custom rom that don't need to unlock bootloader.

I want this rom to install my first custom rom to try in my device. :)
[Sony Xperia T, TL, TX, V] Antiga Prime:
You need an unlocked bootloader for all Custom Roms.
[Sony Xperia T, TL, TX, V] ghecha02:
I have already unlocked bootloader, and install Philz cwm recovery, now my problem is when I'm installing the rom. I failed twice with an error saying something like "This package is for lt25i, this device is mint". I tried MK44.4-tsubasa-150131-HISTORY.zip and MK50.2-tsubasa-150423-RELEASE.zip both have same error, hope you can help me with this problem. Thank you!
[Sony Xperia T, TL, TX, V] harrymason37:
Use the provided boot.img in the rom, other custom recovery won't work
[Sony Xperia T, TL, TX, V] ghecha02:
Good day Sir, thank you for your response.

I'm sorry sir but I'm not familiar with boot.img. How will I do it sir?

Edit: I have research and found out that I can find the boot.img inside the rom zip file, do I need to flash this img file first before flashing the whole zip file? can I flash img via cwm recovery? or some apps? or via fastboot? sorry for the questions sir, hehe

Thanks!
[Sony Xperia T, TL, TX, V] harrymason37:
Make sure you already unlocked your bootloader, extract the boot.img , put it in firmware folder in flashtool, and flash it, or you can extract the boot.img in your SD card, install recovery tool app and flash it using this app (select flash kernel and choose boot.img)
[Sony Xperia T, TL, TX, V] jeromemo:
Hello all,

Anyone who has the last HISTORY build for this? The download on their site is empty.