xman0752
Contributor
via adb shell
sys/class/power_supply/usb/device/charge
its default content is '1' which means 'enable charging' you need to set it to '0' to 'disable charging'
$ su
$ echo 0 > /sys/class/power_supply/usb/device/charge
try this
sys/class/power_supply/usb/device/charge
its default content is '1' which means 'enable charging' you need to set it to '0' to 'disable charging'
$ su
$ echo 0 > /sys/class/power_supply/usb/device/charge
try this