1、获取当前界面应用的包名
命令:>adb shell “dumpsys window | grep mCurrentFocus”
说明:“/”后面的是“appPackage.appActivity”
2、获取apk包名【1】
命令:>adb shell pm list package -f
命令:>adb shell pm list package -f | findstr calculator
3、获取appActivity
命令:>adb shell “dumpsys activity | grep startimes”
4、获取程序入口
命令:>adb logcat | findstr Displayed
此时启动APP
5、获取apk包名、launcherActivity【2】
命令:>aapt dump badging F:\apk名称.apk
查找launcherActivity: