'Wireless Debugging Approval' Prompt with 'Interact Click' block

73 views
Skip to first unread message

Alex

unread,
Jul 15, 2025, 10:07:58 AMJul 15
to Automate for Android
On my Samsung devices running Android 11 and 12, Wireless Debugging must be re‑approved after every reboot—even on the same Wi‑Fi network:

> **Allow wireless debugging on this network?**
> Network Name (SSID) 'CCCP'
> Wi‑Fi Address (BSSID) 70:62\:b8:6f:69:49
> ( ) Always allow on this network
> \[Cancel]  \[Allow]
Also see the attached screenshot.


I still have to tap the checkbox 'Always allow on this network' and then 'Allow' after every  reboot.
Adding these blocks after reboot does not suppress the prompt:
```
Set setting: adb_enabled = 1  
Set setting: adb_wifi_enabled = 1  
```
Neither does disabling  "adb authorization timeout" option.

When  tapping/clicking the prompt "Allow Wireless  Debugging on this network?", I have recorded the  following with Automate 'Interact Click' block:
```
/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[@android:id='@android:id/content']/android.widget.LinearLayout[@android:id='@android:id/parentPanel']/android.widget.FrameLayout[@android:id='@android:id/customPanel']/android.widget.FrameLayout[@android:id='@android:id/custom']/android.widget.LinearLayout/android.widget.CheckBox[@android:id='@android:id/alwaysUse' and @android:text='Always allow on this network']
```

So far, I  have been trying to automate the two taps with two sequential Automate’s **Interact Click** blocks:
1. Proceed option: When UI element appeared
xpath: "//android.widget.CheckBox[@resource-id='android:id/alwaysUse' and @text='Always allow on this network']"

2. Proceed option: Immediately
xpath: "//android.widget.Button[@resource-id='android:id/button1' and (@text='Allow')]"


No success.

Next, I focused solely on tapping 'Allow' with these xpaths (all without success):

```
//android.widget.Button[@resource-id='android:id/button1' and @text='Allow']
//android.widget.Button[@resource-id='android:id/button1' and @text='Allow']
//android.widget.Button[contains(@text,'Allow')]
//android.widget.Button[contains(@text,'Allow')]
//*[@text='Allow']
//*[contains(@text,'Allow')]
//android.widget.Button[contains(@resource-id,'button1') and contains(@text,'Allow')]
```

I have  successfully recorded and implemented a few 'Interact Click' and 'Interact touch' blocks for Google Voice, WhatsApp, and Zoiper apps. So I must be missing something specific to this system prompt.

**What am I overlooking?** Any pointers would be greatly appreciated.
Auth.jpg

Henrik "The Developer" Lindqvist

unread,
Jul 19, 2025, 10:19:06 AMJul 19
to Automate for Android
There's no @resource-id nor @text attributes, sett the documentation and generated XPath, you'll should use @android:id and @android:text, e.g.:
//android.widget.Button[@android:id='@android:id/button1' and @android:text='Allow'] 
Reply all
Reply to author
Forward
0 new messages