How To Guide Make your phone use AC power instead of battery to prolong its life - Motorola Edge 30 Ultra / Motorola Moto X30 Pro

echo 1 > /sys/class/power_supply/battery/device/force_charging_disable
This command can make Motorola Edge 30 Ultra use AC power instead of battery when charging.
It is good practice to charge your phone to less than 80%, as overcharging can increase battery cycle more intensely.
An app called "Battery Charge Limit" was able to do that, so was a project acc. But they seem to unfit modern phones.
To recover, simply echo 0 > /sys/class/power_supply/battery/device/force_charging_disable

And, of course, you need root first

Related

[Q] Battery problem

Maybe a week ago my nexus start to shut down when battery reach 20%. I charged it and every time when my battery reach 20%, says that battery is empty and shut down...
I try to re-install my ROM - same, then i try with another - same, then try again with another - same!
Also i reset my battery stats from clockworkmod at fully charged battery, but guess what... same!
Also i noticed that when charging and it`s on 80-82% lock screen says that the phone is charged.
Next i reset again my battery stats, phone dies on 20% and i drain it leaving the phone in recovery mod. Then charge it. And when my phone reach this time 18% - shut down.
Help please, how to fix this strange bug or i don`t know what is it...
Battery monitor says that my battery age is 94% => Battery seems to be okay, but...who knows.
Even mine shuts down when its at 10 percent. You can try using Battery Dr Saver to calibrate your battery. I've used it and the results are near accurate. The battery percent goes down till 2 percent before it turns off. So you can try that.
https://play.google.com/store/apps/...sMSwxLDMsIm5ldC5sZXBlbmcuYmF0dGVyeWRvY3RvciJd
How to calibrate using this program, need i clear battery stats from clockwork?!
Click!
Okay i calibrated my battery and on first discharging my phone died on 0% but after charging, with every next discharge my phone dies on 20% ...
Again when charging rate reach 81% system tells me battery is charged. When die on 20% i boot in recovery and phone work for about a 30 min before dies shut down...
Again some ideas or help?
This is important:
St4hli said:
4.) Make the calibration permanent (thx to user "theGanymedes"):
Since the battery age value is somehow rewritten to 94% when you charge your phone whilst turned off, I recommend editing the full40 value accordingly. In order to do that, first start and successfully complete a learning cycle; and then reboot (or power on/off). After this, you shall see the age value of your battery (say XX%).
Now, you should calculate "real" mAh value using this:
Code:
REAL Capacity = "Real" Full40 Value (1452 in Stock etc.) x Age Percentage (0.XX)
Now, we must recalculate the "fake" Full40 value and write it to EEPROM, so that our battery will be always calibrated (even charged off):
Code:
"Fake" Full40 = Real Capacity / 0.94
First, we're setting the age back to 94% - it's because the phone does this when charged off anyway. Then write this new “fake” value to Full40 assignment area in the Learn Prep app in the application, press Save and you're done.. Congrulatulations, you just calibrated your battery, even when it's charged off. NOTE: Since some internal calculations also use Full40 value, I recommend you to write rounded to next value, rather than truncated.
5.) Didn’t work?:
Phone dies to early?:
That might be because some kernels do use a different power supply drivers, and these drivers don't update values so often as chip does. Try writing manually the value of "04" to register 0x10 when your battery reaches to 10% or so.
Learn Failure:
If your new age shows 94% upon rebooting, then learn mode failed and you need to do it again, paying close attention as charging nears 80% and above. This is where learn mode can be lost by rogue apps, auto-updates, calls, etc pulling the current down below the minimum prematurely.
Click to expand...
Click to collapse
Okay, will check it and i have another question: I use my phone for development and i connect it random to USB Debug (charging). Is this a problem, after learning complete off course? Will this affect on my battery stats and so?
And thanks for quick responses!
In my case, it doesn't affect it and shuts down at 0-1%. I calibrated some months ago and use both USB-charging and AC-charging.

[REF] Nexus 7 Nominal Battery Charging Report

