Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
t1h5ta3
Old
(Last edited by t1h5ta3; 21st November 2010 at 12:00 AM.)
#1  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
Lightbulb HOW TO: Wipe Battery stats to improve battery life

coming form other android phones, ive learned to wipe batt stats in recovery to get the best life.
normaly i wind up seeing voltage @ 100% a little over 4.260v

now on our phones we dont have that option, and i noticed while trying out diferent roms that its hitting " 100% " at various voltages depending on what the batt truely was when flashing.

if i recall the file is : /data/system/batterystats.bin that we need to delete? corect?

well, before i did it, it hit 100% @ 3.782v and wouldnt go any higher...
now, im sitting @4.246... im not 100% sure its fully charged. ill let it sit overnight turned off and see where i wind up.


UPDATE 11-20
SO, voltages have been confirmed.
100% = 4.20-4.25 depending on battery condition
0%= dependent on the kernel generaly 3.2-3.0 {found some as high as 3.7v!} thank you to hastarin for pointing the files out

if your not seeing 4.2v your not getting full battery life.
The Following 4 Users Say Thank You to t1h5ta3 For This Useful Post: [ Click to Expand ]
 
t1h5ta3
Old
#2  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
sure enough, i was sitting just shy of 4.3v this am after an overnight charge with the phone turned off...
 
Slampisko
Old
#3  
Slampisko's Avatar
Junior Member
Thanks Meter 9
Posts: 14
Join Date: Mar 2010
Interesting info, but where would you find out the voltage the battery is producing?
The Following User Says Thank You to Slampisko For This Useful Post: [ Click to Expand ]
 
t1h5ta3
Old
#4  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
so, how to wipe the battery stats?

time to get down and dirty and learn to navigate thru the android OS.
download and set up the android SDK
http://developer.android.com/sdk/index.html

heres a newbie guide to adb in the nexus forum
http://forum.xda-developers.com/showthread.php?t=619153

for those less computer literate, you can use droid explorer to do alot of the stuff thru a GUI. it also will set up adb for you.
http://de.codeplex.com/

the code that you type in to remove the battery stats is
Code:
rm data/system/batterystats.bin
now to properly condition the battery.

turn off the phone, plug it in, preferably overnight.
boot the phone up while still pluged in.
delete the batterystats.bin file ether thru adb or terminal
drain the battery fully, untill it powers down. wait a min or two and reboot it to completely drain it.

congrats... your phone now knows corect voltage values for 100% and dead.


Remember: Flashing a new Android build erases the battery stats, and automaticly rebuilds them based on voltages it see's .

ie: you need to recondition after each flash to get max battery life.

i use the "battery life" widget by curvefish to show me temp, voltage etc.
The Following 14 Users Say Thank You to t1h5ta3 For This Useful Post: [ Click to Expand ]
 
t1h5ta3
Old
#5  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
Quote:
Originally Posted by Slampisko View Post
Interesting info, but where would you find out the voltage the battery is producing?
some builds will show actual voltage under menu/about phone/battery use

otherwise i use the " battery life" widget by curvefish, available for free from the market. once you add it to the screen, tap it, hit settings, then check both charging info and extended info.
 
t1h5ta3
Old
#6  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
after conditioning the battery, im currently @27 hours since unplugging, gps, and wifi turned on the entire time, im @ 3.873v or 61%! granted, its been light usage its my secondary phone right now, but i am on the outskirts of service, and the week signal usualy sucks the battery...

ill update again , probably this time tomorow once it finaly dies...

just a little food for thought: its been over 27 hours since i unpluged, and my voltage is still higher than what the phone assumed was 100% @ the time of the initial flash....
The Following User Says Thank You to t1h5ta3 For This Useful Post: [ Click to Expand ]
 
t1h5ta3
Old
#7  
t1h5ta3's Avatar
Senior Member - OP
Thanks Meter 30
Posts: 508
Join Date: Nov 2008
Location: pacific north wet
@ 50 hours (still 10%) i finaly got sick of waiting for it to die. i turned screen on full bright, and ran gps test and locked the screen on. phone finaly died @ 2.988v im now charging it again with the phone turned off.
The Following User Says Thank You to t1h5ta3 For This Useful Post: [ Click to Expand ]
 
ZaZu90
Old
#8  
Senior Member
Thanks Meter 5
Posts: 223
Join Date: Dec 2009
Umm why do we need this though ?
Wont the phone keep running as long as there is sufficient voltage in the battery ?

What is the use of this method ?
 
Reno_79
Old
#9  
Senior Member
Thanks Meter 7
Posts: 286
Join Date: Aug 2010
Location: Wellingborough

 
DONATE TO ME
This is for people who have found a build they are happy with and want to use for a while so that their battery lasts longer, much longer. As the OP has posted, his phone is currently lasting about as long as it does in WinMo which is an impressive feat, more so being as he's running his GPS non-stop at the same time.

I for one am going to do this myself when I get the time. If I knew whether my alarm would go off while the phone was switched off (for the overnight charge) I'd do it tonight but cannot risk being late for work tomorrow lol
Stock Galaxy SIII - Pebble Blue
The Following 2 Users Say Thank You to Reno_79 For This Useful Post: [ Click to Expand ]
 
ZaZu90
Old
#10  
Senior Member
Thanks Meter 5
Posts: 223
Join Date: Dec 2009
Thanks Reno but I meant HOW does it work ?

I thought this method just helps you see your battery's percentage .. Wont the battery run no matter what the percentage show as long as the battery has a charge ?

Can someone please explain this ?

Yeah I cant afford not waking up late as well, so im charging it while its on, would that affect anything ?
It will still charge up the battery wouldnt it ?

The Following User Says Thank You to ZaZu90 For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
adb, battery life, batterystats.bin, conditioning, droidexplorer
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...