Capture of phone charge and power consumption

Source: Internet
Author: User

Why Study:

Capture the power consumption of the script after running in the automation platform and the phone's real-time charge

Phone real-time power:

  

adb shell Dumpsys Battery
Current Battery Service state:  AC powered:false  USB powered:true  Wireless powered:false  max charging current:0  max charging voltage: 0  Charge counter:0  2  2  present:true        4144  307  Technology:li-poly

Extract level is the current phone's power rating

adb Shell Dumpsys Battery | FINDSTR level

Connect the phone to the computer by default charging status, affecting the capture of power consumption during script operation

ADB shell Dumpsys Battery Set Status 1

Switch battery to non-charging status

adb Shell Dumpsys Batterystatus |  |more

Get power consumption information

Capture of phone charge and power consumption

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.