How To: Set a Charging Limit on Your Android Device to Avoid Excess Battery Wear

Set a Charging Limit on Your Android Device to Avoid Excess Battery Wear

There's a lot of conflicting information out there when it comes to the best habits for charging a smartphone's battery, so let's clear some of that up right off the bat. Lithium ion batteries (the type used in most modern electronics) start to lose their ability to hold a charge over time, and the two biggest factors that contribute to this are excess heat and overcharging.

In a cruel twist of fate, the act of charging your phone's battery causes it to heat up, and topping it off to 100% charge contributes to reduced capacity over time. To be more specific, ResearchGate found that charging a battery to only 85% yielded a longer lifespan than charging to the full 100%. This is not even getting into the whole Note7 exploding battery fiasco — which, by the way, Samsung once tried to remedy by issuing an update that limited the phone's battery to 60 percent.

Knowing that charging to a full 100% isn't the best practice for long-term battery health, developer harsha1397 created a root app that lets you choose your own charging limit. The XDA Portal team was first to spot this innovative app, but I'll go over how it works in layman's terms below. It's not compatible with every device, but if it works for yours, you can simply set a percentage, then your phone will automatically stop charging once it hits that threshold.

Requirements

Step 1: See if This Mod Will Work on Your Phone

First up, you'll need to make sure this app will work with your particular device. To do that, start by plugging your phone into a charger. From there, open your favorite root file browser, then navigate to the /sys/class/power_supply/battery folder. Next, open the charging_enabled file with a text editor, delete the number 1, and then replace it with the number 0. When you're done there, save the file.

At this point, your phone should stop charging, so head to your battery menu to verify. If the device continues to charge, it's not compatible with this app.

Once you're done with this quick test, make sure to restart your phone. This will reset the number in the charging_enabled file back to 1.

Step 2: Install Battery Charge Limit

Now that you know your phone is compatible, it's time to install the app. To do that, grab the APK from the following link, then tap the Download complete notification and press "Install" when prompted.

Step 3: Set a Battery Charge Threshold

Next, open the app, then tap the "Change" button next to the Limit entry. From here, type in a percentage between 50 and 95 (this is when your battery will stop charging), then press the "Apply" button.

Toggle the Enable switch at the top of the screen, then Battery Charge Limit will ask for Superuser access, so tap "Grant" on the popup. Once you're done there, you're all set to go.

Step 4: Enjoy a Healthier Battery

From now on, you'll see an ongoing notification from Battery Charge Limit whenever you connect your phone to a charger. This is the only time the app runs in the background, so it doesn't have any impact on battery life. Then, once your battery hits the desired threshold, charging will immediately stop.

The app will keep the device from charging until the battery level falls by 3%, at which point it will temporarily allow charging again, then repeat this same cycle. Over time, this practice should lead to a more healthy and longer-lasting battery.

Who needs a wand? Unlock your magical powers and transform yourself from a Muggle into a Wizard or Witch just by using your Android phone. See how:

Cover photo and screenshots by Dallas Thomas/Gadget Hacks

12 Comments

Thanks for that.
Why not, though, just install the app, and see whether it works on not, instead of testing as shown?

exactly. my phone didn't even have the file, but I just tried the app and it worked perfectly fine!

OS - Android 4.4.4 Kitkat (Moto e (1st Gen)

Via downloaded FX File Explorer

/sys/class/power_supply/battery folder

Result: "File not found"

What do I do, I'm new to Android

Thanx

just try the app and see if it works. i also didnt have the file but the app works great!

On my phone the file name is slightly different ie mmi_charging_enable, but when i change to 0 my phone stop charging.

installed on Samsung S9+, no need root. No promptly supersu. Is it work?

thanks, but there is NO reason to first search for the file to check whether a device works or not. you can just install the app and check if it works. Now there are a lot of comment with people being confused.

Thanks for this app. On note 2 with custom ROM it does not work but will try on Note 10+ when I buy it soon.

I downloaded the app, set it to 85 and enabled it. When I woke up this morning my battery indicator said 100%. Did the battery charge to 100%, or did the indicator re-norm so that 85% is now considered full/100%? Thanks for your help!

For the Pixel 4a, the following control data setting works (charging switch):

Path Data: /sys/devices/platform/soc/ soc:google,charger/chargestoplevel
Enable Value: 0
Disabled Value: 1

Go to settings, toggle "Configurable CTRL File Data" on, tap "Configure Control Data" and enter the data above and click the update button.

Hope this helps someone!

Share Your Thoughts

  • Hot
  • Latest