mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 09:17: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:
commit
a59093465d
@ -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
|
# 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
|
# The output of calling adb devices consists of a heading line then
|
||||||
# a list of the devices sperated by new line
|
# 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
|
# 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