Is there a way to have a timeout when calling "adb wait-for-devices"?
Scenario:
adb reboot
adb wait-for-devices (timeout listed here - if possible)
**if times out: echo timed out**
**else**
adb root
adb wait-for-devices
Is there a way to have a timeout when calling "adb wait-for-devices"?
Scenario:
adb reboot
adb wait-for-devices (timeout listed here - if possible)
**if times out: echo timed out**
**else**
adb root
adb wait-for-devices
The purpose of this question was for Automation, so I found a temporary solution using Perl's Alarm feature:
There are similar answers on how to do system calls with a timeout: https://stackoverflow.com/a/2563551/3491654