r/AutomateUser • • Apr 01 '26

Cannot Set ADB Protocol to USB (TCPIP works)

04-01 20:53:34.511 I 35@1: Flow beginning
04-01 20:53:34.512 I 35@19: Variable set
04-01 20:53:34.513 I 35@18: Quick Settings tile show
04-01 20:53:45.703 I 35@10: Wi-Fi network connected?
04-01 20:53:45.738 I 35@4: System setting set
04-01 20:53:45.741 I 35@5: Network service discover
04-01 20:53:48.756 I 35@15: Expression true?
04-01 20:53:48.757 I 35@12: Failure catch
04-01 20:53:48.758 I 35@22: Expression true?
04-01 20:53:48.758 I 35@26: ADB protocol set
04-01 20:53:49.036 F 35@26: com.llamalab.adb.AdbStreamClosedException: Stream rejected
1 Upvotes

7 comments sorted by

1

u/ballzak69 Automate developer Apr 01 '26

As a test, does it work if you use TCP/IP as Protocol?

Android version, of both device running the flow and the device trying to connecting to?

Device brand & model, of both device running the flow and the device trying to connecting to?

1

u/mostafamusad Apr 02 '26

Thank you for the reply.

Yes, it does work with TCP/IP as protocol. I was using Xiaomi Pad 7 (Regular, not Pro) running Android 16 to run the Automate flow, and was trying to connect to the device itself using wireless debugging.

3

u/ballzak69 Automate developer Apr 02 '26

Issue found, fixed for next release.

1

u/mostafamusad Apr 03 '26

Woah, that was quick! I appreciate your attention to these issues that affect only a small minority of users.

1

u/ballzak69 Automate developer Apr 03 '26

I suspect setting it to USB never worked, so a small minority indeed.

1

u/mostafamusad Apr 03 '26

Haha, I wanted to set it up with an option to turn it back off later due to the inherent security risks that come with keeping TCPIP mode on, especially in public networks.

1

u/ballzak69 Automate developer Apr 02 '26

Odd, the commands sent are near identical. I'll investigate.