Originally Posted by hawkerpaul
This is not done in the script for any battery benefits. Unless I save the file first (which isn't much point as a new ROM is about to be flashed after this script has finished) this is unavoidable, as battery stats is stored in /data/system/batterystats.bin and this will get removed in the format of the /data partition (as it would also via a standard factory reset)
I thought battery stats doesnt get erased until you go to recovery and wipe it.
And for batterystats, some of them wipe it because they think it will calibrate battery, but it wont, charging battery calibrates it. And in changelog it says batterystats wipe, thats why i said. Sorry for misunderstanding.
Sent from SpeedMachine i9100