Thanks a lot @jochensp ! I tried your patches today, it works great!
Someone (moderators?) please link into this topic from the “Compiling” thread, or somewhere else that would make it easier to find? More people need to be able to see that, and if it’s buried near the bottom it will lose visibility!
Could very well be. However, I think it works fine with the stock ROM, it just doesn’t work with self-compiled ones. In any case, after recompiling an image with the patches linked here, I was able to get coarse location data from two different weather applications!
I’m still trying to get it to work on the stock FP2 OS. After installing Xposed and the XposedGmsCoreUnifiedNlp module on the stock FP2 OS, as well as installing NetworkLocation.apk in /system/priv-app, the Unified NLP self-checks seemed to succeed. Except that no location updates were received, even though there were backends that should have location data.
@root: I also wonder how to do it, though you could always just manually edit the files.
@All@jochensp: I’m new to this and don’t know how UnifiedNlp works. Until now, my impression was that it works without any “proprietary Google stuff”. However, @jochensp’s patch added com.google.android.gms to the config_locationProviderPackageNames resource array in the source code, as suggested by mar-v-in. Does this mean that UnifiedNlp uses the Google Mobile Services (see also the gms package description) in some way? In any case, what does this patch actually do?
I assume you need an account for the review tool they use to just be able to pull it. But downloading it manually will work as well, I guess. Too bad it just a “undocumented” website and there is no howto on how to use it without an account.
Currently I don’t get any location information in any app on my own built FP2 OS. Will Unified NLP solve that problem? Or will it only make the network based location work?
Do I understand your how-to correctly, that the OS has to be built again after applying your patches?
Is there a way to just modify my FP2 OS? I would like a solution where I wouldn’t have to reinstall and configure all apps etc…
This will only help you with network location. You need to recompile the OS (or at least framework/base, haven’t tried), but you don’t need to reinstall everything afterwards (just don’t flash with -w ).
I haven’t full understand the procedure. It would be nice if someone could clearify some things for me.
If I correctly understand it one has to apply the patches mentioned above and the build the FPOSOS version. Right? But which of the three F-Droid packages
do I have to install? I must have something wrong because so far it didn’t work with either of them. I tested it by trying to show my location in OsmAnd~.