-Get program startup information, get package name
ADB Logcat | grep START
-Cold start app (cold start refers to the first time the app starts in a mobile device)/hot start (the app presses the home key or the back button to back up the background)
ADB shell am start-w-n com.android.browser/. Browseractivity (Package name w must be capitalized)
-Cold boot Exit app
ADB shell am force-stop com.android.browser (package name)
-Hot start Exit app
ADB shell Input KeyEvent 3 (press the back key to exit the app)
-Get the monitoring value of the CPU
adb Shell Dumpsys Cpuinfo | grep Com.android.browser (package name)
-Get the app's process ID
adb shell Ps|grep Com.android.browser (package name)
-Get total traffic for the process
ADB shell cat/proc/1516 (process ID)/net/dev
-Get current charge
adb shell Dumpsys Battery
-Switch to non-charging status
ADB shell Dumpsys Battery Set Status 1
-Monitor Memory usage
Add Shell top-d 1 >meminfo
Cat Men Info |grep com.android.browser
Android Performance Test adb command