1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-03-03 16:57:51 +00:00

utils/android: Start ADB server before listing devices

Otherwise if the server isn't started we fail to parse the output of
'adb devices'
This commit is contained in:
Brendan Jackman 2017-09-20 13:02:44 +01:00
parent 25ad53feff
commit a290d28835

View File

@ -286,6 +286,10 @@ def adb_get_device(timeout=None, adb_server=None):
"""
# TODO this is a hacky way to issue a adb command to all listed devices
# Ensure server is started so the 'daemon started successfully' message
# doesn't confuse the parsing below
adb_command(None, 'start-server', adb_server=adb_server)
# The output of calling adb devices consists of a heading line then
# a list of the devices sperated by new line
# The last line is a blank new line. in otherwords, if there is a device found