-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Signature conflicts with pre-installed GApps #43
Comments
Just out of curiosity: what happens if you try LegacyNetworkLocation.apk? |
@wish7code I don't even need to try that. Package name of that app is But pointing to that: what might work is removing the Google Network Location app from the device, and replacing it by I guess a really safe approach would be having "mock locations" as option to switch to (as requested with #27). So if the "native method" cannot be used (as in my case), I'd at least have an alternative – though it might not work with all apps this way (see there). As @mar-v-in pointed out over there:
Looks like this here is one of the places where it would be "interesting" 😇 |
Disclaimer: Let me clarify, that I don't use the GAPPS setup, so I can't examine the actual behaviour further. I alway thought that XPosed Framework is able to hook up existing system calls, thus redirecting location requests from com.google.android.location to the respective UnifiedNLP counterpart. Using this logic I thought there would actually be no need to replace the GAPPS apks but both could be installed side-by-side under their respective (different) namespaces. I might be completely wrong with my assumptions, so it would be best if somebody from the developer team could shed some light.. |
That were my thoughts as well. But all the corresponding Xposed module lets me do is run a check, where it fails. As far as I knew, shouldn't XposedUnifiedNlp take care for exactly that part of integration I'm failing here? So should I rather open an issue with them in this case? There is already a related issue open (I've hooked into that). According to the discussion there, I did everything allright. Quoting @Rawi01:
The installation instructions from the modules page on xposed repo have been followed, of course. PS: My apologies for the mess, reporting this issue with all involved projects (UnifiedNlp front-end here, the back-ends (hi @wish7code and @n76 ), and the xposed module (Rawi)), but for an end-user it's quite tricky to figure where it really belongs to. Today, I'm pretty sure the backends are not responsible – but it's not yet clear to me whether it's UnifiedNlp or the Xposed module not working correctly on my device. |
I too am running without gapps so don't have any direct experience, but I see that on F-Droid there is a download for phones with gapps. I suspect that it uses a something other than com.google.android.location and so it can be loaded. I assume that once loaded, xposed can be used to wire up the calls. Has that been tried? The write up mentions non-stock firmware so perhaps this won't work on a stock setup but it seems like there should be little difference between stock and another ROM with gapps. |
@n76 Thanks! That's what I've tried first (if we're both referring to the UnifiedNlp package available from there). Error messages fluctuated with that: either services not working, or no UnifiedNlp source. On suggestion of Rawi (see above) I've switched to the |
Step-by-step install instruction for both GAPP and GAPPS-free devices is definitely on the TODO list.. Could you upload a complete logcat in the meantime, so we can trace down, which of the components isn't working? You might also try to activate debug logging in the openbmap UnifiedNLP settings, so logcats become more verbose. |
@wish7code I of course can provide a full logcat, but I'd prefer not to place that "in public space". If you could name a more closed place to deposit it (mail/upload? Find my contact info via my profile page here), I'm happily complying. The core issue seems to be this one:
As you can see: µg tries to offer a GeocodeProvider (though I've no backend set up for that), but is ignored due to signature mismatch. Strange thing is the log doesn't show any hint on its NetworkLocationProvider: 2 backends configured here, which are bound:
Taking a closer look, LocationService was started for µg – as shortly after the last msg from above comes a stack trace starting with
(second stack is basically the same as the first) For at least a minute after that (until my logcat stops), no more mention of |
@timofonic are you referring to this specific issue, probably only affecting an unsupported setup? On devices without GAPPS, installation is already straight-forward and on devices with GAPPS and Android 4.3+ its possible using a third-party project. |
Unfortunately I think @timofonic is reffering to the GAPPS case.. Have a look at Rawi01/XposedUnifiedNlp#2 too (Warning bit lenghty): nobody ever confirmed a running GAPPS installation over there.. The problem seems unrelated to the actual location provider, but somehow framework specific.. Without GAPPS everythings works fine.. |
I still cannot get UnifiedNlp working on my LG P880 (stock Android 4.1.2 with GApps pre-installed of course). I've downloaded the
UnifiedNlp.apk
from here, and installed it on the device withadb install
(see also: #34 ). Can open the app, configured two backends so far (the local GSM and openBmap backend). Still, the Xposed module claims it gets a location, but that it doesn't look like a UnifiedNlp one. Checking logcat revealed:So what's wrong here, and how to fix? Note that uninstalling GApps or using a different ROM is no option for me currently.
Edit: I've tried working around that making UnifiedNlp a system app, but the very same error remains. So whatever it is, it seems to have protectioLevel "signature" (not "signatureOrSystem"), so this work-around doesn't work around.
The text was updated successfully, but these errors were encountered: