Top Picks

Facebook

3.9046118

 

FREE

Amazon

4.4153185

 

FREE

Bible

4.6844563

 

FREE
   
December 3, 2012

 

Studying battery management in Android, dumpsys batteryinfo

 

I am trying to develop and application to gauge per-app battery usage of every app that runs on the phone.
I am trying to analyze the batteryinfo dump (adb sysdump batteryinfo) to find out if I can use this dump to calculate total amount of run time per app from last battery charge event (after charger is disconnected).
But I am not sure how to examine this log, nor is there any documentation available on it.
So my question is there a way to understand how this log is generated? When do the counts for individual processes reset? (After charge/ after reboot/ after unplugging).
Please help me out if anyone has worked on this dump before.
Thanks.

 

Answer

It resets on every reboot. Or at least the integrated stats do.

http://www.xda-developers.com/android/google-engineer-debunks-myth-wiping-battery-stats-does-not-improve-battery-life/

Professional Hosting fro Just Host

Filed under: Android Coding FAQ

Tags:

Comments

No Comments

Leave a reply