yashsingh1/xdaforums huggingface dataset:
[T-Mobile Samsung Galaxy S II SGH-T989] doug36:
sorry, gotta be said, stupidest post ever, clearing battery stats is pointless, and STORES NO INFORMATION ABOUT CELL CAPACITY/OR ANYTHING OF THE SORT, all that is actually on the board inside the cell.. also, check the location, gets wiped installing a new rom anyways? Also, with cell phones (keyword, CELL) Which use lithium ion cells, there is NO POSSIBLE WAY to "calibrate" the cell through the device, please at least research befor posting "how tos" u more or less are wasting peoples time

@buddy saying killing a lithionum cell will ruin it, also bull****, that. Control board inside is designed to actually stop or "die" around 100mAh meaning its impossible to kill a lithium ion cell without screwing with the board, or leaving it in device, empty, for over 6months.. PLZ PPL, CHECK UR FACTS BEFORE POSTING
[T-Mobile Samsung Galaxy S II SGH-T989] icenight89:
Before being so abrasive, it should also be said that you stated facts without providing correlating evidence. I'm here to learn just like everyone else, and if something was said in error it is only based on information i have read or learned elsewhere. If you look at my thanks meter you will see i am an EXTREMELY helpful user on this forum.

Although uncalled for in the way you stated it, I would be interested to see where you obtained this information. Perhaps some links?
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
I am sorry if I hurt you're feelings, I can't account for local customs, I am here to pass along info. When I get time I will post links if needed you can google things like google cookies bypass browser settings, google street car suits, etc to double check me. Right now I have a dislocated ankle and getting dental work done so it may take a day or 2 before I can sit down and index the information for you.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] icenight89:
Not you RealPariah, you posted an informative thread with information based on your testing and results, and nothing is wrong with that, health debate is good and you provided some good arguments. I was making reference to doug36, and his rather uncalled for comments.
[T-Mobile Samsung Galaxy S II SGH-T989] doug36:
This would be what your looking for, quick google search,

Click a result and read the specifications.

http://elithion.com/lithiumate-pro-cell-boards.php

Ofc none really compare to the one in these batteries, but you should get the idea

They all have a preset for min (Isolation voltage apparently xD google rocks)

as other variables, and ofc with OEM cells, and boards,

Are actually able to store a WIDE variety of data to the cell, and the device doesn't have write access to this board...

So how can you calibrate it?

Also, google debunked this a while ago (batterystats)

And stated EXACTLY what its used for IT DOESNT STORE THE CURRENT PERCENT

batterystats.bin is located in "/data/system"

And 99% of roms wipe data/system/cache partition

Last point.

Its deleted/redone on boot, REGARDLESS OF POST STATE

meaning, its new every time anyway.
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
You are totally missing the point the below copied conversation may help:

The batt stats is a file under data, and it attempts to keep a good record of your usage to accurately predict your battery use. It's good to wipe this, if you're able, every two weeks or so. This file can also get messed up if you flash a rom on a non full battery, hence why battery can be worse after flashing a new rom.

Tank, *where* under data do I look for the battery stats - what's it called?

-Mike

It is the batterystats.bin under /data/system.

Oh and yes file is replaced at install and that's what causes you to have to then remove it while battery at totally full so file starts correctly thus fixing the problem. The same goes with usage the file may get corrupted if phone shutdown incorrectly, or app did something, or storage has an issue causing data loss, etc. Or be totally wrong because you swapped out the battery (whether it dies or you have spares what matters is it is a physically different battery you should wipe) and why I posted how to do it best on this phone.

I am not saying you are doing anything to the battery itself. You are working with the Android system and what it is doing (not changing it just restarting it).

I have seen this personally help at least 20 unique Android based devices personally and to varying degrees of success (depends how far off the estimation has gotten) so I know it can help.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] doug36:
Ok, and u didnt read my post, ITS RECREATED ON BOOT REGARDLESS OF POST STATE,

Try this if you wanna test

Usng root explorer find the file, mod permissions 777 (rwxrwxrwx)

Edit it in text editor probly wont open it all, who cares.

Add anything at top or bottem, save, restore perms, and battery pull

Reboot and see if that lines there.

If it helped some devices it was probably the reboot.

Again please test this if your actually making a "guide".

Also, HOW CAN IF EFFECT A ROM INSTALL IF ITS A SYSTEM FUNCTION AND DOESNT EVEN CALL CURRENT %

Its main purpose is show a timeline in >SETTINGS>APPLICATIONS>battery use (I believe that's wherre) on GB

And >SETTINGS>battery on ics..

the file can't get messed from rom install..

Alls it does in a short sentance:

Stores information regarding uptime/cpu on running APPLICATIONS,not services.

This information is then calculated from the info from the cell board, such as

Max mAh and Isolation voltage, to get a estimation of the percentage of the battery use used by that application

COMPARED WITH THE SYSTEM. This file IN NO WAY DOES ANY SORT OF CALCULATIONS ITSELF

IT IS:

NOT a binary

NOT a configuration

NOT an executable

A list of references that the system should gather calculations for.

Recreated on boot

Read/write on system no perms on group/others

A temp file.

You brought up another useless. point, data corruption from incorrect shut down is rare to say the least that's what buffers are for ;)

Android, like most full OSs (linux also, duh) use multiple countermeasures to stop this

If The system stored the mah levels of the cell WE COULDNT USE EXTENDED BATTERYS

as I said a few posts back RESEARCH BEFORE MAKING STUPID TOPICS
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Its not recreated on boot if it were there would be even more problems that file should only be created when battery at 100%.

ALSO CACHES ARE USELESS IF SHUTDOWN INCORRECTLY (power loss due to not enough power a user pulling a battery during a freeze, etc can happen anytime you are thinking of journal which should eliminate errors (in theory) but really only help, if that ass umption were correct (that ext file systems gave no errors) then why does a file system repair tool exist (e2fsck) if errors never needed fixing?

Look you obviously have your head in a book, try something out in practice and stop quoting theory and corporate lackeys I have read all the same things before too. I am not new to Linux or Android.

Also statistics are not hard set to one mah level or they would have to do stats for every new battery the system takes basic info such as full mah from battery and current level (so if charger plugged in it is not fried) and generates a new stats file on boot if none exsists, but if you day have stock battery in it does then you plug in extended battery you would see when it"supposedly"did you can turn phone back in. if estimation was never wrong then once it dies saying 0% you couldn't turn it back on because you were already tools battery did not have enough power to continue to run phone. If it does turn on for any length of time the OS got it wrong.

you don't want to calibrate your battery don't this is last time I reply to this tangent.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] axne1:
Sounds like it's boiling over!

sent from a Android device :)

I'm always on!
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
I know right is why I am done I posted more than enough on that and more than enough folks vouch for it that's the last I pay attention and reply to that.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] axne1:
Idk I think it works!

That's my vote damn!

sent from a Android device :)

I'm always on!
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Dude there is no affect to the battery in any way stop thinking I an saying you modify anything on the battery. This wipes the Android stats file stored on the phone, it does nothing to the battery itself.

If you change a battery or install a ROM on non full battery the battery stats file will be wrong. You then have to get rid of it do on boot after Android doesn't find it and recreates the data from scratch. The battery had to be full add that is what Android expects when it begins the file and tracking statistics (on the phone, not the battery).

I have been lifetime a+ certified since 16 (they stopped offering lifetime years ago) that is CompTIA A+, I am MCSE since 16 (Microsoft.certified systems engineer). I have Cisco CCNA for networking. I have taken several backtrack certified online courses, I have red hat certification for red hat Linux systems. I work in networking department for the state for I live in for a year after 2 years of customer service in computers (help desk) and 5 in systems support doing diffuse sorry in windows, active directory, and Linux. I have been repairing computers since 5 years old with it being a passion ever since, and been loving, working with Android since it was introduced, and worked with creator of cyanogen mod to create a tweaked performance version for motorola cliq xt (ambrosial cm7 is mine), but I want to Woodford about measuring certifications, but you inquired.

Also e2fsck has been in Linux for years, you boot in to recovery if you wish to unmount system to check it and it doesn't matter the medium data is on almost any media can suffer data loss for many different reasons no where did I say sdcard should be used for system as this phone had more than enough internal memory its not needed.

The file doesn't drain it or do anything to battery itself, it reports wrong stats to OS and OS gets the measurement wrong, nothing ever physically changed on battery.

At this point you Ste so mad anything I say won't be absorbed only refuted as you can't even get it our of your head no where have I said it will change the battery itself in any way. It is like saying that when you flash a radio driver it physically changes the radio hardware itself. It doesn't it affects how the software talks to and sees the radio when using it but died not write anything to the actual radio hardware itself. Or when over clocking a CPU some file in CPU changes when it had nothing to do with changing the physical CPU.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] axne1:
Try it ...

If you like it then, do it!

If not then don't!

I'm on here all day long, and love reading people's idea's and views on Android.

from, the knowledgeable devs, to the hypothesis...

No need to insist on proof here.

just... " wait for it " TEST 4 YO SELF!!!!

right Lol!

:)

sent from a Android device :)

