adb工作常用命令

adb devices 查看手机名

 adb shell链接手机

dumpsys window windows |grep -i current 打开软件,查看软件入口,和包名,白色为包名,红框为包入口

 

不用进入手机直连

adb shell dumpsys window | findstr mCurrentFocus

adb logcat  查看手机日志

adb install 用于安装

adb uninstall 用于卸载

adb uninstall 后面带的是应用的包名,而不是应用名。

原文地址:https://www.cnblogs.com/lly-lcf/p/12684659.html