From 7019e92f389764535c7beae4e6ccdb63960b9dde Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 18 Jan 2016 11:25:53 -0800 Subject: [PATCH] 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 --- packages/flutter_tools/lib/src/device.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index a58fb10a16..45280eef17 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart @@ -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];