def getDevices(self, silent=False, retry=1): adb = ADB() rows = adb.run("devices", "-l", silent=silent, retry=1) rows.pop(0) devices = set() for row in rows: items = row.strip().split() if len(items) > 2 and "device" in items: device_id = items[0].strip() devices.add(device_id) return devices
def getDevices(self): adb = ADB() rows = adb.run("devices", "-l") rows.pop(0) devices = set() for row in rows: items = row.strip().split(' ') if len(items) > 2 and "device" in items: device_id = items[0].strip() devices.add(device_id) return devices