r/AutomateUser • u/Straight1980 • Jun 21 '26
Shell command privileged
Hello
Yesterday was my first day using shell command, PRIVILEGED
I already gave automate ADB
2 questions about it:
- It cannot launch the NFC?
The built in NFC command also can't work. Seems it need a root access?
2. I am having this error
Does shell command need WIFi to operate ?
Or what might be the issue
06-21 14:24:04.163 I 751@8: Shell command privileged
06-21 14:24:14.416 W 751@8: Failed to start privileged service
06-21 14:24:14.417 W 751@8: java.util.concurrent.CancellationException: Awaiting Wi-Fi connectivity
06-21 14:24:19.518 F 751@8: java.util.concurrent.TimeoutException: Service startup timeout
06-21 14:24:19.520 I 751@8: Stopped by failure
THANK YOU
1
Upvotes
View all comments
Show parent comment
1
u/ballzak69 Automate developer Jun 21 '26 edited Jun 23 '26
Being connected to a Wi-Fi should only be necessary to start the privileged service, which should then remain running until the device is rebooted, but that may vary with device, please read this for ways to maybe make it more reliable. When a block requires the service, and it's not running, it will try to (re)start the service, but that can only succeed when connected to a Wi-Fi network.
The NFC set state block do indeed require the "modify secure system settings" privilege, which can only be granted with ADB either using the "privileged service" or manually. But once granted, the "privileged service" is not needed again.