avoid start message of adb
This commit is contained in:
parent
a4ea97ac03
commit
4fe9296947
1 changed files with 2 additions and 2 deletions
|
@ -472,10 +472,10 @@ class TargetAndroid(Target):
|
||||||
if serial:
|
if serial:
|
||||||
return serial.split(',')
|
return serial.split(',')
|
||||||
l = self.buildozer.cmd('{} devices'.format(self.adb_cmd),
|
l = self.buildozer.cmd('{} devices'.format(self.adb_cmd),
|
||||||
get_stdout=True)[0].splitlines()[1:-1]
|
get_stdout=True)[0].splitlines()
|
||||||
serials = []
|
serials = []
|
||||||
for serial in l:
|
for serial in l:
|
||||||
if serial.startswith('*'):
|
if serial.startswith('*') or serial.startswith('List '):
|
||||||
continue
|
continue
|
||||||
serials.append(serial.split()[0])
|
serials.append(serial.split()[0])
|
||||||
self._serials = serials
|
self._serials = serials
|
||||||
|
|
Loading…
Reference in a new issue