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:
parent
25ad53feff
commit
a290d28835
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user