Separate attached and wireless devices (#122615)
Separate attached and wireless devices
This commit is contained in:
committed by
GitHub
parent
5d10cc28ca
commit
27248d4b64
@@ -89,6 +89,14 @@ class AndroidDevice extends Device {
|
||||
final String modelID;
|
||||
final String? deviceCodeName;
|
||||
|
||||
@override
|
||||
// Wirelessly paired Android devices should have `adb-tls-connect` in the id.
|
||||
// Source: https://android.googlesource.com/platform/packages/modules/adb/+/f4ba8d73079b99532069dbe888a58167b8723d6c/adb_mdns.h#30
|
||||
DeviceConnectionInterface get connectionInterface =>
|
||||
id.contains('adb-tls-connect')
|
||||
? DeviceConnectionInterface.wireless
|
||||
: DeviceConnectionInterface.attached;
|
||||
|
||||
late final Future<Map<String, String>> _properties = () async {
|
||||
Map<String, String> properties = <String, String>{};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user