[MOD][Xposed] Disable Google Location consent

Search This thread

MohammadAG

Inactive Recognized Developer
Sep 7, 2009
1,080
5,504
27
Jerusalem
mohammadag.xceleo.org
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.
 
Last edited:

themadproducer

Senior Member
Aug 28, 2009
2,815
1,340
This Mod is working perfect on my S3 Stock ICS.
I used to have a clumsy semi effective workaround with Tasker using macros to imitate button pushes. I abandoned that long ago. But this mod works great. Now Tasker can easily disable/enable Location preference at screen off/on without that daft popup consent notification.
Thanks MohammadAG
 

FireBird_89

Senior Member
Jan 9, 2013
173
47
Toronto
Love this!!!
I find that having "Use Wireless Networks" causes a lot of NLP collector wakelocks, but I like using the functionality of Google Now and other apps that could utilize the network location.
I set up a Tasker Profile so that when I open Google Now, it enables the wireless network location. (normally that would make a prompt show up every time I open up google now, but this removes the prompt and makes it all work amazingly well.
Thanks a lot!!
 
  • Like
Reactions: flaxfrogfriend

paour

Senior Member
What would be even better is if you were able to disable the background location polling...

NlpCollectorWakelock causes so much battery drain on my device (even though I don't have any apps that use network location in the background, this is strictly Google building out its databases) that I have to keep network location turned off.

Your module saves us from having to tap to agree when we turn it back on (or saves writing a Tasker script to do it automatically), but a fix for the underlying problem would be even better :)
 

GermainZ

Inactive Recognized Developer / Retired Forum Mode
Aug 3, 2012
6,174
8,788
yes. I use several mods for Xposed and the rest work
Is this module enabled (and have you rebooted)?

EDIT: Disregard this, I confused this thread with another. :)
How does it not work? This mod only maximizes your lockscreen widgets, similar to what would happen if you drag it downwards. Isn't that happening? Can you post a screenshot right after you turn your screen on?
 
Last edited:

Gerton

Senior Member
Nov 16, 2009
731
120
How does it not work? This mod only maximizes your lockscreen widgets, similar to what would happen if you drag it downwards. Isn't that happening? Can you post a screenshot right after you turn your screen on?

I think u are in the wrong thread...

Sent from my HTC One using XDA Premium 4 mobile app
 
  • Like
Reactions: GermainZ

abnormalreply

Senior Member
Sep 1, 2012
498
234
New York City
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!
 

dengar100

Member
Jul 11, 2007
25
5
Works for me

This works perfectly on a rooted LG Optimus G. I was pulling my hair out trying to find a solution for this. I made a tasker action to simulate a screen touch but that only works 30% of the time or so. Thanks!
 
  • Like
Reactions: Simba501

Massi-X

Senior Member
Nov 28, 2013
213
319
This module auto-agrees to and disables this dialog:

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:

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."

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.
 
Last edited:

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!
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone