Commit eb65177
committed
match device by qualifiers too like adb does
For instance matching by devpath (like usb:1.1) is very useful for
devices that have identical serial numbers.
Adb accepts
adb -s <serialno>
adb -s <devpath>
adb -s <model:name>
adb -s <device:name>
adb -t <transport_id>
Let's support first four forms the same way.
The fifth seems to work as well with serial in form 'transport_id:1'
References
append_transport, acquire_one_transport, atransport::MatchesTarget
https://android.googlesource.com/platform/system/core/+/master/adb/transport.cpp1 parent bdbe45b commit eb65177
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 | | |
108 | 111 | | |
109 | 112 | | |
| |||
434 | 437 | | |
435 | 438 | | |
436 | 439 | | |
437 | | - | |
| 440 | + | |
438 | 441 | | |
439 | 442 | | |
440 | 443 | | |
| |||
0 commit comments