1
0
mirror of https://github.com/ARM-software/devlib.git synced 2025-01-31 02:00:45 +00:00

Merge pull request #49 from derkling/fix-adb-connect

android: avoid connect for USB target
This commit is contained in:
setrofim 2016-07-29 16:09:17 +01:00 committed by GitHub
commit 0c8f26763b

View File

@ -265,6 +265,10 @@ def adb_get_device(timeout=None):
def adb_connect(device, timeout=None, attempts=MAX_ATTEMPTS): def adb_connect(device, timeout=None, attempts=MAX_ATTEMPTS):
_check_env() _check_env()
# Connect is required only for ADB-over-IP
if "." not in device:
logger.debug('Device connected via USB, connect not required')
return
tries = 0 tries = 0
output = None output = None
while tries <= attempts: while tries <= attempts: