I am trying to mount USB pen drive in my old Xperia phone running andorid 4.1.2 When I connect OTG device to my phone I get an USB power consumption error.
After little search I found a command to make it work.
su echo 1 > /sys/bus/usb/devices/1-1/bConfigurationValue
When I execute this command from Terminal Emulator it works perfectly and USB drive is detected by my phone.
To avoid typing this command I am trying to created a Shell script which will run this command automatically using SManager:
When checked the log file i got only one line:
SManager executes it as:
# /system/bin/sh /storage/sdcard0/myusb.sh
I am not able to find out where I am going wrong. Need help!