yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] evildog1:
should i install all 3 apks NetworkLocation.apk - LegacyNetworkLocation.apk - UnifiedNlp.apk or should i pick one of them?
[Android Apps and Games] tofu:
Worked fine on Slim6 (and other Android 6 roms), however cannot make it work on Slim7. Android Nougat is not supported?

I try to use localgsmbackend with opencellid gsm tower database as usually. I have a system without GAPPS. Self-check section has everything else checked excepts "registered in the system". Reboots don't help. And yes, I did reboot before installing backends too. All the permissions are fine.

Any ideas where's the problem? My phone is Oneplus one. I'm using latest Unified for no-gapps devices from F-Droid.
[Android Apps and Games] n76:
There is a change in Nougat that requires location providers to be in /system.

If you go to the MicroG github repository you can find a patch to restore the behavior of Marshmallow and earlier. I think there is an effort to get that patch into Omnirom. You may want to get the Slim7 RoOM maintainers to consider the patch too.
[Android Apps and Games] barturblits:
Had the same problem, already made a request to darkobass about the patch.
[Android Apps and Games] tofu:
Could you link me the correct patch? Thank you
[Android Apps and Games] n76:
https://github.com/microg/android_packages_apps_UnifiedNlp/tree/master/patches
[Android Apps and Games] tofu:
[MENTION=6204913]n76[/MENTION], and anyone interested: As a (hopefully temporary) workaround, I managed to get it to work by installing it as /system app by using "system app mover" from F-Droid. With that you can move app from and into /system.
[Android Apps and Games] tofu:
I got it working with Slim7, but no matter what I try it doesn't work with Nitrogen OS 7.1. Tried running it both from /system/app and /system/priv-app. Any easy solution in the near future? I really hope this project continues to thrive.

EDIT: the thing started suddenly just working. I've got it at system/app and it still claimed "not registered", but it gives proper location. Nice!
[Android Apps and Games] qu4gmire:
On the F-Droid page for UnifiedNlp w/ Gapps (https://f-droid.org/repository/browse/?fdfilter=microg&fdid=org.microg.nlp), it says one can use either Xposed or a "custom ROM" with org.microg.nlp in the list of network location services. How would I accomplish the latter? Is it similar to patching a ROM using something like Needle (which I've never done) or simply replacing a file within the system partition? I'd previously used all of microG without Google, but recent updates that cause Xposed to bootloop on CM13 and the "need" for some Google services have prompted me to reflash using Gapps... but I'd rather not waste all my battery using Google's location service. Thanks!
[Android Apps and Games] SenK9:
The bootloop with Xposed and CM13 has been fixed, see latest Xposed version. I am running this combo atm.
[Android Apps and Games] mandayugana:
Currently I'm using Samsung 4.1.2 firmware. I have successfully removed Google and Samsung apps from system. But I have an issue that UnifiedNlp is not registered in system. It is finally registered after adding the green line into Manifest.xml.

<service android:exported="true" android:name="org.microg.nlp.location.LocationServiceV1" android:permission="android.permission.ACCESS_COARSE_LOCATION">
<intent-filter>
[COLOR="Green"]<action android:name="com.android.location.service.NetworkLocationProvider"/>[/COLOR]
<action android:name="com.google.android.location.NetworkLocationProvider"/>
</intent-filter>
<meta-data android:name="serviceVersion" android:value="1"/>
<meta-data android:name="version" android:value="1"/>
</service>
[Android Apps and Games] shnapsx:
Hello everyone.

I have only 1 question: can anyone check that Wikiroutes is working properly? Does it shows your location, finds you on map, etc.:)

Link to wikiroutes main site. It is simple app that show all transport in your country. All buses, trains, underground, etc.

This is very important thing to me on my phone and i can't exchange google services if it is not working.
[Android Apps and Games] Oswald Boelcke:
Just installed Wikeroutes on my GApps-free/microG device simply to test as requested.

Unfortunatly, I wasn't able to play with the application because it's completely and only in Russian language; however, and I believe that was the reason for testing, Wikiroutes immediately positively recognised my current location.

If I was of any help don't post a thanks but hit the thank button in the bottom right corner.
[Android Apps and Games] shnapsx:
Can you show screenshot of app? Does it have dot with your location on map(like in similar navigators apps)?

