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

About Tang

A mobile developer, work in Stockholm, Sweden
This entry was posted in Android, Mac, Mobile. Bookmark the permalink.

1 Response to How to use Android Battery Historian

  1. Blair Smithe says:

    Highly recommended, great reviews, and a great company

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s