Using Battery Historian (Android 5.0)

Source: Internet
Author: User

Http://hukai.me/android-performance-battery/can refer to this article first

1$ adb shell Dumpsys batterystats > Xxx.txt//Get power consumption information for the entire device $ adb shell Dumpsys batterystats > COM.PACKAGE.N Ame > Xxx.txt//Get battery consumption information for the specified app

2 Installing Python setting environment variables

3python historian.py xxx.txt > xxx.html

Get the generated xxx.html

Open it and look like this.

Visualizer disabled. If you see this message, download the HTML then open it

This sentence causes the chart to not appear

Open a source file with Notepad

First few lines found

<script type= "Text/javascript" src= "https://www.google.com/jsapi?autoload={' modules ': [{' Name ': ' Visualization ',       ' version ': ' 1 ', ' packages ': [' Timeline ']}]}"></script><script src=" https:// Ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js "></script>

I know that this path is a domestic wall, so it's been loaded and then it can't be displayed.

And then... Of course it's FQ. Recommend a VPN agent soon Http://honx.in/i/U0etuoKo1w28DR7D#two name is called Red Apricot listen to the name you know ...

And then you open the HTML file.

The first picture should look like this.

Using Battery Historian (Android 5.0)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.