adb常用命令

https://www.csdn.net/tags/OtTaIg1sNzc4MzctYmxvZwO0O0OO0O0O.html

1,手机重启 adb shell reboot

2,切换adb输入法 可以输入中文 adb shell ime set com.android.adbkeyboard/.AdbIME

3,  adb 模拟点击  adb shell input tap x y

4,手机home键  adb shell input keyevent 3

5,安装app   adb shell pm install xxx.xxx.xxx

6,   卸载app   adb shell pm uninstall xxx.xxx.xx

7,杀死app进程   adb shell am force-stop xxx.xxx.xxx

8,   清除app缓存  adb shell pm clear xxx.xxx.xxx

9,   模拟滑动 adb shell input swipe  x y x y

10,  输入内容 adb shell input text "123"

11,adb拉起app  adb shell am start 包名/.启动类名

原文地址:https://www.cnblogs.com/auschwitzer/p/15651290.html