Suppose I have a USB-powered LED lamp connected through a USB OTG adapter to a Toshiba Excite 10 tablet running Android 4.0.3, which provides the power.
I want to programmatically turn the USB OTG host port's power pins on and off from an app. (Ideally without root, but I'll take what I can get). Any ideas?
/sys/bus/usb/devices/usb3/power/level
. I tried this without root but the write fails, so next I guess I need to root my tablet and try again. Source: stackoverflow.com/questions/4702216/… – AlcubierreDrive