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.
Filed under: Android Coding FAQ
Tags:
Comments
No Comments
Leave a reply
You must be logged in to post a comment.