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:
Adam Barth
2016-01-18 11:25:53 -08:00
parent eb53ec313b
commit 7019e92f38

View File

@@ -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];