I have an app (Android version 4.0+) that communicates with a USB host 
device (IOIO OTG board). Communication requires that the adb daemon is 
running on the Android, but for unknown reasons the adb daemon sometimes 
terminates, and communication fails. A reboot of the Android device fixes 
the problem, but I do not want to incur the time overhead of a reboot. I've 
discovered that communication can be restored without reboot using the 
following procedure:

   1. 
   
   Restart adb daemon through console session as root:
   
   start adbd
   2. 
   
   Unplug and plug the USB cable 
   
My app can detect communication failure and programatically execute step 1, 
but step 2 is a problem: my application must run autonomously without a 
human present, so I need some way to programmatically trigger the events 
associated with step 2 without physical contact. Does anyone know how to do 
this? (I presume rooted phone is required, but an unrooted method would be 
better.)

Thanks, Tom

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to