3

I'm making automation bash script that will go over range of IP's and try to connect over ADB.

If I try:

adb connect <not android device>

the command will hang for 30 seconds until it say

"failed to connect to '192.168.1.231:5555': Operation timed out".

How I can make ADB connect to try to connect for less time. Something like 3 seconds?

1 Answers1

0

You can try:

timeout <seconds> adb connect <ip-address>

More can be found on: https://linuxize.com/post/timeout-command-in-linux/