1.查看手机里面的所有包名:adb shell pm list package
2.查看手机系统自带的所有包名:adb shell pm list package -s
3.查看手机系统安装的第三方软件包名:adb shell pm list package -3
4.查看手机里面软件的安装路径:adb shell pm list package -f
5.查看手机里当前打开软件的appPackage和appActivity的属性信息:adb shell dumpsys window windows | findstr “Current”
6.在SDK的Android\sdk\tools\bin文件下启动uiautomatorviewer.bat,如果无法打开的话可以将ADB程序拷入到此文件夹,参考:https://blog.csdn.net/m578403998/article/details/80824604https://blog.csdn.net/m578403998/article/details/80824604