基本命令
adb devices
adb install com.xxx
adb install -r com.xxx
adb uninstall com.xxx
adb kill-server
adb start-server
adb shell pm list packages
adb shell pm list packages -3
adb shell /system/bin/screencap -p /sdcard/xxx.png
adb pull /sdcard/xx.png ./
adb push ./xxx /sdcard/xxx
adb shell pm clear com.xxx
adb shell am start -n com.xxx.activity/.xxxActivity
adb shell am force-stop com.xxx
adb logcat
adb logcat -b all
adb logcat > ./xxx/1.txt
adb logcat -G 4m
adb shell pm list features
adb shell list users
高级命令
adb shell ps -A | grep 包名
adb shell input text "123456"
adb shell "cat /system/build.prop | grep "product""
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk
adb shell getprop ro.product.model
adb shell getprop ro.product.brand
adb shell getprop ro.serialno
adb shell cat /sys/class/net/wlan0/address
adb shell cat /proc/meminfo
adb shell df
adb shell df /data
adb shell df /storage/sdcard
adb shell wm density
aapt dump badging +包的全路径
adb shell pm list package -f
文件查询
ls | xargs du -sh
du -sh *
df -h
adb remount报verity错误
adb root
adb disable-verity
adb reboot
adb root
adb remount