How to use Android Battery Historian

1. Install Docker:

https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac

2. Run Docker

docker run -p 5001:9999 gcr.io/android-battery-historian/stable:3.0 --port 9999

3. Fetch battery report

To obtain a bug report from your development device running Android 7.0 and higher:

$ adb bugreport bugreport.zip

For devices 6.0 and lower:

$ adb bugreport > bugreport.txt

Then the bugreport will be exported & downloaded to current folder

4. Open browser,

go http://localhost:5001/, load the bugreport file.

5. Reference

https://github.com/google/battery-historian

2 thoughts on “How to use Android Battery Historian”

Leave a comment