Where can i locate the file responsible for activating charging in my jellybean and kitkat android?

by Jideofor5050   Last Updated May 15, 2019 11:11 AM

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?



Related Questions


Updated February 26, 2016 01:05 AM

Updated August 28, 2018 17:11 PM

Updated June 10, 2015 09:04 AM

Updated June 27, 2019 08:11 AM

Updated April 30, 2015 23:04 PM