Check this
For people that wipe battery stats after installing a new rom.
Regardless of the make and model of your Android-powered smartphone, you most definitely were advised at one point in your life to delete the "batterystats.bin" file, aka wipe your battery stats. That is, of course, if you are the techy user.
According to those who tell you that, deleting that certain file (possible via Recovery) will make the phone forget the previous charging level, allowing you to "recalibrate the battery". According to Dianne Hackborn, Android Framework Engineer, this is just a myth.
Those in favor of "wiping battery stats" say that the file referred to above will hold information about charging levels. The discussion usually pops up in scenarios in which battery lasts shorter than usual or a full charge is reported when the battery is practically not 100%. Believers say that if your phone reports a full charge at a real 92% for instance, deleting that "batterystats.bin" will get you back on track.
The Android Framework Engineer says that the following statement is false: "The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory". According to Hackborn, the file usually holds the information related to which programs and processes use the battery between charges (hence being responsible for the OS' Battery Usage report screen).
Deleting this file will basically wipe your battery usage reports, which is done anyways automatically when the phone is fully charged (hence you'll see a clear list when you reach a full charge). "Deleting it is not going to do anything to make your more device more fantastic and wonderful".
Source:
http://pocketnow.com/android/deleting-androids-batterystatsbin-wont-grant-more-jiuce
Interesting. I've ordered a new battery and actually planned to do all of this 'battery calibration' stuff when I got it, but well, now I know different. Thanks.
Information on prolonging the life of Li-Ion batteries and way more about batteries in general...
---------- Post added at 05:03 PM ---------- Previous post was at 05:01 PM ----------
Tuoni said:
Interesting. I've ordered a new battery and actually planned to do all of this 'battery calibration' stuff when I got it, but well, now I know different. Thanks.
Click to expand...
Click to collapse
Conditioning and caring for your battery still applies.
Related
Read this post from Dianne Hackborn
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
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.
Click to expand...
Click to collapse
Glad that I have never done this (as I am not rooted user).
It will be done automatically when you charge your phone
Very nice, thanks for posting this!
And while we are at it, all the secret counter-clockwise dancing around your battery while charging it under a full moon 3 times from 0 to 100% to calibrate it ... yes, that's a myth, too.
Valynor said:
Very nice, thanks for posting this!
And while we are at it, all the secret counter-clockwise dancing around your battery while charging it under a full moon 3 times from 0 to 100% to calibrate it ... yes, that's a myth, too.
Click to expand...
Click to collapse
Haha I want to know that one to, full charging to train a new battery.
As I am doing it now with my new extended battery.
"The truth is out there" --> http://batteryuniversity.com/learn/article/how_to_prime_batteries
I am now wondering what does CWM do with wiping battery stats.
Is it also just deleting this file?
Yes, it is.
Sent from my Galaxy Nexus using XDA App
kangxi said:
Yes, it is.
Sent from my Galaxy Nexus using XDA App
Click to expand...
Click to collapse
Then it is a useless feature as well, as that file will reset after charged.
ya'll know the proper way to calbrate? i myself, just found op's topic is true the other day. the proper way also get your battery to charge 100% all the time and i noticed charging slows down a lot ~90% like it should, rather than around 95% like it usually does and that's why some people have phone stop in between 95-99%.
---------- Post added at 11:34 PM ---------- Previous post was at 11:23 PM ----------
ram3n's method that works and fixes the other nuances people have....
1. Turn off your phone.
2. Fully Charge.
3. When getting 100% signal, unplug quickly.
4. Pull off the battery and put it anywhere.
5. Wait for 90 seconds exactly (be careful )
6. Meanwhile, take this opportunity to dust off the internal compartment.
7. Put back the battery on the right side.
8. Turn on the phone.
9. Pray the Battery god
10. ... and voilà !
the 90s is a joke. 2-5mins is also fine. just not long it leaks charge.
... and don't forget to do all this on a full moon, or it won't work.
Valynor said:
... and don't forget to do all this on a full moon, or it won't work.
Click to expand...
Click to collapse
you can do this when pigs fly too. but seriously, that one does trick all the nonsense in it is just humor. i've done to both my batteries, and the original stopped charging up to 98% and i got the 99% out in my extended. doesn't add battery doesn't do much but get your battery closer to accurate right away. but if you do it on a full moon, you get triple charge. forever. infinity and then some.
I always knew that was horse****.
noobs.
pukemon said:
you can do this when pigs fly too. but seriously, that one does trick all the nonsense in it is just humor. i've done to both my batteries, and the original stopped charging up to 98% and i got the 99% out in my extended. doesn't add battery doesn't do much but get your battery closer to accurate right away. but if you do it on a full moon, you get triple charge. forever. infinity and then some.
Click to expand...
Click to collapse
One said got much better results when you done that while fully naked.
Sent from my Galaxy Nexus using xda premium
pukemon said:
ya'll know the proper way to calbrate? i myself, just found op's topic is true the other day. the proper way also get your battery to charge 100% all the time and i noticed charging slows down a lot ~90% like it should, rather than around 95% like it usually does and that's why some people have phone stop in between 95-99%.
---------- Post added at 11:34 PM ---------- Previous post was at 11:23 PM ----------
ram3n's method that works and fixes the other nuances people have....
1. Turn off your phone.
2. Fully Charge.
3. When getting 100% signal, unplug quickly.
4. Pull off the battery and put it anywhere.
5. Wait for 90 seconds exactly (be careful )
6. Meanwhile, take this opportunity to dust off the internal compartment.
7. Put back the battery on the right side.
8. Turn on the phone.
9. Pray the Battery god
10. ... and voilà !
the 90s is a joke. 2-5mins is also fine. just not long it leaks charge.
Click to expand...
Click to collapse
just remember that this method only works on phones with the max17040 fuel gauge, so that is GN, galaxy s, nexus s, etc.
also there is an equivalent to do the above in software, you have to send the POR (power on reset) command to the battery register, and it accomplishes the same thing i believe.
the 17042 also right? doesn't the gs2 have the 42?
pukemon said:
the 17042 also right? doesn't the gs2 have the 42?
Click to expand...
Click to collapse
Yes i believe so. Seems that max17042 has all kinds of cool bells and whistles, but theyre not enabled by googles driver. Just like the n1 driver was being wasted...
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.
Click to expand...
Click to collapse
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
Already threads on this..
Sent from my Galaxy Nexus using xda premium
i've known this for like 2 years. wiping batterystats.bin does nothing whatsoever. i just never have the energy to post it around the forum since you see so many people saying to wipe batt stats.
i tried to open the stats file one time and all it looked like to me was the same info you see in the battery settings menu with the list of apps used on battery, and wakelocks etc.
glad this is finally getting out there!
I also suspected this was the case but as I got what I expected from my battery I never really looked in to it although I have read the nonsense calibration posts etc.
Thanks for posting mate its confirmed my thoughts!
Looking for technical answer. Why several charge cycles for ROM to "settle in"?
So we all know its a common rule when we flash a new ROM we should give it 2 or 3 full charge cycles to "settle in" before we judge what our battery life will be.
But why?
I did Google it, and really only came up with the conclusion that its common knowledge. "Because thats the way it is". But can someone give a white paper type of reply?
No one can, because it's not true.
It's along the lines of clearing battery stats or calibrating the battery. A Google engineer made a public post that it's all cargo cult nonsense, and that all that's contained in the battery stats is info for generating those pretty graphs in the settings screen, but people around here persist in continuing to do so.
Yeah, it's bull****.
Sent from my SGH-T989 using Tapatalk
More or less the few min on boot thing, is its booting, allows the rom to fully initiate on its own, not 100% needed but does help in the sense that like windows if u open crap while its still booting it can tend to throw the system off a lil bit.
Few batterycycles, bull****.
Clear batterystats?some devices it CAN help, with this phone its pointless, as this phone has a chip to automaticly calibrate the battery anyways.
All these "tips" are more or less worthless to us and can be taken lightly..
Cool thanks guys
edit: manekineko...I search a little but couldnt find it. Can you give me some search terms or a link (if you can find it quickly) to that Google engineer's comments?
blackangst said:
Cool thanks guys
edit: manekineko...I search a little but couldnt find it. Can you give me some search terms or a link (if you can find it quickly) to that Google engineer's comments?
Click to expand...
Click to collapse
Here it is...
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
and an article that links to the google + above...
http://www.talkandroid.com/83611-go...ats-doesnt-improve-battery-life/#.T2dqChEgelg
G1ForFun said:
Here it is...
https://plus.google.com/u/0/105051985738280261832/posts/FV3LVtdVxPT
and an article that links to the google + above...
http://www.talkandroid.com/83611-go...ats-doesnt-improve-battery-life/#.T2dqChEgelg
Click to expand...
Click to collapse
Thanks! Sig worthy!
now can someone explain why sometimes it takes a long time to drop batt% when it is high but quickly drops when it's in the reds... or the opposite that it drops really quick when its high but lasts forever when it's red
or when you restart your phone.. your battery level sometimes jump or drops drastically
my guess is that sometimes that chip that automatically calibrates and reads your battery is sometime inaccurate after you poweroff/reboot/pull battery.
Just a guess, but I don't really care much about all that nonsense because our phone lasts a damn long time!
Teo032 said:
now can someone explain why sometimes it takes a long time to drop batt% when it is high but quickly drops when it's in the reds... or the opposite that it drops really quick when its high but lasts forever when it's red
or when you restart your phone.. your battery level sometimes jump or drops drastically
my guess is that sometimes that chip that automatically calibrates and reads your battery is sometime inaccurate after you poweroff/reboot/pull battery.
Just a guess, but I don't really care much about all that nonsense because our phone lasts a damn long time!
Click to expand...
Click to collapse
Your battery % is read from the mah left inside the battery, these readings are then translated by the OS into a percsnt based of the max mah on the battery.
Once the percentage is obtained/displayed a new cycle begins, battery drain is completely depentant on the use of the device.
That being said on reboots the first known "cycle" as il refer to it as, is displayed. This first response is usually correct but can vary slightly until the system crosschecks the data.
If that does happen, wit a minute and the system will correct the value in approximately a minute.. hopefully thats clear enough and hope it answeres your question..
Thought i hit post but didnt n left browser open all mornin :/ lmao
doug36 said:
Your battery % is read from the mah left inside the battery, these readings are then translated by the OS into a percsnt based of the max mah on the battery.
Once the percentage is obtained/displayed a new cycle begins, battery drain is completely depentant on the use of the device.
That being said on reboots the first known "cycle" as il refer to it as, is displayed. This first response is usually correct but can vary slightly until the system crosschecks the data.
If that does happen, wit a minute and the system will correct the value in approximately a minute.. hopefully thats clear enough and hope it answeres your question..
Thought i hit post but didnt n left browser open all mornin :/ lmao
Click to expand...
Click to collapse
I have yet to see the system suddenly correct the value. And no i was referring to battery drain with the same usage. They drain differently, it is never a linear drain. And i believe it's more than just measuring the mah left in the battery because a dead battery still has mah. And then there are extended batteries with higher mah. Oh wells.
Sent from my SGH-T989 using xda premium
Teo032 said:
I have yet to see the system suddenly correct the value. And no i was referring to battery drain with the same usage. They drain differently, it is never a linear drain. And i believe it's more than just measuring the mah left in the battery because a dead battery still has mah. And then there are extended batteries with higher mah. Oh wells.
Sent from my SGH-T989 using xda premium
Click to expand...
Click to collapse
No crap, there higher capacity/higher MAH
And No Li-iON battery will die down to 0 MAH...
*edit
And seeing as you obviously don't know how to use google, I saved you the trouble
Terminology: mAh
Definition: The mAh acronym stands for Ampere-hour.
This is a unit of electric charge, and is frequently used in measurements of electrochemical systems such as batteries.
Example: a 2000mAh cell is half the charge capacity of a 4000mAh
If you can't take the answer given, don't ask.
Ofc its not a liniar drain ita based off usage/aps running..
And yes this is called for
Info on batterys
http://www.knowyourmobile.com/glossary/m/513466/mah.html
*EDIT2
Found a plausible way for you to achieve that close to linear drain you so desire:
A.) Install stock rom & kernel,
B.) Root, remove all bloat and ALL apps, as some start automaticly and and are registered as services and last through taskkillers.
C.) Disable ALL sync features, turn on airplane mode.
D.) don't touch phone for a few days..
Should be pretty damn linear for ye
this was posted on the XDA Portal on JANUARY 14, 2012 AT 7:38 AM BY Liwen..
and i thought i would repost it as it seems lately alot of people are being misinformed about it
Google Engineer Debunks Myth: Wiping Battery Stats Does Not Improve Battery Life...
There you have it, in the title. Google engineer Dianne Hackborn, who has previously explained Android’s hardware acceleration, took to Google+ again to clarify some myths about the Android operating system. This time, it’s a point of common advice that you’ll see in virtually every FAQ thread about custom ROMs and flashing: wiping battery stats in order to improve battery life.
The reasoning behind that piece of advice was something like this: If you, at some point, did not charge your Android device fully (for example, only to 80%), it would supposedly remember that battery level as “fully charged” – in this case, you’d only ever get to use 80% of your battery, which is of course less than optimal. So, if you wipe the battery stats, usually done in ClockWord Mod Recovery, the device would “forget” the previous level, here 80%, and instead charge to the full 100% once again, thereby re-calibrating the battery. Or, as Hackborn puts it in more technical terms:
The battery indicator in the status/notification bar is a reflection of the batterystats.bin file in the data/system/ directory.
However, as she explains, that’s not the case. Because those battery stats, stored in the batterystats.bin file, are only used to maintain information about what is using the battery when not recharging. That is, it essentially holds the information displayed in the Settings > Battery screen. Nothing more, nothing less. Thus:
It has no impact on the current battery level shown to you.
It has no impact on your battery life.
What’s more, you’ve probably noticed that the battery usage data is reset once you recharge your device anyway. From this you can correctly deduce that the battery stats are wiped as well – every time your device is recharged. More or less every day. If there was any effect, you would’ve noticed it without going into recovery and doing that stuff. Typical placebo, eh?
link to XDA Portal post
http://www.xda-developers.com/androi...-battery-life/
Where I got this ?
go to this thread http://forum.xda-developers.com/showthread.php?t=2170039
If this helped you, press the "Thanks" button for Kameirus on the second link, not me .
also Kameirus permitted me to post this on our forums as well
page not found
Good :good: OP of this thread is the only one here who has given credits from where he got the content!
Asmy Yuh said:
page not found
Click to expand...
Click to collapse
I think they removed it already, but if this helped you, Give your thanks button to Kameirus. not me.
Apologies if this seems well travelled path, and I've certainly led a lot over the internet. But I just wanted to describe my issue and see if I've missed anything!
I've had chronic battery issues, and had a spare and I'd swap them in/out but I came to conclusion that wasn't great as it may not read battery stats well doing two different batteries. I was getting less than 12 hours between batteries. So now i have Powerbear 6500mAh battery and have been using it for a week. Apart from a heavy usage day I can now get 24 hours out of it. Superb.
Then as if by magic, trouble returns! The battery drained 11% overnight in seven hours. That's in airplane mode. 11% of a 6500mAh battery! Battery stats shows nothing has used battery in particular, just phone idle. Wake locks there was nothing significant. Now 5 hours later it's dropped another 43% with not a lot of use, just web and some maps.
Things I've tried:
Making sure the option to store activity logs is off.
Location turned off for all but most vital apps, like maps.
No automatic syncing of anything.
Greenify - and I shut down anything I can.
Wakelocks - ensuring nothing is abnormal, got rid of CityMaps due to excessive wakelocks.
Airplane mode at night - no cell, no wifi.
I rooted and reset the OS about six months ago, so that is my logical next step... but I'd rather understand what could cause 11% of 6500mAh to be drained by doing nothing!
Any thoughts of what I might have missed?
Stats: LG G4. LG-H815. Android 6.0. Build MRA58K. Software V20g-EUR-XX.
Thanks
Antony
What root method did you choose? SuperSU or Magisk? With Magisk my phone was hot (~70C) and got only 1.5h screen time, when i switched to SuperSU, it was gone.
Install GSam Battery Monitor app from the Play Store and see if it helps show you what's using up the battery.
I know you are not going to like reading this but
I don't use these extended batteries for a reason. Phone wasn't made for it.
Try your original battery
These extended batteries are also known to crap out after 500 charges
Use battery monitoring app to help you determine what's happening
MattheewHun said:
What root method did you choose? SuperSU or Magisk? With Magisk my phone was hot (~70C) and got only 1.5h screen time, when i switched to SuperSU, it was gone.
Click to expand...
Click to collapse
SuperSU
divineBliss said:
Install GSam Battery Monitor app from the Play Store and see if it helps show you what's using up the battery.
Click to expand...
Click to collapse
I removed it as it never provided me anything worthwhile. I think it used to just say Android used the power or something vague. I can reinstall it, but there was never one specific identifiable reason I remember that.
deltadiesel said:
I know you are not going to like reading this but
I don't use these extended batteries for a reason. Phone wasn't made for it.
Try your original battery
Click to expand...
Click to collapse
Then I have to put up with a phone that won't last 6 hours, which is what led me to get additional batteries and now the PowerBear.
That said the following night, it used about 2% overnight... so erratic to say the least! And I have 59% left after 10 hours use. It's just the randomness the other day that spooked me. I did learn it was low on disk space, could have that caused that particularly bad event?
Did you try switching kernel? I can suggest you to try Imperium Kernel, that will reduce the system's usage. Other than this i have no idea. :\
---------- Post added at 06:47 PM ---------- Previous post was at 06:44 PM ----------
deltadiesel said:
I know you are not going to like reading this but
I don't use these extended batteries for a reason. Phone wasn't made for it.
Try your original battery
These extended batteries are also known to crap out after 500 charges
Use battery monitoring app to help you determine what's happening
Click to expand...
Click to collapse
What you said, is nosense for me. Some custom batteries are better than the original. You jsut must be lucky to pick the right one.
MattheewHun said:
Did you try switching kernel? I can suggest you to try Imperium Kernel, that will reduce the system's usage. Other than this i have no idea. :\
Click to expand...
Click to collapse
Thanks. I was thinking of doing something like that. Thanks for the heads up, there's a lot of choices... I'll check that one out.