The following task that uses AutoInput will toggle Location on and off on an un-root-ed device.
It is currently running from a kid on a Droid Turbo under 6.0.1 and a Droid Turbo 2 under 7.0 ...
tlaLocation (629)
A1: Variable Set [ Name:%tmp To:%GPS Recurse Variables:Off Do Maths:Off Append:Off ]
A2: AutoInput Global Action [ Configuration:Action: Quick Settings Timeout (Seconds):20 ]
A3: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: AutoInput Action [ Configuration:Type: Text
Value: Location
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A5: If [ %tmp ~ off ]
A6: AutoInput Action [ Configuration:Type: Text
Value: Agree
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A7: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A8: If [ %SDK ~ 23 ]
A9: AutoInput Action [ Configuration:Type: Text
Value: Agree
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A10: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A11: End If
A12: Else
A13: AutoInput Global Action [ Configuration:Action: Back Timeout (Seconds):20 ]
A14: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A15: AutoInput Global Action [ Configuration:Action: Back Timeout (Seconds):20 ]
A16: End If
... Thom
It is currently running from a kid on a Droid Turbo under 6.0.1 and a Droid Turbo 2 under 7.0 ...
tlaLocation (629)
A1: Variable Set [ Name:%tmp To:%GPS Recurse Variables:Off Do Maths:Off Append:Off ]
A2: AutoInput Global Action [ Configuration:Action: Quick Settings Timeout (Seconds):20 ]
A3: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A4: AutoInput Action [ Configuration:Type: Text
Value: Location
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A5: If [ %tmp ~ off ]
A6: AutoInput Action [ Configuration:Type: Text
Value: Agree
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A7: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A8: If [ %SDK ~ 23 ]
A9: AutoInput Action [ Configuration:Type: Text
Value: Agree
Action : Click
Is Tasker Action: false
Check Screen State: false Timeout (Seconds):20 ]
A10: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A11: End If
A12: Else
A13: AutoInput Global Action [ Configuration:Action: Back Timeout (Seconds):20 ]
A14: Wait [ MS:500 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A15: AutoInput Global Action [ Configuration:Action: Back Timeout (Seconds):20 ]
A16: End If
... Thom
Last edited: