ADB command detects APK boot time, memory, CPU usage, traffic, battery level, etc.-common ADB commands

Source: Internet
Author: User
Tags cpu usage

Adb:android Debug Bridge is a powerful tool in the Android SDK that allows you to operate an Android emulator or real-world device directly. Detection app: adb shell am start-w $package/. MainactivityStart time adb shell Dumpsys meminfo $pidSpecify program Memory usage adb shell Dumpsys meminfo $package Specify program Memory usage adb shell Dumpsys cpuinfo $package Specify program CPU Usage adb shell cat/proc/uid_stat/$PID/TCP_RCVData traffic being received adb shell cat/proc/uid_stat/$PID/tcp_sndData traffic being sent adb shell Dumpsys batterystats $package | moreSpecify program power consumption information adb shell Dumpsys batterystats | moreCombined power consumption adb shell Dumpsys batteryBattery information adb Shell "PS | grep $package"Check the specified program PID other common commands: adb shell GetpropView Mobile Information adb shell Getprop ro.serialnoView Phone serial number adb shell Cat/proc/cpuinfoView Phone CPU Information adb shell Cat/proc/meminfoView Phone Memory information adb Uninstall $packageUninstall APK adb rebootRestart your phone adb reboot RecoveryRestart your phone to recovery adb reboot bootloaderRestart your phone to the bootloader interface adb kill-serverClose ADB Service adb start-serverStart ADB service

ADB command detects APK boot time, memory, CPU usage, traffic, battery level, etc.-common ADB commands

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.