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

Merge pull request #174 from bjackman/adb-start-server

utils/android: Start ADB server before listing devices
This commit is contained in:
setrofim 2017-09-20 13:59:02 +01:00 committed by GitHub
commit a59093465d

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