adb小结

1.查看应用包名
adb shell dumpsys window | grep mCurrentFocus
2.查看进程列表
adb shell ps
3.卸载系统应用
adb shell pm uninstall -k --user 0 com.xxx.xxx(包名)
可能会遇到以下错误:
Failure [-1000]
Failure - not installed for 0
4.启动进程/杀死进程
adb start-server
adb kill-server
5.安装/卸载应用
adb install 包名
adb uninstall 包名

你可能感兴趣的:(adb小结)