Is there any way to automate charging cycles (like charge only from 40% to 80%) if the device always connected to power outlet? I'm searching for a way to read charging level and send commands to external devices to turn off/on power outlet.

  • I recall there were some.
    – iBug
    Commented Nov 28, 2018 at 9:50
  • Apart from what @ibug suggested, there are more in answers there and I use Battery Charging limit that can be configured exactly as you ask
    – beeshyams
    Commented Nov 28, 2018 at 10:08

1 Answer 1


If you have Magisk installed, this module Magic Charging Switch (MCS) can automate charging with certain conditions.

I didn't try it but according to the XDA post it's a decent option.

  • Thanks a lot, it's a bit complicated by setting values, but it works.
    – Sathish
    Commented Nov 29, 2018 at 4:23
  • @Sathish If you find this answer helpful, would you click the grey tick beside it?
    – iBug
    Commented Nov 29, 2018 at 5:48

Not the answer you're looking for? Browse other questions tagged .