zsh-users
 help / color / mirror / code / Atom feed
* [BUG] adb completion skips devices from serial number completion if they don't report 'product' field in "... devices -l"
@ 2018-09-17 16:23 Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; only message in thread
From: Vadim A. Misbakh-Soloviov @ 2018-09-17 16:23 UTC (permalink / raw)
  To: zsh-users

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`.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-09-17 16:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-17 16:23 [BUG] adb completion skips devices from serial number completion if they don't report 'product' field in "... devices -l" Vadim A. Misbakh-Soloviov

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).