Here is the way my WiFi N7 (rooted-) stock 4.2.2 battery behaves. I believe this to be a battery exhibiting nominal behavior. Perhaps this info will be useful to others for comparative purposes, when they ask the question, "what is normal when it comes to charging?".
- On the 2A OEM wall charger & OEM cable, charges from ~10% to 100% in ~ 2 hrs, 30 minutes.
- The exact same result (2 hrs 30 min) occurs independent of whether my N7 is completely off, or powered up but sleeping (screen off)*.
- Battery voltage at completion (100%) charge:
---- with AC adapter still plugged in: 4.193v
---- 30 sec after unplugging AC adapter: ~4.14v
- Misc battery curve points (during discharge):
97% 4.099v
93% 4.075v
89% 4.031v
80% 3.935v ( note approx 1% per 10 mV here )
78% 3.955v ( note hysteresis - this observed after 10 min of "sleep")
68% 3.867v
52% 3.764v
48% 3.757v
44% 3.735v
39% 3.711v ( note approx 1% per 5 mV here )
36% 3.707v
28% 3.684v
16% 3.638v
8% 3.538v
6% 3.528v
Other Notes:
- At the date of writing this, the tablet has been in service for 3 months of daily use; it was manufactured in Dec 2012.
- I do nothing special to the device in terms of a charging discipline; when I get done using the tablet, I put it on the charger. It sits there (on the 2A charger) 100% of the time when it is not in use. This means that it normally is idle at 100%, and gets recharged to full capacity from random discharge conditions - only rarely from a deep discharge condition.
- This thread is about charging and battery voltage range - NOT about discharging results under random operating conditions. *Having said that, it is important to point out that comparing charging rates between devices that are sleeping can be like comparing apples to oranges: the possibility of variable charging current available to the battery due to user-caused configuration differences (or cell signal power usage for 3G N7s) is quite high. IF YOU WANT TO FIND OUT IF YOU HAVE A BATTERY OR CHARGER ISSUE, TIME THE BATTERY CHARGING RATE WITH THE DEVICE TURNED COMPLETELY OFF - NOT BY "USING AN APP". Also, you should inspect the battery voltage range as well rather than relying on a "% charge" value; the former is an actual measured value and the latter is a computed (synthetic and thus possibly unreliable) value.
- battery charge % and voltages reported here are taken from values in the
/sys/devices/platform/tegra-i2c.4/i2c-4/4-0055/power_supply/battery/
folder
- If you watch the battery voltage behavior carefully during discharge, you will note that it does not drop monotonically; for instance, if you sleep the screen for a minutes or two and then check the battery voltage immediately after turning the screen back on you will find that the voltage has risen slightly - even though the "% charge" value may have gone down! Both of those observations are perfectly normal - the Li battery cell voltage will "rebound" after a prolonged drop in output current (even if you return to the same load condition), and to avoid confusing users, the "% charge" value reported monotonically decreases (within a reasonable hysteresis range).
Thanks
I have referred to this post many times to come up with a plan of attack to install my Nexus in my Dash of my car. I need some guidance if you have some input on the subject...
http://forum.xda-developers.com/nexus-7/help/nexus-7-grupper-battery-t3008184/post58306052#post58306052

[Q] Just bought my Moto X. Question about the first time charge.

So, the salesperson told me to fully use the current charge on the phone and then told me to charge it for 6 hours straight.
Now the 30% battery it had lasted for quite a while I fully discharged it, it turned off on its own.
Now it's been charging for 3 hours and it's already full. Should I leave it for the full 6 hours? or can I use it now?
I'm a bit anxious but I can wait if its better for the phone.
Thanks :laugh:
You're gonna get different answers with no scientific backing.
So here's the first: just do an extra 45 mins to an hour after it reaches 100%.
If you click the link in my sig and scroll to the bottom of that post you'll see my battery life which, is pretty decent.
Thanks
scorpion667 said:
You're gonna get different answers with no scientific backing.
So here's the first: just do an extra 45 mins to an hour after it reaches 100%.
If you click the link in my sig and scroll to the bottom of that post you'll see my battery life which, is pretty decent.
Click to expand...
Click to collapse
Thanks man
This is sheer non sense. Once the phone reaches 100 percent, the kernel cuts off the charging . What use would it be by charging it for another 45 hrs?
DaRkRhiNe said:
This is sheer non sense. Once the phone reaches 100 percent, the kernel cuts off the charging . What use would it be by charging it for another 45 hrs?
Click to expand...
Click to collapse
I second this. Charging batteries had specific charging instructions years ago, that no longer holds true. Just charge the phone and use it. it's not that big a deal.
It's just for calibrating the battery.
Let me just get this out of the way: most of the time it doesn't make a difference.
The only time it could (not always) make a difference is one of the following scenarios:
-phone sat for a long time while turned off (i.e before you purchase it)
-you hooked up your phone to the charger many times throughout one day and didn't allow it to hit 98-100% before you unplugged.
The battery has a chip built in [most lithium ion batteries have this because they are A) explosive and B) can kill you] which is responsable for a few things:
-"guessing" your current battery percentage based on the minimum and maximum recorded voltage value. For example let's assume a phone with a 5v battery shuts off at 3v. When that battery reaches 4v it will display 50% battery left.
-deciding what the shutoff voltage is. What I mean by this is let's say for example when your 5v battery reaches 3v at the end of the day, the chip decides it's time to shut off the phone and prompt you to charge it back to 5v
-constantly reading the the voltage in order to use that data to perform the decisions listed above
The voltage sensors in phones are, well, pretty bad due to the inherent space and power limitations. The voltage values swing back and forth between different values that are (sometimes) close to the actual value the battery is at. So the battery chip has to calculate an average based on all these voltage values. It then uses that data to do it's job, which is shutting down your phone when it needs to as well as display battery percentage.
So by leaving the phone in for a little longer after 100% once in a while, all you're doing is allowing the battery chip to collect more voltage readings in order to calculate the average more accurately. You're just doing it for the sake of sample size.
Realistically unless your battery is not calibrated, it doesn't really make a difference. But a phone that just came out of a sealed box is likely to need calibration depending on the manufacture date, or how long it "sat" for.
DaRkRhiNe said:
This is sheer non sense. Once the phone reaches 100 percent, the kernel cuts off the charging . What use would it be by charging it for another 45 hrs?
Click to expand...
Click to collapse
It may cut off charging..
But on my X (Dev for Verizon, stock and rooted), even after reaching 100%, the battery symbol still continues to show the "lightning bolt"/charging symbol. If I leave it connected to my Anker Astro 3, it continues to draw power until I unplug it.
@MrEndless, I agree with DaRkRhiNe and scorpion667. You're never going to get a straight answer.
Me, I ran mine down until the phone shut itself off, then charged it up to 100% and left it go over night and took it off the charger in the morning.
Once every few weeks, i do the same. Run it down until it shuts off and then put it on the charger and let it go until its been at 100% for a while. I never really say "xx minutes" or "xx hours" after 100%. It just depends on how long before I have to leave the house.

