Page 1 of 1

Set App-Ops values - allow/deny location (wakelocks?)

Posted: 08 Oct 2014 02:51
by ncr100
Hi! Thank you for the excellent tool!

I wonder what way would you recommend I use to allow/deny location services (are these wakelocks?) for the "Google Play services" component?

A photo album of my manual Settings I currently need to employ to change it: http://imgur.com/a/iHOD5#0 (plus one attachment here)

I am running Cyanogen Mod (v11) on a Galaxy Note II and I face major power drain which I can fix for my case by denying:

* Location
* Keep awake
* Wake up

I plan to enable Location only when my screen turns on, and disable it 5 minutes after shutting the screen off.

Best,
Nick

Re: Set App-Ops values - allow/deny location (wakelocks?)

Posted: 09 Oct 2014 13:02
by Martin
Hi,

Thanks! I'm glad you like Automagic. :D

I have not checked out internally what exactly AppOps checks and counts since it's not an official feature yet. It looks like it counts the access to a function that's protected by a particular permission but I'm really not sure about that.

I assume that Google Play services itself also respects the location settings of the device so I would use actions Set GPS State and Set Network Location State to turn both on/off as desired and see if this also helps battery life.

Keep awake and Wake up sounds like it prevents access to wake locks (usually used to wake the CPU or used to keep the CPU awake when the screen turns off). I would not deny access to such permissions since it could affect many functions of the device when requests of Google Play services are paused immediately when the screen is turned off.

Regards,
Martin

Re: Set App-Ops values - allow/deny location (wakelocks?)

Posted: 23 Apr 2018 08:17
by JC.INTERNET.STUFF
Hi, has any progress been made on this to toggle 'Op App' permissions via Automagic?

Thanks.

Julian

Re: Set App-Ops values - allow/deny location (wakelocks?)

Posted: 23 Apr 2018 13:47
by Desmanto
You need root to do it. You can use execute root command. Example, you can change the mock location app using appops : viewtopic.php?f=5&t=7286
If that is not what you want, you have to be specific of what you want to do.