window+R打开输入cmd进入输入
adb shell dumpsys window | findstr mCurrentFocus
假如这时我在模拟器打开了任意一个app回车就可以看到打开程序的包名及启动页的actvity
例如:
C:\Users\user>adb shell dumpsys window | findstr mCurrentFocus
mCurrentFocus=Window{41bfdc70 u0 **com.coagent.ac**/**com.coagent.ac.MainActivity**}
第二种方法
根据应用包名查看应用启动路径
adb shell pm path com.android.bluetooth
adb shell dumpsys window | findstr mCurrentFocus