[GUIDE] Samsung Battery Calibration

Samsung Phone Battery Calibration Guide
Description:
This guide is for those who are experiencing battery issues (e.g., battery suddenly dying at percentages >1% or battery draining too fast or messed up battery readings after custom ROM flash). If your phone is relatively new, unless if it came with a factory defect or you somehow managed to physically damage it, the battery shouldn’t need to be calibrated like this.
Lithium-Ion batteries really do degrade over time (e.g., voltage sag, electron migration, possibility of dendrites even) at around 500 or so full charge-discharge cycles and as such, old batteries will NEVER perform as well as new ones despite how much calibration you try to perform. You CAN NOT improve battery life with calibration and what this serves to do is just to make the phone read more accurate battery percentages to prevent aforementioned battery related issues from occurring, especially when one flashes custom ROMS quite regularly.
Also, despite what many apps claim to do, this guide is actually more effective than those, at least based on personal experience, in actually performing battery calibration on Samsung devices since even apps that require root permissions only delete the batterystats.bin file after telling the user to charge to 100% after a drain to 0% and as explained below, this solely can not fix your problems nor really do anything to calibrate your battery on your phone so results from these types of apps are really a hit-or-miss affair to say the very least.
Requirements:
Samsung/TouchWiz/OneUI Based Firmware/ROM
Phone Dialer App
A Samsung Phone with a poorly performing inaccurate battery that isn't really required to be replaced yet
USSD Code *#0228# (For Battery Menu & Fuel Gauge Reset)
USSD Code *#9900# (For System Dump Menu & Battery Stats Bin Reset)
*Quick Reset is a built-in function exclusive to Samsung phones used by their tech & support to really calibrate phones that are reading very inaccurate battery percentages by resetting the battery fuel gauge (no app or script can do what this does as far as I know, at least for Samsung phones and it has been proven to be very effective at making the phone more accurately read how much the phone is using relative to maximum battery capacity and usage)
*Resetting batterystats.bin, while it does not really calibrate nor improve your battery like what a lot of people espouse, what it does do is reset the battery information file so that the phone would be "fresh" and the battery usage learning A.I. such as adaptive battery won't accidentally base its optimizations on your old "inaccurate" usage and battery performance
Method 1 (Best Method)
1. Drain Battery to 5%
2. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
3. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
4. Charge the device to 100% without interruptions
5. Turn off the phone then turn it on again then unplug it from the Charger
6. Repeat Steps 2-4 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
7. With the phone plugged in at 100%, go back to phone dialer and type *#9900# then scroll down to “batterystats.bin reset” and click it
8. Exit the SysDump Menu and reboot the phone
9. Repeat Steps 1-8 after a week
10. Enjoy More Accurate Battery Readings!
Method 2 (Quicker Alternative to Method 1)
1. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
2. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
3. Charge the device to 100% without interruptions
4. Repeat Steps 1-3 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
5. Repeat Steps 1-4 after a week
6. Enjoy More Accurate Battery Readings!
Method 3 (For Phones That Don’t Have the USSD Codes Mentioned Like Non-Samsung Phones)
1. Drain battery to 0%
2. Turn off the phone
3. Charge to 100% without interruptions
4. Turn on phone then if battery isn’t at 100%, charge until 100%
5. Unplug then reboot
6. If again the battery isn’t at 100%, charge until 100% then repeat as many times as necessary until 100% is 100% even after a reboot
7. Enjoy More Accurate Battery Readings!
Method 4 (Not Recommended and ONLY for EXTREMELY BAD cases of Battery Calibration)
1. Drain battery to 0%
2. Turn the phone back on
3. If it dies again, keep turning it on repeatedly until the boot logo/animation doesn’t show up anymore
4. Charge until 100% while the phone is off without interruptions
5. Turn on the phone
6. Enjoy More Accurate Battery Readings!
*Note that Methods 1 & 2, at least based on personal experience with Samsung phones, are the most effective ones while Method 3 is a more generic methodology that may work for non-Samsung phones as well. On the other hand, method 4 MAY POTENTIALLY hasten battery degradation if done too often so it isn’t really advised to do so unless if the phone has no USSD codes aforementioned even on its stock firmware and battery readings are already a mess.
*You can try to flash your latest stock firmware if the USSD codes aren’t supported by your current custom ROM (e.g., CM, LineageOS, Note7 Port, etc.) then perform Methods 1 or 2 then use the phone for a few charge-discharge cycles then go back and flash your preferred custom Recovery, ROM, Kernel, Vendor, API, Mods, Root, etc.…
*If any of the above methods do not seem to work, then your battery is basically waving goodbye at you…
Here are some notable Q&A's regarding the process:
Q: Is my 2+ year old battery going to improve after this process?
A: It's hard to say as it is dependent upon many different factors such as how you use your phone, how many times you run it down to 0%, how often you charge, etc.... In short, it may or may not work in your favor as by this point, you are usually up to your 1000th+ charge cycle and the degradation can be so much so as to warrant a battery replacement instead of any software-related methodologies such as the guide above.
Q: Is there a way to link certain mV readings of the battery to its charge percentage?
A: I'm afraid this is very difficult if impossible and impractical since battery voltage readings regularly fluctuate by significant amounts during use and when not in use, depending on the workload and current draw. As such, voltage readings shouldn't be your main basis, if at all, when calibrating your battery. Sure, the voltage readings do go down when your charge goes down, but from 100%-90% the voltage for Lithium Ion batteries could be 4.2v-4v, and for around 80%-40% it could be around 3.9v-3.7v so the voltage vis a vis charge percentage is non-linear and variable, therefore not feasibly linkable to charge percentage.
Q: Do you really need to wipe the battery stats bin file as the old saying goes?
A: No not really since it has already been debunked that wiping this particular file only wipes the battery usage information such as the one visible from device care or in the settings, not the max or min limits of the battery percentage or anything else of further use. I only specifically included it in this guide so that you could start monitoring your battery performance from scratch and not get confused with your old usage and battery performance, since adaptive technology that uses A.I. such as adaptive battery in newer Android versions base their decisions on your past usage and having your old usage there to base on wouldn't be recommended if you want a fresh start.
Q: Is bump charging (charging to 100% unplugging then charging back to 100% repeatedly) recommended?
A: It isn't incredibly bad to do once and a while, although personally I wouldn't recommended doing so often. This is because with bump charging, you are basically trying to bypass the maximum limitations set by the OEM's as to how much you can charge past "100%" since "100%" on the phone isn't really that, instead it is sometimes around 85%-95% in reality so that you are physically limited from normally charging your Li-Ion battery to true full since this is very bad for its performance, longevity, and goes against its recommended usage. The same principle applies to the phone's "0%" in which it isn't actually true 0% as allowing the user to reach this would mean battery death in which it's own circuitry would shut it off to the point that you cannot recharge it without special equipment.
Q: Why do I see many different ways to calibrate and use the battery fuel gauge reset technique?
A: This is because Samsung hasn't given any official statements nor guides regarding this tool since they only use it internally and why would they teach the public how to use it if the users can just send in their phones to their service centers and they can charge them as they see fit? Well, conspiracy aside, some batteries and phones react differently to certain methodologies in which some phones, after tapping the reset fuel gauge, would actually jump up in percentage instead of normally dropping down. Some can get stuck at a certain percentage and some won't. Additionally, different people interpret the way the fuel gauge reset works differently so different guides can tell you different ways to do it, correct or not. As an example, this guide may not be correct at all yet as long as it works to some extent based on personal experience, then I don't see the harm in trying.
Q: Why is my phone draining faster after doing this fuel gauge reset?
A: It may be because the intent for resetting the gauge is so that it could try to figure out on its own more accurate readings and initially, at least for the first three charge-discharge cycles or so, it is still finding out if the battery should be at this percentage or that percentage. It is sort of like training itself but it should settle down after a few full charges and discharges.
Q: Can I trust battery health apps even if they request root access?
A: This can make them seem legit, but most of the time their effects are negligible at best. Take what they advertise with a grain of salt always. This is since no app can ever truly determine actual battery health and you usually need hardware tools for that since even Android can only say "Good" under battery health and no further details whatsoever.
Q: When I buy a new battery, is it actually new and better?
A: This depends on whether the battery you got was manufactured recently or back when your phone was still in the market. Remember that batteries degrade even when not in use and when stored, so always check the manufacture date of your battery and also check if it isn't some cheap Chinese knock-off imitation (fire-hazard beware!). If you aren't sure, just let Samsung deal with the battery replacement, albeit more costly.
Q: For the J7 Prime specifically, how good can I expect the battery to be?
A: As a long-time owner of this device as long as it first came out in early 2017, I could say that when you have installed recent Android versions through custom ROMS, like Android 9 Pie to Android 10 Q, the battery drain can be much more significant than it was back when it was specially on Android 6 MM since there are a lot more processes, app updates designed for more powerful phones, A.I. technology in the background, and new ways by which the OS works in general so it is tailored for newer and better devices and making it work on this relatively old phone is like running Windows 10 with all its features on a kid's computer from the 90's. Generally, with mixed usage, the phone can last you through the day with a single charge in the morning, with around 3-4 hours of screen on time. When gaming or streaming, SOT can be around 2-3 hours. Standby drain is noticeably worse on newer versions of Android as well. Back on marshmallow, the device can last around 2 days on mixed usage with 4-6 hours screen on time and very insignificant standby drain. Also, note that the device was newer back then so there's that.
Q: Can certain ROMS affect battery performance?
A: Absolutely! I've used unofficial CyanogenMod ROMS back then on my older phones and the battery drain was horrendous with around 2 hours battery life on standby and around 30 minutes or so of SOT! It all depends on how well optimized the ROMS are for the device so always check the feedback and developer's notes before installing any new custom ROM around here.
Q: Why is my phone battery percentage different in TWRP or OrangeFox Recovery than it is inside the OS?
A: This can happen on some devices such as the J7 Prime and other devices from other manufacturers even. I do not know for sure why, but it could be (1), either the recovery or the OS is delayed in reading the correct battery percentage and are out of sync, (2) a bug with the recovery or is device-specific, or (3) the battery needs calibration, although this last one isn't usually the case for phones such as the J7P where this "difference" could appear from time to time even when the battery is already well calibrated.
Thank you for that guide! I used it to calibrate my A70 Battery (4000 mAh) which i use in my A7 2018 (original 3000 mAh). I did the second method and had to do the 3 steps about 7 times. I had to restart my phone after every try to get my real percentage, it usually jumped from 100% fully charged to 65%.
Mightx said:
Samsung Phone Battery Calibration Guide
Description:
This guide is for those who are experiencing battery issues (e.g., battery suddenly dying at percentages >1% or battery draining too fast or messed up battery readings after custom ROM flash). If your phone is relatively new, unless if it came with a factory defect or you somehow managed to physically damage it, the battery shouldn’t need to be calibrated like this.
Lithium-Ion batteries really do degrade over time (e.g., voltage sag, electron migration, possibility of dendrites even) at around 500 or so full charge-discharge cycles and as such, old batteries will NEVER perform as well as new ones despite how much calibration you try to perform. You CAN NOT improve battery life with calibration and what this serves to do is just to make the phone read more accurate battery percentages to prevent aforementioned battery related issues from occurring, especially when one flashes custom ROMS quite regularly.
Also, despite what many apps claim to do, this guide is actually more effective than those, at least based on personal experience, in actually performing battery calibration on Samsung devices since even apps that require root permissions only delete the batterystats.bin file after telling the user to charge to 100% after a drain to 0% and as explained below, this solely can not fix your problems nor really do anything to calibrate your battery on your phone so results from these types of apps are really a hit-or-miss affair to say the very least.
Requirements:
Samsung/TouchWiz/OneUI Based Firmware/ROM
Phone Dialer App
A Samsung Phone with a poorly performing inaccurate battery that isn't really required to be replaced yet
USSD Code *#0228# (For Battery Menu & Fuel Gauge Reset)
USSD Code *#9900# (For System Dump Menu & Battery Stats Bin Reset)
*Quick Reset is a built-in function exclusive to Samsung phones used by their tech & support to really calibrate phones that are reading very inaccurate battery percentages by resetting the battery fuel gauge (no app or script can do what this does as far as I know, at least for Samsung phones and it has been proven to be very effective at making the phone more accurately read how much the phone is using relative to maximum battery capacity and usage)
*Resetting batterystats.bin, while it does not really calibrate nor improve your battery like what a lot of people espouse, what it does do is reset the battery information file so that the phone would be "fresh" and the battery usage learning A.I. such as adaptive battery won't accidentally base its optimizations on your old "inaccurate" usage and battery performance
Method 1 (Best Method)
1. Drain Battery to 5%
2. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
3. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
4. Charge the device to 100% without interruptions
5. Turn off the phone then turn it on again then unplug it from the Charger
6. Repeat Steps 2-4 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
7. With the phone plugged in at 100%, go back to phone dialer and type *#9900# then scroll down to “batterystats.bin reset” and click it
8. Exit the SysDump Menu and reboot the phone
9. Repeat Steps 1-8 after a week
10. Enjoy More Accurate Battery Readings!
Method 2 (Quicker Alternative to Method 1)
1. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
2. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
3. Charge the device to 100% without interruptions
4. Repeat Steps 1-3 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
5. Repeat Steps 1-4 after a week
6. Enjoy More Accurate Battery Readings!
Method 3 (For Phones That Don’t Have the USSD Codes Mentioned Like Non-Samsung Phones)
1. Drain battery to 0%
2. Turn off the phone
3. Charge to 100% without interruptions
4. Turn on phone then if battery isn’t at 100%, charge until 100%
5. Unplug then reboot
6. If again the battery isn’t at 100%, charge until 100% then repeat as many times as necessary until 100% is 100% even after a reboot
7. Enjoy More Accurate Battery Readings!
Method 4 (Not Recommended and ONLY for EXTREMELY BAD cases of Battery Calibration)
1. Drain battery to 0%
2. Turn the phone back on
3. If it dies again, keep turning it on repeatedly until the boot logo/animation doesn’t show up anymore
4. Charge until 100% while the phone is off without interruptions
5. Turn on the phone
6. Enjoy More Accurate Battery Readings!
*Note that Methods 1 & 2, at least based on personal experience with Samsung phones, are the most effective ones while Method 3 is a more generic methodology that may work for non-Samsung phones as well. On the other hand, method 4 MAY POTENTIALLY hasten battery degradation if done too often so it isn’t really advised to do so unless if the phone has no USSD codes aforementioned even on its stock firmware and battery readings are already a mess.
*You can try to flash your latest stock firmware if the USSD codes aren’t supported by your current custom ROM (e.g., CM, LineageOS, Note7 Port, etc.) then perform Methods 1 or 2 then use the phone for a few charge-discharge cycles then go back and flash your preferred custom Recovery, ROM, Kernel, Vendor, API, Mods, Root, etc.…
*If any of the above methods do not seem to work, then your battery is basically waving goodbye at you…
Click to expand...
Click to collapse
Hello, I followed the first method for my tab S4, it was shutting down instantly as soon as it reached 15- 20 %. but it happened sometimes, not everyday.
So I did as you told in the first method, but I think I probably messed up somewhere, Now what is happening is, as soon as it reaches above 60% during charging, it slows down to like how it slowly charges when above 90%.
Battery backup is as same as before, so that it means its reading 65% as 100%.
How can I rectify it, battery is getting fully charged as 65 - 70%.
How can I reset the gauge again so that it shows correct percentage.
kingrohan said:
Hello, I followed the first method for my tab S4, it was shutting down instantly as soon as it reached 15- 20 %. but it happened sometimes, not everyday.
So I did as you told in the first method, but I think I probably messed up somewhere, Now what is happening is, as soon as it reaches above 60% during charging, it slows down to like how it slowly charges when above 90%.
Battery backup is as same as before, so that it means its reading 65% as 100%.
How can I rectify it, battery is getting fully charged as 65 - 70%.
How can I reset the gauge again so that it shows correct percentage.
Click to expand...
Click to collapse
Try repeating the procedure again. It might work it might not. Sometimes phones might read way off so try again. Drain it then repeat steps
Rakeshrh said:
J7 nxt efs folder send me
Click to expand...
Click to collapse
you'd someone else's imei number if they gave you their efs folder.
I am not sure about this but I think I found a method to skip step 6. and immediately get 100%.
You just have to download an app like AccuBattery or something similar and look for "charge current". I noticed that when my phone reached 100% the charge current was still very high for like 20 minutes or so and after that it dropped to a low value near 0 indicating that the battery was full. If the app is legit than you could use this method to charge the phone to your real 100%.
I quick started once after this method and the phone was still at 100%.
Emre67511 said:
I am not sure about this but I think I found a method to skip step 6. and immediately get 100%.
You just have to download an app like AccuBattery or something similar and look for "charge current". I noticed that when my phone reached 100% the charge current was still very high for like 20 minutes or so and after that it dropped to a low value near 0 indicating that the battery was full. If the app is legit than you could use this method to charge the phone to your real 100%.
I quick started once after this method and the phone was still at 100%.
Click to expand...
Click to collapse
Yes the voltage and current stay a bit high as if it were plugged in even though it is not and that is for a few minutes or so, but after that it would normally drop to more or less its "actual" readings unplugged. Personally can't vouch for accubattery and the like, but any app that reads the sensor that is responsible for battery voltage and current should more or less be the one to look at, of course different apps might poll differently so updating the info might take time and there may be variances but if using apps like these help in determining when the battery is at around 100%, then sure you could use this method.
Mightx said:
Samsung Phone Battery Calibration Guide
Description:
This guide is for those who are experiencing battery issues (e.g., battery suddenly dying at percentages >1% or battery draining too fast or messed up battery readings after custom ROM flash). If your phone is relatively new, unless if it came with a factory defect or you somehow managed to physically damage it, the battery shouldn’t need to be calibrated like this.
Lithium-Ion batteries really do degrade over time (e.g., voltage sag, electron migration, possibility of dendrites even) at around 500 or so full charge-discharge cycles and as such, old batteries will NEVER perform as well as new ones despite how much calibration you try to perform. You CAN NOT improve battery life with calibration and what this serves to do is just to make the phone read more accurate battery percentages to prevent aforementioned battery related issues from occurring, especially when one flashes custom ROMS quite regularly.
Also, despite what many apps claim to do, this guide is actually more effective than those, at least based on personal experience, in actually performing battery calibration on Samsung devices since even apps that require root permissions only delete the batterystats.bin file after telling the user to charge to 100% after a drain to 0% and as explained below, this solely can not fix your problems nor really do anything to calibrate your battery on your phone so results from these types of apps are really a hit-or-miss affair to say the very least.
Requirements:
Samsung/TouchWiz/OneUI Based Firmware/ROM
Phone Dialer App
A Samsung Phone with a poorly performing inaccurate battery that isn't really required to be replaced yet
USSD Code *#0228# (For Battery Menu & Fuel Gauge Reset)
USSD Code *#9900# (For System Dump Menu & Battery Stats Bin Reset)
*Quick Reset is a built-in function exclusive to Samsung phones used by their tech & support to really calibrate phones that are reading very inaccurate battery percentages by resetting the battery fuel gauge (no app or script can do what this does as far as I know, at least for Samsung phones and it has been proven to be very effective at making the phone more accurately read how much the phone is using relative to maximum battery capacity and usage)
*Resetting batterystats.bin, while it does not really calibrate nor improve your battery like what a lot of people espouse, what it does do is reset the battery information file so that the phone would be "fresh" and the battery usage learning A.I. such as adaptive battery won't accidentally base its optimizations on your old "inaccurate" usage and battery performance
Method 1 (Best Method)
1. Drain Battery to 5%
2. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
3. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
4. Charge the device to 100% without interruptions
5. Turn off the phone then turn it on again then unplug it from the Charger
6. Repeat Steps 2-4 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
7. With the phone plugged in at 100%, go back to phone dialer and type *#9900# then scroll down to “batterystats.bin reset” and click it
8. Exit the SysDump Menu and reboot the phone
9. Repeat Steps 1-8 after a week
10. Enjoy More Accurate Battery Readings!
Method 2 (Quicker Alternative to Method 1)
1. Open phone dialer and type *#0228# then click “Quick Start” then press “OK” when the warning prompt comes up (note that this won’t work if you are plugged in still so unplug first before attempting to run this USSD code)
2. Wait for phone screen to turn on again and notice your battery percentage (it should have gone down to your actual battery percentage)
3. Charge the device to 100% without interruptions
4. Repeat Steps 1-3 for around 3 more times (after approximately the third time, battery readings should be leveled out and it should read 100% even after pressing quick start; if not, repeat a few more times and if it still won’t level out then that means your battery is yearning for a replacement)
5. Repeat Steps 1-4 after a week
6. Enjoy More Accurate Battery Readings!
Method 3 (For Phones That Don’t Have the USSD Codes Mentioned Like Non-Samsung Phones)
1. Drain battery to 0%
2. Turn off the phone
3. Charge to 100% without interruptions
4. Turn on phone then if battery isn’t at 100%, charge until 100%
5. Unplug then reboot
6. If again the battery isn’t at 100%, charge until 100% then repeat as many times as necessary until 100% is 100% even after a reboot
7. Enjoy More Accurate Battery Readings!
Method 4 (Not Recommended and ONLY for EXTREMELY BAD cases of Battery Calibration)
1. Drain battery to 0%
2. Turn the phone back on
3. If it dies again, keep turning it on repeatedly until the boot logo/animation doesn’t show up anymore
4. Charge until 100% while the phone is off without interruptions
5. Turn on the phone
6. Enjoy More Accurate Battery Readings!
*Note that Methods 1 & 2, at least based on personal experience with Samsung phones, are the most effective ones while Method 3 is a more generic methodology that may work for non-Samsung phones as well. On the other hand, method 4 MAY POTENTIALLY hasten battery degradation if done too often so it isn’t really advised to do so unless if the phone has no USSD codes aforementioned even on its stock firmware and battery readings are already a mess.
*You can try to flash your latest stock firmware if the USSD codes aren’t supported by your current custom ROM (e.g., CM, LineageOS, Note7 Port, etc.) then perform Methods 1 or 2 then use the phone for a few charge-discharge cycles then go back and flash your preferred custom Recovery, ROM, Kernel, Vendor, API, Mods, Root, etc.…
*If any of the above methods do not seem to work, then your battery is basically waving goodbye at you…
Click to expand...
Click to collapse
hello i have followed the 1st and 2nd Method for my s9 plus phone because my phone drain to 5 percent in a blink after it reach 15-20 percent or even dead... but when i used the code *#0228# my battery percentage didn't change at all and the both method didn't fix the problem at all... i have suffer this issue since 3 months ago, do you have any suggestion? thanks
jonatpd said:
hello i have followed the 1st and 2nd Method for my s9 plus phone because my phone drain to 5 percent in a blink after it reach 15-20 percent or even dead... but when i used the code *#0228# my battery percentage didn't change at all and the both method didn't fix the problem at all... i have suffer this issue since 3 months ago, do you have any suggestion? thanks
Click to expand...
Click to collapse
As I have mentioned in the guide, when none of these work and you are sure that you followed each one correctly, then sadly it might be time to replace your battery. If for some reason a battery replacement still doesn't fix it (which in most cases it should), then it might be your circuit board in charge of power management and charging that may be faulty, although in most cases battery replacement alone does the trick.
Hello everyone. I have a question for you all. So, got a new phone a few weeks ago and I've noticed lately that after I charge it from, let's say around 10% to 100% and unplug it a minute or two after it reaches 100%, it stays on 100% for longer than it should. It stays on 100% for at least 15-20 minutes of active screen on use (no matter how I use my phone it stays on that 100% for quite some time), and after that the next few percent fall down quicker than they should - for an example after that initial 100% drains to 99, every 1% drains within 3-5 minutes of Screen on use until it reaches the 90-91 mark. When it reaches 90% it looks like it starts to function and drain normally. So my question here is: Can this calibration be off on such a new device?
Thanks in advance.
@Mightx I have a question
I bought a new 'replacemant' battery for my Galaxy S2. I still didn't put it in the phone.What would be the proper steps for starting with new battery? Should I look for a way to delete that 'batterystats.bin' (if such thing exist, on a LineageOS 14.1 which I'm using now)?
And... (since I don't know)... if I insert a new battery and (proabably) its not fully charge. Lets say ...what if its 66% charged? Should I charge it first to 100% before I starting using the battery, or should I discharge it from 66% to...zero? or 5%?
I don't know honestly what to think. On my tablet I installed an app (AccuBattery) and it warn me everytime my batter reached 85% and telling me to remove the charger. So...I'm kinda lost. I want to start using a new replacemant battery the propper way, but I have no clue what that 'propper' way is.
Can someone help please?
Thanks!
Hello.
Thanks for posting this guide.
My battery calibration issue is different to anything I've seen before. I had the usual battery problems and got a replacement battery fitted. My current problem is that the battery has more charge than the phone realises (which is the opposite of the usual problem one tends to see with a bad battery).
The battery level falls quickly from 100% down to 1% at a rate of about 10% per hour. But then it stays at 1% for AGES! Even if I leave a video running on YouTube on maximum brightness. So there's plenty of milliamps in there, it's just that the phone doesn't realise this.
I tried following methods 1 and 3 but the problem is still there.
Any suggestions? Thanks in advance.
You will need superuser rights to properly calibrate the battery. We discharge the battery to 1%, then connect the switched on phone to the switched on charger and charge up to 100%. Not turning off
vukman02 said:
Hello everyone. I have a question for you all. So, got a new phone a few weeks ago and I've noticed lately that after I charge it from, let's say around 10% to 100% and unplug it a minute or two after it reaches 100%, it stays on 100% for longer than it should. It stays on 100% for at least 15-20 minutes of active screen on use (no matter how I use my phone it stays on that 100% for quite some time), and after that the next few percent fall down quicker than they should - for an example after that initial 100% drains to 99, every 1% drains within 3-5 minutes of Screen on use until it reaches the 90-91 mark. When it reaches 90% it looks like it starts to function and drain normally. So my question here is: Can this calibration be off on such a new device?
Thanks in advance.
Click to expand...
Click to collapse
I mean, you could try if calibration does anything in your case. But I suppose that's more or less normal behavior since at very high battery percentages (beyond 90%), the software on your phone has a harder time figuring out how much juice is still remaining so the draining seems to slow down at the higher percentages and tends to speed up at the lower percentages (below 40%), which in net effect just gives you the same battery life just like if your phone were to drain evenly across all percentage levels. So imo, you shouldn't worry much about it.
the_new_mr said:
Hello.
Thanks for posting this guide.
My battery calibration issue is different to anything I've seen before. I had the usual battery problems and got a replacement battery fitted. My current problem is that the battery has more charge than the phone realises (which is the opposite of the usual problem one tends to see with a bad battery).
The battery level falls quickly from 100% down to 1% at a rate of about 10% per hour. But then it stays at 1% for AGES! Even if I leave a video running on YouTube on maximum brightness. So there's plenty of milliamps in there, it's just that the phone doesn't realise this.
I tried following methods 1 and 3 but the problem is still there.
Any suggestions? Thanks in advance.
Click to expand...
Click to collapse
I've experienced this before both with a battery going bad and a phone with a good battery still but with faulty power delivery circuitry. You could try all the mentioned methods to try and see if calibration does anything to solve your issue, but if all these fail, then it may be time to send in your phone for repairs since you mentioned that your battery is new anyways so it may be something wrong with the power delivery.
Mightx said:
I mean, you could try if calibration does anything in your case. But I suppose that's more or less normal behavior since at very high battery percentages (beyond 90%), the software on your phone has a harder time figuring out how much juice is still remaining so the draining seems to slow down at the higher percentages and tends to speed up at the lower percentages (below 40%), which in net effect just gives you the same battery life just like if your phone were to drain evenly across all percentage levels. So imo, you shouldn't worry much about it.
Click to expand...
Click to collapse
Thanks for the reply. Yeah I figured after a while that it's probably alright since my phone's not dying at around 10% left or just starts discharging super fast.
Hey! Afew days ago I replaced the battery in the S10 +, do I need to do a battery calibration or can I skip it? or only factory reset?
dafii said:
Hey! Afew days ago I replaced the battery in the S10 +, do I need to do a battery calibration or can I skip it? or only factory reset?
Click to expand...
Click to collapse
Usually you just use your phone normally and it should automatically settle after a few charge-discharge cycles. In this case, you can skip manual calibration.
r3actor said:
@Mightx I have a question
I bought a new 'replacemant' battery for my Galaxy S2. I still didn't put it in the phone.What would be the proper steps for starting with new battery? Should I look for a way to delete that 'batterystats.bin' (if such thing exist, on a LineageOS 14.1 which I'm using now)?
And... (since I don't know)... if I insert a new battery and (proabably) its not fully charge. Lets say ...what if its 66% charged? Should I charge it first to 100% before I starting using the battery, or should I discharge it from 66% to...zero? or 5%?
I don't know honestly what to think. On my tablet I installed an app (AccuBattery) and it warn me everytime my batter reached 85% and telling me to remove the charger. So...I'm kinda lost. I want to start using a new replacemant battery the propper way, but I have no clue what that 'propper' way is.
Can someone help please?
Thanks!
Click to expand...
Click to collapse
After a battery replacement, just use the phone normally and after a few charge-discharge cycles, it should automatically settle down and start running normally. In this case, you don't need to go through manual calibration.

General [Battery Longevity] Tips to prolong battery longevity and minimize degradation (Charge Limiter)

Introduction:
Car companies like Tesla ensure that their battery cells last for several years without degrading the mileage of their electric vehicles. Why should our phones not have the same safeguards to ensure a long lasting battery longevity helping us enjoy our phones longer while saving the environment by reducing waste and avoid filling landfills with perfectly functional phones albeit with severely degraded batteries just as they get out of warranty or some well before their designed lifespan.
How can I ensure that my batteries last as long as the phone's 3+ year supported lifespan?
Charging routines that are set-it-and-forget-it while allowing one to charge to full capacity only when crucial.
( Note to kernel developers: Please support battery-idle mode whenever the hardware is capable, and highlight this as a major feature)
Devices that support battery-idle mode will prolong the battery longevity the most because the phone can power everything from the charger instead of wasting battery cycles and degrading its health. While custom kernels are built to take full advantage of this feature, battery health can still be prolonged on stock kernel with tools that monitor and control the charging without human intervention.
Steps for devices with kernels that dont support battery-idle mode yet:
1. Root your device using Magisk
2. Search for magisk module called accd (Advanced Charge Controller)
3. Install the helper app mentioned on the module github https://github.com/VR-25/acc
4. Configure the maximum allowable charge level to maximum 80% and to restart if and when level drops to 75%
thanks. that's usable information.
Hi
after installing this
I restart my phone
in first time its boot and crash after full load up
in second time try to load it up and its stuck on MIUI logo
not turn on..
Right now I wipped all my phone
try agian

Categories

Resources