In actual development, we will use some adb commands, the advantage of doing so is to perform some operations more quickly
In this article, I write down some of my commonly used adb commands, welcome to leave a message
Uninstall apk
adb uninstall +application package name
Install apk:
adb install -r +application.apk
Capture screen (screenshot)
adb shell screencap -p /sdcard/phone.png
View the page package name and class name
adb shell dumpsys activity|findstr "mFocusedActivity"
View screen resolution
adb shell wm size
Check screen density
adb shell wm density
Check the class name by package name
adb shell pm path + package name
Enter the specified Activity
adb shell+Enter
am start -n +package name/package name.class name
Light up the screen
adb shell+Enter+input keyevent 82
Will be updated continuously later