adb获取包名以及当前运行的activity

1.由包名获取apk路径

adb shell pm path io.ionic.starter

2.打开需要获取的APP,运行一下命令即可

adb shell dumpsys window | findstr mCurrentFocus

adb获取包名以及当前运行的activity