[MOD][Xposed] Disable Google Location consent

Search This thread

Gerton

Senior Member
Nov 16, 2009
731
120
Love this. Thanks a ton for making it. I like the location-based info from Google Now, but leaving this on all the time isn't necessary (like when I'm sleeping or at home.) So, I have Tasker granting location service access only when the screen is on. This way it can quickly grab my location then go the f**k back to sleep when I turn off the display.

Brilliant app!

Can u share ure tasker profile? Which task did u use and do u use a exit task on screen off?

Sent from my HTC One using XDA Premium 4 mobile app
 

natezire71

Senior Member
Mar 24, 2010
1,489
339
Hello,I think i have found why the module don't work anymore whit android 4.4.The change is in the xposed framework that have changed the afterhookedmethod() with getextra() -- (And this module use exactly this method).I'm not a developer so i ask for someone to make this change.Here is the documentation for new method:

https:// github. com/rovo89/XposedBridge/commit/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054#diff-0

https:// github. com/rovo89/XposedBridge/blob/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054/src/de/robv/android/xposed/callbacks/XCallback.java

And here the source code: https:// github. com/MohammadAG/Xposed-Disable-Location-Consent
Many thanks to those who will listen to me.

So, will this be fixed?
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
Hello,I think i have found why the module don't work anymore whit android 4.4.The change is in the xposed framework that have changed the afterhookedmethod() with getextra() -- (And this module use exactly this method).I'm not a developer so i ask for someone to make this change.Here is the documentation for new method:

https:// github. com/rovo89/XposedBridge/commit/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054#diff-0

https:// github. com/rovo89/XposedBridge/blob/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054/src/de/robv/android/xposed/callbacks/XCallback.java

And here the source code: https:// github. com/MohammadAG/Xposed-Disable-Location-Consent
Many thanks to those who will listen to me.

Sorry, but this isn't it. That change is related to extra fields set by the developer of a module, not fields from a hooked class.

This doesn't work anymore as the whole class was moved to Google Play Services, which is obfuscated.

I already have a full workaround ready, but it keeps resetting the setting after switching to network mode.

In any case, I guess I'll eventually figure it out...

Sent from my Nexus 7 using Tapatalk 4
 

beeguy123

Member
Dec 8, 2012
5
1
I would love if you publish it, even with the reset to network mode !

Sent from my Nexus 4 using Tapatalk
 

stagius24

Senior Member
Sep 4, 2013
58
3
Sorry, but this isn't it. That change is related to extra fields set by the developer of a module, not fields from a hooked class.

This doesn't work anymore as the whole class was moved to Google Play Services, which is obfuscated.

I already have a full workaround ready, but it keeps resetting the setting after switching to network mode.

In any case, I guess I'll eventually figure it out...

Sent from my Nexus 7 using Tapatalk 4

I am not a dev. I played around with permission on google service framework and found out that if I disable settings.googlesettingsprovider, the location consent form no longer appear every time I change the location setting.

It works great on app that use wifi/cell network. However, on Maps, it keep telling me to turn on GPS when I already did. Thru Maps is the only app that use GPS and is not working with this method.
 

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
30
Jerusalem
mohammadag.xceleo.org
I am not a dev. I played around with permission on google service framework and found out that if I disable settings.googlesettingsprovider, the location consent form no longer appear every time I change the location setting.

It works great on app that use wifi/cell network. However, on Maps, it keep telling me to turn on GPS when I already did. Thru Maps is the only app that use GPS and is not working with this method.

For now at least. Apps will be switching to the new method (in fact, I'm pretty sure other apps use this already as this is the new API).

I can't release it as it is, it leaks a View somewhere, causing RAM to be lost. Unless the internal window manager gets rid of that somehow.

Sent from my C6903 using Tapatalk
 

tisazalay

Senior Member
Mar 17, 2012
807
418
Panama
For now at least. Apps will be switching to the new method (in fact, I'm pretty sure other apps use this already as this is the new API).

I can't release it as it is, it leaks a View somewhere, causing RAM to be lost. Unless the internal window manager gets rid of that somehow.

Sent from my C6903 using Tapatalk

Thanks for your module, even though it's not working for cm11, kitkat, as you mentioned, it will in the future. So I simply wait :thumbup:

Sent from my GT-I9300 using Tapatalk 2
 

LeoRex

Senior Member
Nov 30, 2012
514
256
Leominster MA
Yeah, this module is the only thing holding me back... I'm at 4.3 and won't budge. I toggle this via secure settings/llama and it really reduces battery usage. I'll be watching this like a hawk.
 

LeoRex

Senior Member
Nov 30, 2012
514
256
Leominster MA
I've managed to kill those location wakelocks completely with Xposed modules, so I don't have to toggle GLS anymore.... and no 4.4 native pie and halo keeps me on 4.3...


Maybe by the time this module is fixed, paranoid android 4 will have them both. :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 82
    Requires Xposed Framework!

    This module auto-agrees to and disables this dialog:
    g4D16Ril.png


    Compatibility:
    This mod should work on all devices with Google's NetworkLocation.apk, which is shipped with devices that are Play Store certified.

    Source:
    The mod is open source, and licensed under GPLv3: https://github.com/MohammadAG/Xposed-Disable-Location-Consent

    Download:
    By installing this module, you agree to the following:
    "Allow Google's location service to collect anonymous location data. Some data may be stored on your device. Collection may occur even when no apps are running."
    http://repo.xposed.info/module/com.mohammadag.disablelocationconsent

    Thanks to:

    Support development:
    If you found this mod useful, consider donating with PayPal.
    9
    In the new gapps there is a "Do not show again" checkbox on the location consent, so if you are having force closes, you do not need the module.
    7
    Well, I don't know if MohammadAG ever planned on updating this for KitKat, but I rather liked the idea of it, so I took the liberty of updating it myself (I don't have 10 posts yet, so I can't post a link, but just copy this into your browser): github.com/zenzizenzic/Xposed-Disable-Location-Consent/releases

    It seems to work fine here. The radio buttons occasionally flash briefly when moving from "Device only" to "Battery saving" or "High accuracy" (the latter two options use network location, thus prompting the location consent dialog to open), as described by MohammadAG in the first post. However, the setting definitely appears to stick.

    If anyone wouldn't mind testing this a little more, I could put it up on the Xposed module repo as well.
    6
    Hello,I think i have found why the module don't work anymore whit android 4.4.The change is in the xposed framework that have changed the afterhookedmethod() with getextra() -- (And this module use exactly this method).I'm not a developer so i ask for someone to make this change.Here is the documentation for new method:

    https:// github. com/rovo89/XposedBridge/commit/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054#diff-0

    https:// github. com/rovo89/XposedBridge/blob/3c18f6f6bd4e0ec57898b3b3a79b5584d0396054/src/de/robv/android/xposed/callbacks/XCallback.java

    And here the source code: https:// github. com/MohammadAG/Xposed-Disable-Location-Consent
    Many thanks to those who will listen to me.

    Sorry, but this isn't it. That change is related to extra fields set by the developer of a module, not fields from a hooked class.

    This doesn't work anymore as the whole class was moved to Google Play Services, which is obfuscated.

    I already have a full workaround ready, but it keeps resetting the setting after switching to network mode.

    In any case, I guess I'll eventually figure it out...

    Sent from my Nexus 7 using Tapatalk 4
    6
    What's that if you don't mind me asking?

    In your Tasker task go to the +, then input, then dpad, basically it simulates like a tab press on Windows, you can say dpad right to highlight the ok button, then dpad push to push it, the pop-up still shows ofc, but it autoaccepts it, better than nothing for now I guess! Happy New Year Btw!