And does map work at all?
[Android Apps and Games] Oswald Boelcke:
No screenshots available. I uninstalled this app immediately after testing. I didn't play with it at all as I already said because it's only available in Russian.

The app showed my current location correctly and in the middle of the screen but no dot, airplane or whatever icon.

I won't install any more Russian app; maybe you'll find someone talking Russian.
[Android Apps and Games] ale5000:
It is the same thing, Needle actually take a file from the system partition, patch it and then put it back.

Anyway Needle have some problems with Android 7 but Tingle and Haystack should work perfectly also on latest Android.
[Android Apps and Games] Ultramanoid:
Tried that application but it wouldn't work for me with CM 14.1. Putting the APK myself in /system/app with correct permissions via root file manager did the trick though.

It still says that it is not registered by the system, but it works.

Edit : Putting the apk with TWRP recovery instead of a file manager, it actually registers with the system. Either way, location works fine doing this.
[Android Apps and Games] justmix4:
You should go back to the Gapps. I did it and location works well.

Sent from Tapatalk N4
[Android Apps and Games] Ultramanoid:
I don't understand the comment. I don't use Google applications nor do I want them in any device.

Location works perfectly well with UnifiedNlp doing what I did, which I posted to help anyone else with any similar issues trying to make it work in Android 7.

Edit : The whole point of this thread is using this alternative location service, not Google Services.
[Android Apps and Games] ale5000:
It should be fixed in UnifiedNlp 1.6.8 or later.
[Android Apps and Games] M.A.K:
Hi,

Is there a reason why this couldn't be made to co-exist with gapps?

I put the unifiednpl.apk in priv-apps and it shows in the location manager. I can set the backends up. But there is no system support or registration shown in the self checker. I should say I have google play services location permissions disabled.

I can get NetworkLocation.apk working like this but it stops the google play services.
[Android Apps and Games] ale5000:
[MENTION=4514523]M.A.K[/MENTION]: You just need the GAPPS version here and the XposedUnifiedNlp module here.
[Android Apps and Games] M.A.K:
I'm using the gapps version and xposed doesn't work on my phone running LOS14.

But that's the point. Why is it necessary to use xposed to install a third party network location provider? I understand that signature spoofing is needed if you want the app to pretend it's a google service. But why pretend this? Doesn't android allow for third party NLPs?
[Android Apps and Games] ale5000:
[MENTION=4514523]M.A.K[/MENTION]: Because to coexist with Google Play Services it does NOT have to pretend it's a google service.

Android only allow a fixed list of network location providers, nothing more.

The No GApps version declare as name "com.google.android.gms" (the name used by GApps) so Android recognize it.

The GApps version declare as name "org.microg.nlp" so it isn't recognized if the ROM maintainers do not add it.

For example, see the list of location providers of OmniROM:

https://github.com/omnirom/android_...rameworks/base/core/res/res/values/config.xml
[Android Apps and Games] M.A.K:
Ahh... interesting. So if 'org.microg.nlp' was included in this config for say, Lineage OS or OmniROM, it'd work with no messing about? Just a simple install and setup?

It seems to me from searching that unifiednlp is the main third party nlp that people talk about so why wouldn't every independent ROM include it? Seems strange.
[Android Apps and Games] Ultramanoid:
It was however mentioned back in the thread that from Android 7 onwards, applications that provide location services must be installed as a system application, not just as a normal one.
[Android Apps and Games] M.A.K:
Yeah, that is quite simple though. Especially considering you'd have already installed the rom.
[Android Apps and Games] ale5000:
[MENTION=4514523]M.A.K[/MENTION]: I have never tried but yes, it should work.

On Android 7+ it must be a system app as [MENTION=4004386]Ultramanoid[/MENTION] said.

About including it by default, I think it depend by opinions, for example CyanogenMod doesn't include also signature spoofing by default.

I hope things will change now that is "Lineage OS".
[Android Apps and Games] M.A.K:
I guess someone could write a patch for this.

I'm currently looking through the 'tingle' files to see if I can hack something together. I could be some time though... I'm not used to all this .dex and .smali stuff. ;)
[Android Apps and Games] ale5000:
I had the same idea but currently I'm busy with other things.
[Android Apps and Games] M.A.K:
OK, I added 'org.microg.nlp' to the appropriate section of 'framework-res.apk/res/values/arrays.xml':

<string-array name="config_locationProviderPackageNames">
<item>com.google.android.gms</item>
<item>com.android.location.fused</item>
<item>org.microg.nlp</item>

...and now the self checker says the system supports the location provider... but the system didn't bind the service.

Anything else I can try?
[Android Apps and Games] ale5000:
[MENTION=4514523]M.A.K[/MENTION]: Move UnifiedNlp to /system/priv-app
[Android Apps and Games] Ultramanoid:
I have it in /system/app; checks, works perfectly.
[Android Apps and Games] ale5000:
Only if you don't have Android 7 or if you have patched the ROM
[Android Apps and Games] M.A.K:
Yeah, I already have it there.

I was wandering if there's any thing I need to do with permissions or the like? Maybe using the package manager?
[Android Apps and Games] adikri:
Open your location setting and turn it up to "high accuracy" and then restart your phone...

While keep installing unifiednlp + backend

(configure backend and activate them via unifiednlp interface)
[Android Apps and Games] M.A.K:
Yeah, that's all done. All the basic setup is fine but there must be something in the system stopping it from registering/binding.
[Android Apps and Games] Ultramanoid:
Well, I'm on a Lineage-based 7.1.1.
[Android Apps and Games] M.A.K:
It seems to work (or not) just the same in system/app or system/priv-app just not in data/app.

Ultramanoid: Are you using the gapps or no gapps version? The no gapps version works fine for me but that's not what I'm after.
[Android Apps and Games] Ultramanoid:
That was actually what I wanted to say with that post; priv-app or app is the same. It's whether it's in system or not.

Right, it's the no GApps version that I am using.
[Android Apps and Games] ale5000:
Just an idea, but have you tried to put this before the other two items?

<item>org.microg.nlp</item>
[Android Apps and Games] M.A.K:
lol: That really is clutching at straws now. :) But hey, you just never know. I may as well give a try anyway.

As it happens, I've just installed it in data/app again but this time it got to the same point as the system installs??? I think this is the first time I've had it as a user app since hacking the framework. It may just be due to some residual data from previous installs. I'll restore the rom in a bit and start from scratch.

I've read that to install a location provider, it has to have the same signature as your rom or be installed as a system app of course. I'm not sure why I mention that as it hasn't done me much good so far.
[Android Apps and Games] ale5000:
If you want it as user app you may as well use this patch if you re-compile the ROM.
[Android Apps and Games] ale5000:
[MENTION=4514523]M.A.K[/MENTION]: Try to uninstall all backends and reinstall them, maybe you have installed the backends before "UnifiedNlp (GAPPS)" and permissions aren't granted.
[Android Apps and Games] M.A.K:
I tried that with just the apple backend before the logcat. Didn't seem to do much.

I'll try it on a fresh rom in a minute anyway. See what that does.
[Android Apps and Games] M.A.K:
OK, I wiped everything

installed LOS14.1

replaced framework-res.apk

booted

did a few settings - root, adb, etc.

copied unifiednlp.apk to priv-app

rebooted

installed apple backend

...and it worked.

installed gapps

...and it broke.

Yes, installing gapps took it back to the previous state of 'the system did not bind the unifiednlp service'.

I tried swapping the order of the location providers in framework-res.apk... no joy there I'm afraid. :)

Disabling the google play services gets it working again (why wasn't that the first thing I tried), but the whole point of this is to get the two working together.
[Android Apps and Games] M.A.K:
A bit more on this:

I used 3c toolbox to disable all the google location services and this gets unifiednlp working but google play services keeps stopping. So that's not ideal.

I disabled the google location provider in the framework:

<string-array name="config_locationProviderPackageNames">
<item>org.microg.nlp</item>
<!--item>com.google.android.gms</item-->
<item>com.android.location.fused</item>

This seems to be working. No services force closing. But remember, I've still got all the location services disabled with 3c toolbox. So I re-enabled all of those and, well... it works for a minute. I open up google maps and get my location. But within a minute or two, the blue dot goes grey. The unifiednlp self check is all ticks but still no known location.

I think I'll have to blame this on the android location manager. IIRC, in android 2.x you'd open the location settings, enable network location and then you'd enable/disable the google network location service separately. The way it is now seems like a step backwards - more like apple than android.

I don't know how 3c toolbox is disabling these services but it seems to be necessary. Is there anyway I can achieve this in the terminal or config files?
[Android Apps and Games] ale5000:
It is strange that isn't working correctly, we should wait a reply from [MENTION=3999488]MaR-V-iN[/MENTION]
[Android Apps and Games] M.A.K:
Well, I'm kind of resigned to having to use 3c toolbox (or similar) to get this working. And in fairness, it is a pretty useful app anyway.

I updated maps from the playstore yesterday and haven't had any force closures since. So that's good.

So just to sum up how I've got this working now:

I have the first framework hack adding 'org.microg.nlp' and leaving google gms enabled.

I have unifiednlp.apk (gapps version :) ) in priv-app.

Disable the following 2 services to stop google network location and allow unifiednlp to bind:

com.google.android.location.network.NetworkLocationService
com.google.android.location.internal.GoogleLocationManagerService

Re-enable these services to switch back to googles location service.

I thought I'd give this a little context so I've had the google location service on all day at work today. Checking the partial wakelocks in BBS I found the top 2 offenders were:

NlpCollectorWakeLock - 6%
NlpWakeLock - 1%

Both google services of course. Everything else in the list was at 0% where it usually is.

I also found 'com.google.android.gms' had over 1000 wakeups in alarms. That's 90/h. Next to that was 'Android' at 40/h.
[Android Apps and Games] M.A.K:
Today I had unifiednlp on all day for a comparison. I only disabled the 2 services above just to get it working for a more equal comparison.

'NlpCollectorWakeLock' was still top of the list of partial wakelocks at 3%.

'NlpWakeLock' was down the list a bit with 0%.

'com.google.android.gms' had 28 wakeups per hour.

'Android' had 14 wakeups per hour.

Bearing in mind, this is only from swapping the basic network location service. Google still has loads of other location services running.
[Android Apps and Games] orangek3nny:
Use this patch if can't recompile your ROM and want to have UnifiedNlp installed as a user-app https://github.com/Lanchon/haystack/issues/3#issuecomment-275887254.
[Android Apps and Games] JanJabko:
Installed this together with Localgsmnlpbackend and it works fine. Only weirdness is that the app shows error in self-check for "has known location" and "provides location update".

Nonetheless it works in Here maps.

I am on latest Resurrection Remix Nougat. Just in case a noob like me tries this. You can't copy the apk to /system/priv-app with the file manager in root mode, it then doesn't install. Pushing it there with adb as in installation procedure is required.
[Android Apps and Games] M.A.K:
Has anybody tried making a google backend for this?
[Android Apps and Games] Ultramanoid:
This is an alternative to Google's location service. Yet you've tried to make it work with Play Services installed and now ask about using a Google backend.

I've been following your process in the thread but I really can't understand the rationale. Why not just use Google as it comes and leave this alternative software be ? Most if not all users of this software do not want Google software, it's the whole purpose and reasoning behind this project.
[Android Apps and Games] ale5000:
[MENTION=4004386]Ultramanoid[/MENTION]

My opinion:

Beside the initial purpose behind this project, it achieve much more than its initial purpose.

One may also choose to use Google services but not Google apps (microG is much more configurable, lighter and more stable).
[Android Apps and Games] M.A.K:
Of course I realise that many microg users are trying to be gapps-free. And I totally see their point. But that doesn't mean I have to follow suit.

I don't really have a problem with google in general. I don't like many of their apps so I don't use many of their apps. But network location is very handy and I don't like the way it seems to be completely owned and abused by google on android. With unifiednlp, I see an opportunity to replace the offending software with an app that doesn't hijack my phone.

As for the backend idea, I couldn't get a usable location from most of the backends I found. Mozilla was close but still drifted around a 100yd radius. Apple was solid but google is much, much tighter. So I figured, why not use the google service but without their software hijacking your phone. I obviously thought I wouldn't be the first one to think of this.
[Android Apps and Games] ROUGE13:
Hi,

I just discover Micro G I found this awesome :)

I start a new phone installation CM13 + xposed + xprivacy without any gapps,

installed micro G + blankstore + fakegapps

work great for 98% apps.

but i still have problem for two:

- first one doesn't find webview (it says "missing system webview").

i suppose i shouldn't install google webview, what are the other solutions?

- second one download good in blankstore but doesn't install ("application not installed")

Any idea?

Thanks

(sorry for my English)
[Android Apps and Games] M.A.K:
You may find more answers in the microg thread:

https://xdaforums.com/android/apps-games/app-microg-gmscore-floss-play-services-t3217616
[Android Apps and Games] mmars:
UnifiedNlp blocking loading the apps after reboot

hello all,

today before using osmand I activated gps and allowed it (osmand) to access the gps data.

UnifiedNlp asked for the same permission as well but the window is not responsive! I tap on accept or reject with no reaction at all. The phone gets stuck in this situation, reboot does not help neither.

Phone is totaly not usable, apps can not be loaded because of the window of UnifiedNlp blocking further processing directly after reboot. Any ideas how i can solve this issue? (without having to wipe everything, if it's possible)

Using: cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J0-bullhead (Nexus5X)

Thank you very much.

mar

Update: i got through with the help of the safe mode and deleted the app. Phone is working again.
[Android Apps and Games] stylemessiah:
Hi

Hoping someone has a clue about this one

Converted to MicroG a couple of days back, just one thing i cant understand is with one app, TripView, my home public tranport app which has a map fucntion showing stops and handily lets you know where you are so you can press the buzzer to get off the bus at your upcoming stop. Anyways, this of course worked fine when using GApps.

I have Unified NLP (No GApps) installed, along with latest MicroG preview build (also tried on the stable from which upgraded)

along with the following backends:

AppleWifi

LocalGSM (with downloaded database)

WifiLocation

Mozilla

OpenBMap

Nominatim

All MicroG and UnifiedNLP checkboxes in the self check are ticked

OSM and Google Maps work fine and locate me quicker than ive ever seen with GApps

And Google Maps web version works fine too

Just this one app, TripView doesnt even look to be requesting location lookup...theres no icon in status, and no tell tale google maps icons overlays on the map...and yes it has location permissions...and yes, ive tried toggling it on and off....

Its a very useful thing to have that map working..

Anyone have an idea?

Cheers in advance

p.s. Im using JDCTeam Optimised LineageOS 14.1.1 (patched spoofing myself on window by doing this: https://xdaforums.com/showpost.php?p=71553308&postcount=3707) in case anyone else is stuck with Windows wants a guide on how to HayStack patch for sig spoofing)
[Android Apps and Games] rnd83:
You could try to reinstall it, without restoring app data (if using titanium backup).

Or it might need maps API v1, which you can find on the MicroG GitHub page.
[Android Apps and Games] stylemessiah:
Cheers, but i installed the app clean...i never restore from backups, from Ti or anything else...theres no reason for it for that app as it syncs its data to/from DropBox

I also had already flashed maps api v1 flashable from TWRP when i flashed Shadow53's MicroG zip, so thats not it either

Ive also found since another app that wont work under MicroG, not location related, and im hovering on giving it up to go back to GApps :)
[Android Apps and Games] Ultramanoid:
Have you tried with the Unified location apk installed as a system application ?
[Android Apps and Games] stylemessiah:
Yup, no dice.

I will probably un-MicroG my phone a bit later, the 2 apps that dont work under it are ones i use a lot, sadly. Otherwise i like what it does. It was also fun to get my contacts and calendar away from google and have a play, but i have to use stuff full time, so back to GApps im afraid.
[Android Apps and Games] Ultramanoid:
I don't need or use MicroG, only the location apk. When removing all traces of Google, it's certainly hard to find clean applications that do not rely on it and can work with 'pure' Android. I know I'm using uglier, slower alternatives, and even rely heavily on command line binaries without UI to keep it clean and still have the functionality I require.

Consider contacting the developers, sometimes they do listen and modify their applications. There are millions of Android users that do not use or have access to Google's services, after all.
[Android Apps and Games] stylemessiah:
Lol, life would be so much easier if there was Xposed for Nougat, i could cope and remove a lot fo the things that annoy me like battery drain from google services with that and Amplify alone

Ill keep subscribed to MicroG and maybe try again down the road.