I'm sending this email to gauge interest in a proposed change to host-side ADB:
I'm currently using ADB in conjunction with a USB mass storage device that must be powered on/off repeatedly via the /sys interface on Linux[1]. This was working correctly until I recently added ADB into the workflow. The problem I now see is that this sequence won't work:
power off device run set of adb commands (that cause the daemon to run in background) power on device
It seems the probing of my devices entry under /dev/bus/usb is causing it to enter a weird state. The only way I've gotten it out of that state is to run "adb kill-server" and then physically unplug/plug the device.
My proposed solution (attached) gives you two options:
* ignore USB devices entirely * black list certain devices
I would like to see this patch make it to AOSP in some form, but I'm not sure if my use-case is too specific for you guys. Any interest?