resolve merge conflicts of b6d3261 to nyc-mr1-dev-plus-aosp
authorKalle Raita <kraita@google.com>
Tue, 20 Dec 2016 21:38:32 +0000 (13:38 -0800)
committerKalle Raita <kraita@google.com>
Tue, 20 Dec 2016 21:39:41 +0000 (13:39 -0800)
Test: Tried to run the install script locally
Change-Id: I2c34fa110c811741ad53bd42143bfd2a371b459a

android/scripts/common.py

index 7940f4a..ef52764 100644 (file)
@@ -173,7 +173,7 @@ def getDevices (adb):
        if proc.returncode != 0:
                raise Exception("adb devices -l failed, got %d" % proc.returncode)
 
-       ptrn = re.compile(r'^([a-zA-Z0-9]+)\s+.*product:([^\s]+)\s+model:([^\s]+)\s+device:([^\s]+)')
+       ptrn = re.compile(r'^([a-zA-Z0-9\.:]+)\s+.*product:([^\s]+)\s+model:([^\s]+)\s+device:([^\s]+)')
        devices = []
        for line in stdout.splitlines()[1:]:
                if len(line.strip()) == 0: