microg / UnifiedNlp

Alternative network location provider for Android, with plugin interface to easily integrate third-party location providers.
947 stars 207 forks source link

spoof "high accuracy" for whining apps #39

Open TameOfGroans opened 9 years ago

TameOfGroans commented 9 years ago

After one has built a High Precision GNSS local database of mac addresses and mobile towers subsequent selection of "low power" mode should not needlessly inflict notifications urging [or outright requiring] "high power" mode. Glympse, a social gps app, is tedious in this regard.

Especially for those without g.apps provide an option to spoof power mode reported to location apps /while/ retaining an NLP mode not querying GNSS.

Can alternate NLP offer more than 3 power modes?

Vdragon commented 9 years ago

+1 for this too as Ingress still can't operate normally even when network location base on Google network location provider still could

mar-v-in commented 9 years ago

Apps complaining about low accuracy when only NLP and no GPS is active do this for at least one of the following reasons:

  1. The location provider is not "gps" - there is no way to come around this issue
  2. The app wants to use play services location API instead of system location API - see this comment and µg GmsCore for a possible solution
  3. The app wants high accuracy and checks the accuracy value accordingly (eg. to be less than 20 meters) - this could be "fixed" by faking a higher accuracy, but shouldn't as this value is intended to have a real meaning. Google's NLP does never use a accuracy better than 42 meters and so does UnifiedNLP

Finally: on my test device running µg GmsCore, I was able to use Ingress without gps being enabled, so either 2 or 3 (or both) apply for it.

n76 commented 9 years ago

Is there a place where a pre-built µg GmsCore can be downloaded? I don't see it on F-Droid nor at http://forum.xda-developers.com/showthread.php?t=1715375

mar-v-in commented 9 years ago

µg GmsCore is unfortunately not fully stable yet and might cause problems like high battery drain or data usage. I won't call it release, not even "beta" grade software yet, that's why I did not publish a release binary yet. It should also be noted that GmsCore does not work with any default or widely-known custom rom other than OmniROM 4.4 right now, as a patch to the system is required.

If you build your ROM yourself or for any reason are capable of using a ROM that integrates the patch, @SWW13 provides nightly builds here. Installation can be a little tricky as well and requires the usage of magic dialer codes right now -- as mentioned: it's far away from release grade software...

n76 commented 9 years ago

Thanks! I guess I've been living without that functionality for a while and I can live without it for a while longer. :)

And thank you so very much for this project and all the work you have done on it!

Catfriend1 commented 8 years ago

for me , gsf proxy and gms from microg runs out of the box under cm 12.1 a 5.1.1 on device i9100. used the latest build from sww13 debug apks.

Catfriend1 commented 8 years ago

another issue: playing Ingress with microg gms will get you blocked by niantic after three days of use. you can See this when the Mission tab shows no missions avail error and glyphing is forced.

mar-v-in commented 8 years ago

playing Ingress with microg gms will get you blocked by niantic after three days

I can not reproduce this behavior. Make sure you have a proper location plugin active and gmscore, gsfproxy and a play store client (original play store, blankstore or fake store) installed. Ingress is on the list of apps regularly tested for compatibility with microG.

Catfriend1 commented 8 years ago

thanks for your answer. in 01/2015 following config blocked my Ingress account:

i contacted Ingress support, was not unblocked. three tries. two months later i got back to gapps pico package. wrote Ingress support and got unblocked.

now, last weekend switched to gmscore, gsf microg Version sww13 with original playstore 6.0.5. everything fine until now, Paps and licenses ok. no wake problems, no system crash. Ingress block came immediately. i am only partially Blocked, glyphing is enforced on some Portals. i dont have cheating apps. i suspect niantic might have a signature detection. Plugins are installed and the same.

mar-v-in commented 8 years ago

Do you have cloud messaging enabled in microG settings?

Catfriend1 commented 8 years ago

No, GCM is currently disabled in microG settings. I did only enable CheckIn Service. Could that be the reason of the problems?

mar-v-in commented 8 years ago

As Ingress makes use of GCM this might be the problem, yes.

Catfriend1 commented 8 years ago

is it normal that Ingress tells on every startup "Ingress needs Google play services" even if microg is installed and location already Working properly? activating gcm did not solve the Problem. i still cant See missions in ingress.

EDIT: Now I tried what is in this tutorial - http://o9i.de/2015/10/23/howto-gmscore.html I activated Android Patch - Always tell signature is correct on my system. Reinstalled Ingress because of GCM issue mentioned in tutorial.

This App ( https://play.google.com/store/apps/details?id=de.mdiener.unwetter.gm ) also uses GCM and GPlay services. I Cant get it to work it complains about GPlay Services missing but has access to location. I suspect my MicroG GMS is somehow detected as "fake" by Ingress and SevereWeather App? What else can i do for solving the issue?