Use DeviceManager instead of device to determine if device supports project (#36213)
diff --git a/packages/flutter_tools/lib/src/device.dart b/packages/flutter_tools/lib/src/device.dart index 5865744..936bf15 100644 --- a/packages/flutter_tools/lib/src/device.dart +++ b/packages/flutter_tools/lib/src/device.dart
@@ -202,7 +202,7 @@ if (devices.length > 1 && !hasSpecifiedDeviceId) { devices = <Device>[ for (Device device in devices) - if (device.isSupportedForProject(flutterProject)) + if (isDeviceSupportedForProject(device, flutterProject)) device ]; } @@ -224,6 +224,8 @@ } /// Returns whether the device is supported for the project. + /// + /// This exists to allow the check to be overriden for google3 clients. bool isDeviceSupportedForProject(Device device, FlutterProject flutterProject) { return device.isSupportedForProject(flutterProject); }