Appium查看应用包名
方式一没有apk
如果应用已经安装在手机上了(例如应用商城下载)。可以直接打开手机上该应用,
进入到要操作的界面然后执行:
adb shell dumpsys activity recents | find "intent={"
会显示如下,最近几个activity信息
如果已经下载了apk,在命令行窗口执行 (find "package: name=")
F:\APP\Android\androidsdk\build-tools\29.0.3\aapt.exe dump badging E:\App\bilibili\iBiliPlayer-bili.apk | find "package: name="
得到包名
获取 Activity (find "launchable-activity")
F:\APP\Android\androidsdk\build-tools\29.0.3\aapt.exe dump badging E:\App\bilibili\iBiliPlayer-bili.apk | find "launchable-activity"