This is a solution I found and use on a daily basis on my phone since systemless root is not being recognized by Secure Settings and they can't be used to automate mobile data switching anymore.
1. In "profiles" add new event > "display off"
2. Add new task and create the following actions:
a. add Task > wait 10 seconds (or any other amount of time you want it to wait before executing next actions)
b. add Task > if > "%SCREEN" ~ "off" (this will check if you didn't turn the screen back on, so it doesn't disable your data/wifi/ect unnecesserily)
c. add Code > Run Shell > "svc data disable". Tick "Use Root" box (this will disable your mobile data connection)
d. add Net > WiFi > off
e.. add > Code > Run Shell > "settings put system screen_brightness 1". Tick "Use Root" box (this will set the lowest screen brightness. For some reason, if I use Display > Display Brightness action and set it to 0 it doesn't actually set the lowest possible brightness).
Enjoy
1. In "profiles" add new event > "display off"
2. Add new task and create the following actions:
a. add Task > wait 10 seconds (or any other amount of time you want it to wait before executing next actions)
b. add Task > if > "%SCREEN" ~ "off" (this will check if you didn't turn the screen back on, so it doesn't disable your data/wifi/ect unnecesserily)
c. add Code > Run Shell > "svc data disable". Tick "Use Root" box (this will disable your mobile data connection)
d. add Net > WiFi > off
e.. add > Code > Run Shell > "settings put system screen_brightness 1". Tick "Use Root" box (this will set the lowest screen brightness. For some reason, if I use Display > Display Brightness action and set it to 0 it doesn't actually set the lowest possible brightness).
Enjoy
via xda-developers http://ift.tt/1UxALAI
Put the internet to work for you.
No comments:
Post a Comment