• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

tasker - detect root access

nyydynasty

Android Expert
I'm trying to create a task that will periodically detect if the phone has root access. Is there an intent or something else that I can use to do this?
 
I'm not root-ed. Apparently Tasker checks for the existence of Superuser.apk to make the determination. There is currently no "if exists" in Tasker so something like the following is apparently needed ...

tlaRootTest
A1: Read File [ File:/system/app/Superuser.apk To Var:%work ]
A2: Flash [ Text:• Root-ed • Long:On ] If [ %work Set ]
A3: Flash [ Text:• Not Root-ed • Long:On ] If [ %work !Set ]

(final)

... Thom
 
Last edited:
Back
Top Bottom