Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[BUG] adb completion skips devices from serial number completion if they don't report 'product' field in "... devices -l"



Hi there!

I've faced a pretty sad bug: if, for a some reason, device doesn't report 
'product' field in `adb devices -l` listing, it will be skipped from `adb -s` 
completion.

For example:

$  adb devices -l
List of devices attached
192.168.0.134:5555     device transport_id:681
192.168.0.111:5555     device product:polaris_a70H model:N8000 device:polaris-
a70H transport_id:680
riki:5555              device product:rk30sdk model:ES9701 device:rk30sdk 
transport_id:679
pola:5555              device product:polaris_a70H model:N8000 device:polaris-
a70H transport_id:678
crane:5555             device transport_id:676
192.168.0.69:5555      offline transport_id:671
192.168.0.57:5555      device product:rk30sdk model:ES9701 device:rk30sdk 
transport_id:670

$ adb -s 192.168.0.111
 available devices
192.168.0.111  pola  -- 5555:polaris_a70H
192.168.0.57   riki  -- 5555:rk30sdk

As you can see, it misses the `crane` (and *.134) device in completion, 
although it is definitelly not offline (and I can run adb against it if I 
manually specify it to `-s`.




Messages sorted by: Reverse Date, Date, Thread, Author