[APP][2.1+] Battery Calibration - EASIEST WAY! - Version 1.2 (10th April, 2011)

Search This thread

angelomaldito

Senior Member
May 26, 2011
299
70
Does it makes any difference if I'm alternating two batteries on my phone? (two samsung original GT-9100 batteries, one two months old and another brand new. In a laptop, if I'm not wrong, there's a chip inside the battery to measure its stats, I don''t think that my phone battery something like that, does it have? If the batteries are both of the same capacity and relatively new I don't need to calibrate with both batteries, right?
 

texasaggie1

Senior Member
Aug 10, 2004
765
265
OnePlus 7 Pro
OnePlus 9 Pro
Help! Phone will not charge or turn on!!!

Hi. I have an HTC Sensation. I used this program to calibrate after I got to 100% charge. I then unplugged the phone then ran the power out over the next several hours. Around 0% the phone died. Now when I hook it to a charger I get nothing... no lights, no charging, nothing. I've tried different chargers... nothing there either. If I take out the battery, then put it back in, then I get an orange LED light for about 5 seconds, then nothing....

Please help. Thanks :)
 

angelomaldito

Senior Member
May 26, 2011
299
70
Hi. I have an HTC Sensation. I used this program to calibrate after I got to 100% charge. I then unplugged the phone then ran the power out over the next several hours. Around 0% the phone died. Now when I hook it to a charger I get nothing... no lights, no charging, nothing. I've tried different chargers... nothing there either. If I take out the battery, then put it back in, then I get an orange LED light for about 5 seconds, then nothing....

Please help. Thanks :)
This is not a good sign. I've seen another similar thread http://xdaforums.com/showthread.php?p=15985764#post15985764 in which a guy with a galaxy s2 is having the same problem. Run out of battery and then the phone is dead. I don't think this is related to the calibration app. I would try to do two more things before going to a service centre:

- Try charging the battery with a battery charger, without the phone, or alternatively try another battery which has charge. This because It is possible that either your phone is not charging your battery for some reason, or your battery has died, not your phone.

- Try to put the phone in download mode with a USB jig. If it works, it means your phone is not dead.

Good luck
 

maatsby

Senior Member
Jun 2, 2011
760
519
Sydney
thanks for the app, it makes things much easier.

i'm just wondering if it will help with this problem: when my phone charges, the green led comes on at 90%, then the number jumps straight to 100%. i've calibrated once with the hope that it would fix this, but it didn't change anything.

i've attaached a pic of the battery graph. it's a bit hard to see, but the graph starts to flatten out as it approaches 90, then it's a straight line up to 100

any ideas?
 

Attachments

  • 20110807112343.png
    20110807112343.png
    27.2 KB · Views: 421

Tunay

Senior Member
Mar 14, 2010
300
10
www.youtube.com
Hi. I have an HTC Sensation. I used this program to calibrate after I got to 100% charge. I then unplugged the phone then ran the power out over the next several hours. Around 0% the phone died. Now when I hook it to a charger I get nothing... no lights, no charging, nothing. I've tried different chargers... nothing there either. If I take out the battery, then put it back in, then I get an orange LED light for about 5 seconds, then nothing....

Please help. Thanks :)

Do you have perma root and CMW? IT will not charge your battery when your phone is off.s
 

XuserJM

Member
Jul 23, 2011
49
2
What minimum mv values can I expect on a Desire S battery (standard - BA S530 - 1450 mAh - 3.7V) when I discharge down to 0%?

I have tried to calibrate several times and at 0% the mv value differs from anything between 3450 mv to 3680 mv?

Additionally, is the mv value of any importance in the regard of calibrating/optimizing the battery?

Thx :)
 

Lownita

Senior Member
Jun 14, 2011
2,278
378
Germany
Hey

Do I have to reboot the phone after running calibration? Also there are a lot complicated guides on how to calibrate (e.g. http://xdaforums.com/showpost.php?p=15450518&postcount=3 // http://theultralinx.com/2011/07/calibrate-androids-battery.html). Are they really neccessary or is it enough to follow the instructions in your app?
Also when draining the battery until the phone shuts down (after deleting stats), should it be used normal or can I just run some applications to use up battery fast?

Thanks!
 
Last edited:

XuserJM

Member
Jul 23, 2011
49
2
Hey

Do I have to reboot the phone after running calibration? Also there are a lot complicated guides on how to calibrate (e.g. http://xdaforums.com/showpost.php?p=15450518&postcount=3 // http://theultralinx.com/2011/07/calibrate-androids-battery.html). Are they really neccessary or is it enough to follow the instructions in your app?
Also when draining the battery until the phone shuts down (after deleting stats), should it be used normal or can I just run some applications to use up battery fast?

Thanks!

No, it shouldn't be necessary with a reboot since only the stat.file is erased and os creates a fresh within a short time.
Regarding the method of draining the battery... I have no evidence to back this up but I believe that I see a overall better battery performance if I choose to drain with normal use instead of pushing it.
Regarding the other guides I am blank...
 

marosige

Senior Member
Nov 7, 2008
120
311
Budapest
thanks for the app, it makes things much easier.

i'm just wondering if it will help with this problem: when my phone charges, the green led comes on at 90%, then the number jumps straight to 100%. i've calibrated once with the hope that it would fix this, but it didn't change anything.

i've attaached a pic of the battery graph. it's a bit hard to see, but the graph starts to flatten out as it approaches 90, then it's a straight line up to 100

any ideas?

I've never seen anything like this before. Sorry but I don't know, what the problem could be.

Sent from my Desire HD using Tapatalk
 

maatsby

Senior Member
Jun 2, 2011
760
519
Sydney
I've never seen anything like this before. Sorry but I don't know, what the problem could be.

Sent from my Desire HD using Tapatalk

No worries, thanks for the response. My battery is lasting long enough anyway at the moment so I guess I just won't worry about it.

Sent from my Desire HD using Tapatalk
 

tsktsk999

Senior Member
Feb 18, 2011
198
4
hi, my sensation is showing around 300-500mA when using, and 200+ when idling.

will i improve my battery if i calibrate using this ?

and is wiping batt stat using cwm and deleting batterystat.bin file referring to the same thing?

TIA
 
Last edited:

Vlad_z

Senior Member
Mar 25, 2011
506
178
The problem is that the batterystats.bin file is not that easy. I downloaded the source code of android, to check what does this file do exactly. But now all I know is that is not that simple. Try to calibrate it while you're watching current widget too till ypu got 0mA charging current.


Sent from my Desire HD using Tapatalk


@marosige,

Like I said before batterystats.bin is a serialized class which contains power usage information by various modules - that how Android OS derives statistics for battery usage screen.

Android power system is based on underline Linux power control system and information goes ONLY in one way from Linux battery driver up to Android OS...

And Linux battery driver gets its information from battery's fuel gauge chip.

There is NO WAY Android OS will register 4.2V as 100% and say 3.4V as 0% withing a fuel gauge chip which calculates, keep track and reports SOC (state of charge) of battery.

So, wiping batterystats.bin file is kind of woodoo magic in attempt to recalibrate that fuel gauge chip... I'm not attacking anyone but just sharing knowledge how it works, so no hard feelings.

Question how to do proper calibration? It all depends on what fuel gauge chip is used.

As an example my Galaxy Tab 10.1 is using bq20z75 fuel gauge chip by TI and proper calibration procedure is outlined here:

http://xdaforums.com/showthread.php?t=1215182


PS: speaking about having spare battery... if battery has build-in fuel gauge chip then there is no problem but in case of external chip there might be a problem.

bq20z75 chip stores charge/discharge cycle information internally and use it to adjust calculated capacity, probably no biggy if two batteries are the same capacity and the same age but it would completely through calibration Off in case if they are substantially different.
 

clouds5

Senior Member
Feb 8, 2011
1,933
512
Is it necessary to drain the battery to 0 everytime? I've read numerous times that draining the battery to 0 is not all that healthy for it^^ It can reduce maximum capazity.

Does anyone here know what actually happens and the exact reasons for the draining?
 

clouds5

Senior Member
Feb 8, 2011
1,933
512
Is it necessary to drain the battery to 0 everytime? I've read numerous times that draining the battery to 0 is not all that healthy for it^^ It can reduce maximum capazity.

Does anyone here know what actually happens and the exact reasons for the draining?

So i guess no one actually knows but everyone's doing it :D Interesting.

Anyway dont overdo it with draining your battery to 0 all the time. Li-ion based batteries dont like that and may lose capazity if you do it too much.
 

Vlad_z

Senior Member
Mar 25, 2011
506
178
So i guess no one actually knows but everyone's doing it :D Interesting.

Anyway dont overdo it with draining your battery to 0 all the time. Li-ion based batteries dont like that and may lose capazity if you do it too much.

It depends on fuel gauge chip... Old one which was simply tracking current in order to calculate SOC (state of charge) indeed required full cycle to calibrate and get rid of accumulated error.

New ones are using math model. They allow to derive SOC from say open circuit voltage when battery at rest and internal resistance, such models do not accumulate errors (at least in theory) and do not required full cycle. Full cycle usually wears battery more then shallow charge/discharge one.

Battery life usually counts in full cycles. If typical lipo will lasts 200 full cycles then 50% cycles might be 500 till battery will be at 80% of its rated capacity.
 

XuserJM

Member
Jul 23, 2011
49
2
It depends on fuel gauge chip... Old one which was simply tracking current in order to calculate SOC (state of charge) indeed required full cycle to calibrate and get rid of accumulated error.

New ones are using math model. They allow to derive SOC from say open circuit voltage when battery at rest and internal resistance, such models do not accumulate errors (at least in theory) and do not required full cycle. Full cycle usually wears battery more then shallow charge/discharge one.

Battery life usually counts in full cycles. If typical lipo will lasts 200 full cycles then 50% cycles might be 500 till battery will be at 80% of its rated capacity.

@Vlad_z, interesting comments you put in. Thx for sharing :)

But honestly I am a bit confused about all this battery calibration.
Say we are only talking about new Desire S batteries (assuming they use the math model) is there any way/trick to get more "juice" out of them using either a software calibration method or one of the "plug/unplug methods" mentioned in other threads in this forum?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 274
    Battery Calibration
    [APP] by marosige
    version 1.2​

    Requirements: Android 2.1+ | Root permissions

    Calibration needs to be done after flashing a new ROM, but you can calibrate any time you think your battery is miscalibrated. This program does it by removing the batterystats.bin system file. The OS generates a new clean batterystats file soon, thus any fake information from the previous ROM is removed.
    It's suggested, but not necessary, to let the phone fully discharge after calibration, then charged to 100% without break.

    The app shows your actual battery status, and only allows you to start the calibration (i.e. removes the file) when it's fully charged, unless you force earlier calibration.
    The voltage meter can be useful too. Full charge is around 4200mV.
    There is an option to beep when 100% is reached so you don't have to closley follow the changes.

    8ycqkx.jpg


    DOWNLOAD
    Those who had 1.1 or lower installed: you must uninstall before installing from the Market, or else it will say installation unsuccessful, package not signed.
    img.php


    I tried this and it WORKS! (Also works on HTC HD2 Nand version.)
    I'm not responsible for any damage or losses of any kind caused by the use or misuse of the program!


    ;)If you like this app, feel free to buy me a few beers ;)

    All donations are received with thanks!


    Thank you for donating:
    RaymondPJR
    Ramiro Doporto
    Sebastien Cau
    Robert Schmelz

    Change log:

    BatteryCalibration V.1.2 (10th April, 2011) - From Market
    • Option to beep when 100% is reached
    • Voltage meter added
    • New icon
    BatteryCalibration V.1.1 (9th April, 2011) - BatteryCalibration_v.1.1.apk
    • Runs on Android 2.1+ devices
    • Checks for compatibility
    • Added a switch to force earlier calibration
    BatteryCalibration V.1.0 (6th April, 2011) - BatteryCalibration.apk
    • Initial release
    • Runs on Android 2.2+ devices
    8
    What if the battery is not calibrated to begin with?

    You can delete batterystats.bin while its charging.

    Batterystats will get recreated if you were to unplug it.
    Otherwise, it get recreated at the boot logo before the animation.

    So you can delete it while it's charging, let it charge it up to 4200mV + 15 minutes or so.
    Leave it plugged in.
    Shut down, take out the battery, start it up and you get a battery screen with the ? and then pop the battery back in and it will show 60% at first and if it's fully charged, it will show 100% soon enough.

    Not sure if it works on other phones, but on droids and milestones you can boot the phone up without the battery.
    This way to calibrate is pretty cool.

    After deleting and charging, reboot phone normally but take the battery out before the logo and the phone keeps on booting.
    Then you pop the battery back in at the lock screen and you can monitor everything with battery monitor widget.

    Anyway, full guide in in my signature.
    4
    Let's back up this train for a moment, shall we? It is not a matter of opinion that this app cannot positively affect battery life or battery charge indication. It is a cut and dry fact that this app can have no real positive effect and following its outdated advice can actually be detrimental.

    Calibration needs to be done after flashing a new ROM, but you can calibrate any time you think your battery is miscalibrated.
    The file which this app wipes lies in the /data/system partition. When you flash a new rom, the partition is formatted and the new files are written to the partition. Thusly, the app does nothing that has not already been done.

    The second problem with the above statement is that level of charge reporting is a function of an integrated circuit on the battery itself. The lithium based batteries that are used in our devices sport their own internal fuel gauge. The level of charge that you see is pulled from the battery and deleting a random file on the device will not affect what's reported by it. Every so often, the battery's fuel gauge may go a percent or two off, although this has no effect on its operating time since the PMIC of the device uses the battery's voltage to determine when to shutdown.

    Okay then, since this app doesn't work to calibrate a battery and they may occasionally misreport, what is a user to do? The simple answer is just a single complete discharge/charge cycle. This is something you don't want to do too often, however- more on why later.

    This program does it by removing the batterystats.bin system file.
    Dianne Hackborn has weighed in on the myth of deleting batterystats.bin over a year ago. For those who do not know who she is, Mrs. Hackborn is Google's Android Framework Engineer. As she has been coding for Android since the AstroBoy, Bender and R2-D2 versions (early alphas that only saw internal release), I would tend to qualify her as a subject matter expert. Her direct quote...

    Today's myth debunking:

    'The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory.'

    No, it does not.

    This file is used to maintain, across reboots, low-level data about the kinds of operations the device and your apps are doing between battery changes. That is, it is solely used to compute the blame for battery usage shown in the "Battery Use" UI in settings.

    That is, it has deeply significant things like "app X held a wake lock for 2 minutes" and "the screen was on at 60% brightness for 10 minutes."

    It has no impact on the current battery level shown to you.

    It has no impact on your battery life.

    Deleting it is not going to do anything to make your more device more fantastic and wonderful... well, unless you have some deep hatred for seeing anything shown in the battery usage UI. And anyway, it is reset every time you unplug from power with a relatively full charge (thus why the battery usage UI data resets at that point), so this would be a much easier way to make it go away.

    There you have it- the one and only thing being deleted is merely a list of what has been consuming battery since last charge. The problem with this is that it hinders the causal user from troubleshooting what is actually may be causing undue battery drain.

    The OS generates a new clean batterystats file soon, thus any fake information from the previous ROM is removed.
    As stated, the file is automagically cleared by unplugging the device after charging. This makes the app doubly pointless. Further, if one flashes a new rom, the partition upon which the file resides has been formatted and rewritten. On that note, if you've been dirty flashing between roms, then the info in batterystats.bin will be the least of your worries.

    It's suggested, but not necessary, to let the phone fully discharge after calibration, then charged to 100% without break.
    This is where there be dragons. Complete discharge/charge cycles are not a best practice with lithium polymer batteries. They will shorten the overall lifespan of the battery as these batteries have a finite number of cycles in their lifetime. They may, although rarely, render the battery totally unusable. Additionally, some devices, such as the Nexus 7, will go into a sort of hibernation to prevent the battery from too deep a discharge after the point of shutdown. If this automatic protection is triggered, the device will not boot or charge until the protection is reset.

    That being said, there are situations where one may wish to intentionally perform a complete cycle, such as the aforementioned calibration of the battery's fuel gauge. I'd only advise it once every few months if you feel that your reported charge may not directly correlate to the battery's actual state.

    The app shows your actual battery status, and only allows you to start the calibration (i.e. removes the file) when it's fully charged, unless you force earlier calibration.
    Again, we come to the fact that the file in question is automagically wiped by Android anyway.

    The voltage meter can be useful too. Full charge is around 4200mV.
    Credit where credit is due for this factually accurate statement. Additionally, I'll concede that, at the time the OP created the app and started this thread, the groupthink was contrary from what we now know to be true

    There is an option to beep when 100% is reached so you don't have to closley follow the changes.
    Pointless, but that's neither here nor there at this point.


    When the OP created this app, the conventional wisdom was that, by virtue of its name, a file called batterystats.bin was obviously related to battery indication and that deleting it would wipe the slate clean and start users anew, so to speak. This is now widely known not to be the case. However, despite the facts, post hoc logical fallacies keep the fiction alive. It's high time the myth of battery calibration via deleting batterystats.bin be taken off life support and allowed to die.

    Some good introductory reads pertaining to the subject...
    https://plus.google.com/105051985738280261832/posts/FV3LVtdVxPT
    http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries
    http://batteryuniversity.com/learn/article/battery_calibration
    4
    got a problem with this one....my nexus s battery stops at 99% tried pulling charger out and in trick reboots etc nothing gets it up to 100% any ideas?
    I had the same problem when I first used my brand new batterey. It solved the problem when I fully discharged the batt. (the phone turned off) then when I charged it the phone showed 100% and I could run the app. Try this, if it's not working I willi figure out something else.
    3
    Thank's ,, 'must have' ulility.;)