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