I have an android device which we are running with a POS application . Android 6.0
The USB devices connected to this POS communicate over serial ports . However on restarting the device i have to manually unplug and plug back the serial usb devices .
I want a small android function or apk which restarts programatically restarts the USB ports for an android device . Basically to simulate the unplug and re plugging of the usb .
Need the function done in c#.
Once awarded the payment will be in escrow . Will be released only once the apk is tested and verified.