I'm always on!
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
*New Added How To run Md5 checks on zips via Android File Verifier on phone to install directions

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Currently in Progress: Updating information to incorporate the newer darkside scripts in to instrcutions [and how and why you can either use them or not and why]. You can still use the current instructions and still get any ICS ROM on your device. Also, for now you should FULLY WIPE phone for ANY ICS installs. Hopefully with the newer device specific source we will be seeing that change too, but I have never had any good results from installing without starting from essentially a blank slate [DONT DONT DONT WIPE INTERNAL SDCARD [EMMC IS SAME THING] I AM NOT SAYING FULLY BLANK JUST BLANK FROM A ROM INSTALL perspective [kernel, radio, system caches and data being wiped FULLY]
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
*NEW Added to and updated FAQ*

Next:

> The delayed update to install steps to include darkside scripts newly released where you might want to use them and why during install [sorry bout the wait it is coming]

> Links, then screenshots [I am going to be indexing links in to my guides, then to useful threads, and then will add screenshots where I think they are of benefit [not going to just screenshot EVERY step only if it seems to better illustrate a concept]
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Instructions updated to include darkside cache wipe [if you would like to use]

Also Added link to my Yaldak Mirror which has all the tools mentioned in steps [just not ROM] unless you want to use older Clean ICS .3 which while it had issues if you flash auto rotation fix it is pretty close to daily driver I just find Evolution 2b1 to be best stable with most features ICS ROM for our phone right now :)

Adding link to my Mirror page here as well for reference: My Yaldak Mirror [all scripts needed except for darkside cache wipe as I have not added it YET]
[T-Mobile Samsung Galaxy S II SGH-T989] PulldOvr:
Just want to comment. I flashed the ics leak at 25% battery. Charged that night and the next day made it 18 hours on heavy use showing off my phone all day, wifi on, face unlock on, on hspa+. I never once calibrated. Yesterday I made it 20 hours with light use. I came from the vibrant and lived off of calibrating until I got lazy and realized my battery lasted longer as long as I just let it get to 3% and the fully charge every time I charged. I do believe it is now a placebo effect with the newer batteries that are available. My G1 would have drastic changes where as it appears there is very little effect on newer phones. I don't suggest flashing with a low battery only because flashing could cause the battery to die and potentially give you a soft/hard brick from a partial flash.

Just my opinion. Anyone can take it as they wish. I have no professional experiences. I just use the f#*@ outta my phone everyday since I got the g1
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
I posted this for those people who are newer to Android in mind as I do with most all my posts so that it hopefully helps the most people possible. Basically, I take what I have found for issues I have either had myself or have been asked to resolve by many different people who know I live and love computers and basically anything tech :) and refine a specific fix for a specific issue I see multiple questions about over and over with lots of testing on my own or the device needed working out the cause and a solution I can distill in to an easy to digest step by step guide that is the most optimal with least chance of harm; Then to be able to offer explanations or answer questions asked about it from users and post that.

I always encourage the users who read my post if you wish to learn more about a specific topic or fix go for it. I always start with google as often as you probably read that it is true. Once you are of the level of understanding that you feel comfortable using my guide as a template and adjusting it to suit your specific scenario (or understanding when a fix may or may not apply and then which fix is best to apply) that is very awesome! :)

In this case yes I too have also flashed multiple times and found that I too got awesome battery life right off and did not need to calibrate as well. There were also the times though that I had issues and this as well as other fixes [see fix perms fix for instance] really ended up helping me correct a problem.
[T-Mobile Samsung Galaxy S II SGH-T989] yurilebbie:
Hey RealPariah have you seen this? It is from a google engineer about batterystats.
[T-Mobile Samsung Galaxy S II SGH-T989] sumitghaiin:
Thanks for this info
[T-Mobile Samsung Galaxy S II SGH-T989] sumitghaiin:
How do I know when to do it?

Well if your battery meter in your operating system or in Mobile phone in that case, tends to give skeptic "remaining times" that are highly unlikely, although as said before all batteries lose their charge holding ability over time. Then it is time for you to do a battery calibration.

Some manufactures even recommend doing this per 30-40 day-cycles.
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
I can only answer the same questions soo many different ways...

Copy/paste pertinent snappy reply with relevant information previously posted here...

Now I create ad libs, yay! :)

Again, I personally have seen devices gain small and large accounts of time on charges after this method. If you don't want to try this I am not holding a gun to your head, you can choose to not try this if you wish. I promise to not show up at your house in the middle of the night.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
*Added to FAQ at top of that post a bit on when you can tell you may need to re-calibrate (IF YOU CHOOSE TO DO SO)

Again, flashing new ROM with battery fully charged is pretty much the same as re-calibrating (pretty much if it is already off battery may not actually be fully charged, but again use YOUR best judgment)

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
*Added to FAQ link to guide on how to swap /sdcard and /sdcard/external_storage.

so if you have micro sd larger than 11G it will be used as main storage (some big apps don't let you select storage (see GTA anniversary edition, Deadspace Downfall, etc).

As always be careful, read entire post, and run full backups!

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] fokaduck:
anyone tested this and what was the result?
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Look stop creating accounts because I have out explained you (meaning you probably misread what this us for our what I say it may or may not do for you) and you refuse to see that while it maybe debated like viruses on Macs (remember when those were impossible several years ago) and you have nothing better to do then create accounts just to post nonsense I can't help you.

