常用基础命令
adb devices
adb install [可选参数] xxxx.apk
adb uninstall 包名
adb reboot
adb root
adb remount
adb push 文件路径 目标文件路径
adb pull 设备内文件路径 本地路径
shell命令
adb shell
exit
adb shell /system/bin/screencap -p /sdcard/screenshot.png
adb shell screenrecord [可选参数] /sdcard/demo.mp4
adb shell am start com.android.settings -C android.intent.category.LAUNCHER
adb shell am force-stop com.android.settings
adb shell am start com.android.browser -C android.intent.category.LAUNCHE
adb shell getprop
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk
adb shell "cat /system/build.prop | grep "product""
adb shell getprop | grep "model\|version.sdk\|manufacturer\|hardware\|platform\|revision\|serialno\|product.name\|brand"
adb shell "dumpsys window | grep mUnrestrictedScreen"
adb shell dumpsys package 包名
adb shell dumpsys package 包名 | findstr version
adb shell dumpsys activity
adb shell dumpsys window w | grep \/ | grep name=
adb shell logcat -v time thread | tee ~/log.log
adb shell logcat -v time thread > log.log
Linux 常用命令
cat /system/build.prop
netcfg
cat /sys/class/net/wlan0/address
cat /proc/meminfo
cat /proc/cpuinfo
df
模拟操作
adb shell input keyevent 4
adb shell input keyevent 82
adb shell input text abc
其他操作按键对照参考