AnsweredAssumed Answered

How to disable/enable USB on Android

Question asked by Enrique Vicente on Sep 23, 2014
Latest reply on Sep 25, 2014 by Enrique Vicente



I had build an android application which uses the accessory manager to connect to an external PIC. This connection uses the USB OTG from the imx6 board to connect to the PIC.


The problem is that if the cable is connected before Android boots it doesn't recognize the device, so I can't connect with it, and the application becomes useless.There is someway to simulate a new connection without remove and connect the cable manually? I had though use some linux command line or script which enable/disable the OTG USB. I know how to execute commands from Android, but my knowledge about Linux is a very rusty.


kind regards,


and thanks for your time.