文章参考
1、输入内容
adb shell input text 123456
2、安装/卸载/清缓存/强制停止
//安装应用
adb install com.test.example
// 重新安装,强制安装
adb install -r com.test.example
//卸载应用
adb shell uninstall com.test.example
//清除应用缓存
adb shell pm clear com.test.example
//强制停止应用
adb shell am force-stop com.test.example
3、列出应用
//列出所有应用
adb shell pm list package
//列出系统应用
adb shell pm list package -5
//列出第三方应用
adb shell pm list package -3
//列出应用存放位置
adb shell pm list package -f
4、其他
//进入设置页面
adb shell am start -n com.android.settinngs/.Settings
//获取屏幕分辨率
adb shell wm size