[TIP] Battery Re-callibration

Nick7

Brick Master
Dec 3, 2010
1,038
951
0
My battery meter got boned after countless ROM flashes and hacks. Luckily re-calibrating the battery is super easy.

*This is not for everyone. If your phone boots up after a full nights charge to something under 100%, drains battery significantly during light usage, or sticks on a certain percent for an abnormal amount of time, this fix will benefit you.*

Instructions:

1. Power off your phone and charge it until the battery is full (the LG battery meter will say, just tap power once to check).
2. Once your battery is full, boot into recovery.
3. Use the Android SDK to ADB shell and run the following command.
Code:
rm /data/system/batterystats.bin
4. Unplug the charger and reboot your phone.
5. Run the phone UNTIL IT DIES. No charging until then!
6. Your battery meter has been effectively calibrated!

Enjoy!

P.S. If you were wondering why your new phone shipped with low battery, this is why! The battery was calibrated and then re-charged just enough to get it running for the customer.

Well this is just an assumption. Maybe there are other reasons..
 
Just don't fully discharge the Li-On battery it too often:

"A lithium-ion battery provides 300-500 discharge/charge cycles. The battery prefers a partial rather than a full discharge. Frequent full discharges should be avoided when possible. Instead, charge the battery more often or use a larger battery. There is no concern of memory when applying unscheduled charges."

batteryuniversity.com

PS: The custom recovery also has an option to reset the battery. Doesn't that do the same?
 
Yes, but it is useful to know where the phone saves it's battery statistics. Also one discharge won't kill ya.
 
i found out that with thunderc custom recovery you can reset it without a computer it under either wipe, or other.
 
I have a question,

What happens if you were to say flash a new rom with a fully charged battery, does it mean that you SHOULDN'T charge it till it goes completely down? Because when flashing a new rom it gets rid of /data/system anyway. Also, should we make flashing a new rom with a fully charged battery more of a prereq for better battery life for our phone?
I notice that if I have a fully charged battery, wipe /data/system/batterystats.bin my battery lasts incredibly long, but once I fully charge it the way it is supposed to be, it goes right back to my normal crappy battery life. Any ideas?
 
Last edited:
I have a question,

What happens if you were to say flash a new rom with a fully charged battery, does it mean that you SHOULDN'T charge it till it goes completely down? Because when flashing a new rom it gets rid of /data/system anyway. Also, should we make flashing a new rom with a fully charged battery more of a prereq for better battery life for our phone?
I notice that if I have a fully charged battery, wipe /data/system/batterystats.bin my battery lasts incredibly long, but once I fully charge it the way it is supposed to be, it goes right back to my normal crappy battery life. Any ideas?

1. nothing happens if you were to flash with a fully charged bat, same thing happens as when you flash a rom with 8% battery, you just flash the rom.

2. a post above just said, do NOT let our battery get low too often.

3. your battery has a small chip in it which monitors temp, charge level, and a few other things i'm too tired to name off.

4. Having a fully charged battery is 101 for any kind of updating/flashing of anything through recovery. Basically if you have to do it in recovery make sure your battery wont die before you're done, more so make sure your battery is fully charged.

5. check out your battery use, think it in about phone, and see what the biggest consumer of your battery is. if cell standby is about i think common consensus is ~35%/40% you probably have a radio problem thats a quick fix, can remember how to access the hidden menu but theres a menu to access from dialer that will let you fix that. It's actually why i got on tonight.
 
so i need some help doing this, when i try to SU after ADB shell to my phone when it is in recovery mode this is what happens

~ # su
su
/sbin/sh: su: not found
~ #

and with out accessing my phone as root i cannot get at the /data/system/batterystats.bin file to remove it so i can recalibrate my battery.

i went through are re installed and CHMOD'd the su and busybox bin files still no dice, what am i missing?

EDIT: I am able to get root access through shell when my phone is booted up completely and not in recovery mode.
 
so i need some help doing this, when i try to SU after ADB shell to my phone when it is in recovery mode this is what happens

~ # su
su
/sbin/sh: su: not found
~ #

and with out accessing my phone as root i cannot get at the /data/system/batterystats.bin file to remove it so i can recalibrate my battery.

i went through are re installed and CHMOD'd the su and busybox bin files still no dice, what am i missing?

EDIT: I am able to get root access through shell when my phone is booted up completely and not in recovery mode.

I only recalibrated my battery once but the way i did it was charge it all the way up boot into recovery wipe battery stats, rebooted, unpluged from power, and played with it until it died.
 
I only recalibrated my battery once but the way i did it was charge it all the way up boot into recovery wipe battery stats, rebooted, unpluged from power, and played with it until it died.

Ohh well there you got that is probably the same thing as deleting that bin file, thanks I'll give that a go.

Sent from my Nonamed LS670 using Tapatalk
 
You don't need to be in recovery in order to perform these steps. As a matter of fact, this command sequence is meant to be run from a running phone (not in recovery).

If your phone is in recovery, you are already root, but none of your file systems are are mounted. You will have to mount them first. ("mount /system" and "mount /data").
But if you are already in recovery and have CWM, you can just use the menu to wipe battery stats.

so i need some help doing this, when i try to SU after ADB shell to my phone when it is in recovery mode this is what happens

~ # su
su
/sbin/sh: su: not found
~ #

and with out accessing my phone as root i cannot get at the /data/system/batterystats.bin file to remove it so i can recalibrate my battery.

i went through are re installed and CHMOD'd the su and busybox bin files still no dice, what am i missing?

EDIT: I am able to get root access through shell when my phone is booted up completely and not in recovery mode.
 
Just wipe battery stats from recovery. But first charge it all the way and as a super smart developer told me.. bump charge it all the way too. Then u should have Max battery. :) I'm doing this today
 
Its been 2 days now and my battery has been lasting much longer. Thanks for the tips on the Battery life. So far so good :)
 

Members online

Forum statistics

Threads
954,232
Messages
6,960,991
Members
3,162,953
Latest member
vwssimalino