Cute if childish name though points on getting past censors there kid.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] Vulca:
Thanks this is what I needed. Good thing I kept my replacement phone so that while I calibrating I can still receive calls.
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Thanks for vote of confidence, there is some dude who had been at it for sometime to discredit this thread. I believe he more misunderstood this thread and what it is to calibrate your battery, but now has gotten personal creating accounts (sorry I turned out to be right I guess, told you I do exhaustive research I don't just random post info (or if forced to I preface it as such and those threads dint normally get stickied) just to post here. Nice to see there are those that still see what this thread is for and use it to a positive outcome, thanks again for posting your positive results.

Also, you can use the phone I find I leave it on and plugged in with AC and can still answer calls. Leaving it off and charging will ensure best results though.

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Also, obviously got replacement after phone overheated and would not boot so I is back.

Though I did have a major accident and ended up with a major concussion (look at me go though! :) ) so I may be scarce for another week or 2 (not really supposed to watch much TV let alone my phone) but I never listen and seem mostly intact.

(don't get between me and my tech work it just won't happen LoL)

Sent from my SGH-T989 using Xparent Green Tapatalk 2
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Alright, I should be getting some updates to this thread online soon... Please bear with me

Phone: TMobile Galaxy S2 [SGH-T989]

ROM: darkside evolution 2b3 (tmo leak base)

Tweaks: Supercharged, lag nullified, quick 3g, afterburned wifi + quite a few personal tweaks
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
So sorry I have been held up providing support, furthering my source code knowledge and finding the best ROM for me and my device (see signature!).

I promise I have not forgotten this thread have to compile a bunch of new findings and update is coming I promise!

SGH-T989 Running official CM9 nightlies, Supercharged, nitro lag nullified, 3g tweaked, and full of KaK!

CM9 Repo: http://download.cyanogenmod.com/?device=hercules
[T-Mobile Samsung Galaxy S II SGH-T989] datrapstar:
Thank you so much for the time and info provided here. I'm a noob and didn't have a clue of the battery damage I was doing due to poor flashing procedures. Been noticing very bad battery life so I'm going to use your post and do so testing of my own. Again, thanks:good:
[T-Mobile Samsung Galaxy S II SGH-T989] RealPariah:
Always glad to hear that all my work, testing and posting helps people! Let me know how it goes or if you are not sure about something.
[T-Mobile Samsung Galaxy S II SGH-T989] hideokuze:
It's terrible advice to ever let Lithium Ion batteries fully discharge; that will destroy your battery over time. I'd link it but haven't yet hit 10 posts. Just google "lithium ion battery discharge" and you should see all the results you need to know that full discharge cycles worse the ability to charge to capacity.
[T-Mobile Samsung Galaxy S II SGH-T989] shaunlit:
Thanks
[T-Mobile Samsung Galaxy S II SGH-T989] djtease37:
from all of the things that i have read about the new lithium ion batteries it isnt a good idea to let them get much below 30% very often. its advantagous to your batteries overall life span to charge at or above that mark as often as possible. however, i don't believe that an occasional complete drain will seriously adversely effect the battery. i haven't tried this method of fixing battery stats yet (i think i might though) but i have seen my own devices gain batter life from doing things like this. i have not seen monumental gains but hey, an extra 2-4 hours of life is worth it to me. i noticed the biggest difference when i started using a big extended life battery in my gs2. its a 3600mah battery, almost double the size of the stock battery. when i first started using it i thought something was wrong with it because i was only seeing about 12 hours out of it, the same as the stock battery i was trying to replace with it. i thought that i received a defective battery so i even had the guy i got it from send me another one. when i tried the 2nd one i got the same result, 12 hours or so. none of that made sense so i went back in and did a full charge, wiped batt stats, then let it drain all the way down. charged it back to full like all the directions say and ever since then ive seen around 20 hours or more out of my battery. i have no technical knowledge like some of the other guys on here do, just know how to do the basic stuff, but my personal experience with doing this has been good. there have been a few rom's ive tried on my old vibrant that wiping batt stats didnt do anything, but in the case of my gs2, i saw a HUGE gain when i went to my extended battery. im really thinking of trying this method of wiping to see if i can maybe get 2 days out of my phone! wishful thinking i know lol :laugh:
[T-Mobile Samsung Galaxy S II SGH-T989] :
When I bought a new extended battery for my s2 this was necessary, for the most part, because the stats and whatnot didn't change for the battery so my phone would tell me it was empty, even though it couldn't possibly have been. I figured I'd put that here so that people who complain about this being a hoax, its not.

It's necessary for certain situations, so don't tell people they're idiots just because you don't have the same experience.