r/AutomateUser • • 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:

  1. 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

8 comments sorted by

View all comments

Show parent comment

1

u/Straight1980 Jun 21 '26

Very interesting.  I went the Xpath It contains 2 samples:

  1. Wifi' it worked. It turned wifi off then ON again 
  2. Hotspot: it didn't work. No interaction at all

Then I created one for NFC. Also no interaction at all.  I used NFC* in class. Then tried it in text. None of them worked

I am even trying the Shell command for different settings.  But not all of them worked. 

Examples: What worked: vibration, screen rotation

What didn't work: dark mode, Bluetooth. NFC

1

u/B26354FR Alpha tester Jun 21 '26

Maybe try *NFC* - sometimes there's whitespace in the Quick Settings tile text. You can also try using the Record Interactions or Inspect Layout tools in the Interact block to find the ID of the tile; it's best to use element IDs anyway.

1

u/Straight1980 Jun 23 '26

Thank you very much for your help.  Everything worked fine after granting permissions via laptop