觸摸事件
adb shell input tap x y
滑動事件
adb shell input swipe x1 y1 x2 y2
長按事件
adb shell input swipe x1 y1 x2 y2 ms
清除數(shù)據(jù)
adb shell pm clear 包名
連接
adb wait-for-device
adb remount
adb connect 192.168.1.3
log
// 清除日志
adb logcat -c
// 輸出
adb logcat -v time >log.txt
導(dǎo)出Androidlog
adb pull data/log/android_log log
閃退日志
adb pull data/system/dropbox dropbox
啟動頁面
adb shell am start -n 包名/頁面路徑
取消權(quán)限或者授權(quán)
adb shell pm revoke|grant 包名 權(quán)限名稱
截圖并且導(dǎo)出
adb shell screencap -p /sdcard/test.png
adb pull /sdcard/test.png d:/temp/test.png
查看內(nèi)存
adb shell cat /proc/meminfo
參考文章
[adb shell中的am pm命令 - 飄飄雪 - 博客園 ](https://www.cnblogs.com/wangcp-2014/p/6076035.html)