Home > Tips and Tricks

Limit Battery Charge on Android after a Specific Percentage

This guide will show you two different methods to limit/stop the battery charge of your Android device after a specific percentage. We have seen some major tectonic shifts in the battery domain during the past few years. While 4000mAh was once considered a luxury, it is now being treated as the minimum level that every device should offer [well, at least Android]. Likewise, fast-charging technology, which once stood as the USP of flagships, has now been incorporated into the budget offerings as well.

Not to mention the fact it is breaking new barriers every other month, with the level going all the way up to 150W. Even the wired charging technology might get obsolete in a few years, with the number of devices supporting wireless charging growing every other day. And yes, the reverse wireless charging is slowly catching up as well. In between all this, one thing remains constant- the tendency of the users to keep their devices in a plugged-in state overnight.

While nowadays, most devices come with an adaptive battery feature [and other related tweaks] that keeps a check on the charging percent and ascertain how much power the device really need, but there exists a much more effective rule that you could put in place- to limit or rather stop the battery charge of your Android device after a specific percentage. And in this guide, we will show you how this could be carried out. Follow along.

How to Limit Battery Charge on Android after a Specific Percentage

Limit Battery Charge on Android

There exist two different methods through which you could get the job done- via a third-party app and using a specific command. We have listed both these approaches below, you may refer to the one that is in sync with your requirement. Moreover, both these methods require root access.

If your device isn’t rooted, then check out this guide- How to Root Android 12 via Magisk. Droidwin and its members wouldn’t be held responsible in case of a thermonuclear war, your alarm doesn’t wake you up, or if anything happens to your device and data by performing the below steps.

Method 1: Via Magisk Modules [Root]

  1. To begin with, download the desired Magisk module from below:
    Charging Limit 80
    Charging Limit 85
    Charging Limit 90
    Charging Limit 95
  2. Then launch Magisk, go to Modules, and tap on Install from Storage.
  3. Now select the desired mod and it will be flashed. Once done, hit Reboot.

Method 2: Via Third-Party App [Root]

  1. To begin with, download and install the Battery Charge Limit app.
  2. Then launch the app and grant it the Magisk Request.Limit Battery Charge on Android
  3. After that, enable the toggle next to Enable Battery Charge Limit.
  4. Now set the desired limit under the Limit Charging section. That’s it.

Method 3: Via Command [Root]

  1. Download and extract Android SDK Platform Tools on your PC.install adb platform tools windows
  2. Then enable USB Debugging and connect your device to the PC via USB cable.Limit Battery Charge on Android
  3. After that, go to the platform-tools folder, type in CMD in the address bar, and hit Enter.
  4. This will launch the Command Prompt. Type in the following command to open the shell environment
    adb shell
  5. After that, execute the below command to invoke the root permission
    su

    Limit Battery Charge on Android

  6. You will now get a Magisk request on your device, tap Grant.Limit Battery Charge on Android
  7. Now input the following command to limit the charging percentage [as an example, we are taking 90, make sure to replace it with the desired level].
    echo 90 > /sys/devices/platform/google,charger/charge_stop_level

    Limit Battery Charge on Android

  8. That’s it. Now just reboot your device for the changes to take place.

So these were the two different methods to limit/stop the battery charge of your Android device after a specific percentage. If you have any queries concerning the aforementioned steps, do let us know in the comments. We will get back to you with a solution at the earliest.

Method 4: Via IFTTT Webhooks & MacroDroid [Non-Root]

While this is the lengthiest of the four methods, but it also comes with a huge advantage that the entire process doesn’t require root. So with that in mind, let’s get started.

  1. To begin with, install MacroDroid on your device.
  2. Now go to the IFTTT website and sign in/log in to it.
  3. Then click on Create > If This.Limit Battery Charge on Android
  4. Now search Webhooks and click on Connect.Limit Battery Charge on Android
  5. Select Webhooks and click on Receive a Web Request.Limit Battery Charge on Android
  6. Name this event limit_battery_charge_android and hit Create.Limit Battery Charge on Android
  7. Then click on Then That.Limit Battery Charge on Android
  8. Now search for your smart plug [I’m using TP-Link Kasa] and select the Turn Off action.Limit Battery Charge on Android
  9. Then click Connect and authorize via your email ID and password. Limit Battery Charge on Android
  10. Once done, click on Create Action and hit Continue > Finish.
  11. Now go to IFTTT Maker and select the Applet that we have just created.
  12. Then head over to Documentation. It will give you your API key.
  13. Now paste the event name in the URL provided [under {event}]. Then copy this entire URL.Limit Battery Charge on Android
  14. Now launch MacroDroid on your device and tap on Add Macro.
  15. Then tap on Plus next to Add Trigger and go to Battery/Power > Battery Level. Limit Battery Charge on Android
  16. Now select Increase/Decrease, select Increase To, choose the desired value, and hit OK.Limit Battery Charge on Android
  17. Then click plus next to Actions, search Open Website, and select it.Limit Battery Charge on Android
  18. Now paste the URL that we had copied earlier and hit OK.
  19. Then click plus next to Constraint and go to Battery/Power > Power Connected.
  20. Finally, check all three options and hit OK. Now give this macro a name and save it.Limit Battery Charge on Android
  21. As soon as the battery reaches 81% [in our case], the smart plug will be turned off and the charging will be stopped!

Share:
  • Limiting the battery charge to 85% seems an obvious tweak to save your battery, so why does Android hide this option down in the root which voids your warranty if you use it?

  • You can use a Chargie device to protect your phone’s overnight charging process.