Skip "list of devices" header from adb
Sometimes "adb devices" prints a header. We should skip over the header instead of complaining that we don't recognize it. Fixes #1293
This commit is contained in:
@@ -536,6 +536,9 @@ class AndroidDevice extends Device {
|
||||
if (line.startsWith('* daemon '))
|
||||
continue;
|
||||
|
||||
if (line.startsWith('List of devices'))
|
||||
continue;
|
||||
|
||||
if (deviceRegex1.hasMatch(line)) {
|
||||
Match match = deviceRegex1.firstMatch(line);
|
||||
String deviceID = match[1];
|
||||
|
||||
Reference in New Issue
Block a user