I have Tecno H3 running android 4.4.2 kitkat and Tecno P5 running android 4.2.2 jellybean. I want to completely disable charging at 85% and re-enable it at 50% without rebooting the phone. So i went to /sys/class/power_supply/ac/online and changed the permission from 444 to 755. But when i connected the charger, i edited the content of the file "online" from "1" to "0" so as to disable charging even when the charger is connected the phone reboots itself instead of disabling charging? What is the solution please because the "BatteryChargeLimit" app didnt work as it was designed for lollipop(5.1) and above. Is there any shell script that can do that for me in Jellybean and kitkat please? Or how can i manually do it?