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

Search This thread

undercover

Senior Member
Oct 10, 2010
14,726
4,441
London, UK
I have read the google devs opinion on this and I also have an understanding of what they are talking about, the battery in your phone is a bit of a weird one, andoid does it's best to estimate the condition of the battery charge and display it on a meter, the OS also reacts to this when it decides that your battery is flat and shuts the device down, is the battery really flat - is it really fully charged at 100% - that is the question, the OS does its best to estimate the charge state by building a profile of the battery from when it gets charged for the first time and then goes through a learning of charging cycles and discharges all the time building a profile. There is a theory that this profile gets messed up through time and starting the leaning cycle again may have benefits for some people and some devices, it could also go the other way.

so here is what happened to me

My xperia Z1 had a full battery drain and was charged when off, when I restated the phone it was at 100% but once it reached 50-55% it suddenly went down to 2% and gave me a warning that the battery was low, this went on for a while until I eventually fully charged it and deleted the batterystats.bin file then rebooted the phone, from that time I had no more issues..........until now


I updated to LP a couple of days ago and all was well until I rebooted the phone at about 80% battery, when it restarted I got an immediate warning that the battery was low and it was showing 2%, so it went from 83% to 2% over the time it takes for a reboot, now I am going to delete the stats.bin file again once fully charged but I have a feeling this is related to LP more than anything else but is hard to tell


The google people say that the process will not improve battery life which I would agree but it may just add some linearity to how the charge cycle is displayed and giving you a better more accurate idea of the true battery status. hardware changes as it gets older, a re-profile of the battery status may not be a bad thing
You didn't read all info, and missed the most important bit. That file gets wiped every time phone reaches 100%.
 

Geoffxx

Senior Member
Apr 2, 2013
545
82
You didn't read all info, and missed the most important bit. That file gets wiped every time phone reaches 100%.

wiped or modified ?


It could well be that this file is not going to alter the profile if the battery function, what I do know is that something changed in LP and has been reported on many forums and is experienced on many different devices including Nexus

My latest experience the other day was to have my phone shut down again going from about 80% charge to zero after a reboot, the phone was charged for 10mins and when rebooted was back at 80%, something is not right with this operation on LP, I also have 2x Z1 phones and both behave the same way since LP update

Interesting there are two Batterystats files with lightly different file names

What I believe to be the real problem here is how LP interprets the battery current and load and is being interpreted incorrectly Sony may have some code that sits between the LP layer and the Battery that is not calibrated correctly - just a guess

but there is definitely a problem and it is not the battery
 
  • Like
Reactions: EQ2000

tweakerjunior

Senior Member
Nov 4, 2014
160
41
The Hague
Hello guys,

Yesterday I installed a custom rom on my phone. After this my phone charge very slow ( when it not used). When I use the phone while it charge the batery drains. I just installed the app. Pressed the Calibration button and now I am waiting to a empty batery. Will it help or is there a other way ?
 

cancunia

Senior Member
Dec 21, 2013
100
12
Isn't this one? apkpure.com/battery-calibration/com.hc.batterycalibrator

Just downloaded this app. It asked for root permission which I didn't grant. I pressed the button to calibrate my battery and it seems to have solved the problem I had where my LG G5 would not charge beyond 98% on one of my batteries. After 10 mins on charge after running the app, my phone reported 100%. Somehow doubt that this is a coincidence. Really not sure why the app is so large or what else it does while running tho!
 
  • Like
Reactions: EEngineer

EEngineer

Senior Member
Oct 20, 2011
954
173
USA
T-Mobile LG G5
Just downloaded this app. It asked for root permission which I didn't grant. I pressed the button to calibrate my battery and it seems to have solved the problem I had where my LG G5 would not charge beyond 98% on one of my batteries. After 10 mins on charge after running the app, my phone reported 100%. Somehow doubt that this is a coincidence. Really not sure why the app is so large or what else it does while running tho!
I also have an LG G5. Thanks for your post.My G5 used to take a long time to charge from 98% to 100%.

I installed the Battery Calibration app. After charging to 100% I clicked Battery Calibration, then rebooted my phone, let it discharge to 5%, then charged to 100%. It seems to have solved that problem and improved my battery life.
 

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.;)