I'm sending this email to gauge interest in a proposed change to host-side ADB:I had been working on this for some time but without any success and faced the same problem as observed by you (kill adb server, unplug and plug it).
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 deviceThere are embedded solutions being developed around Android, which feels the pinch of one USB port. Like, using ADB when the device is connected for real time debugging is a concern. A generic solution will help to overcome this hurdle.
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?
1: http://people.linaro.org/~doanac/sdmux/sdmux.sh
_______________________________________________ linaro-android mailing list linaro-android@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-android