方法一:
1、打开应用
2、adb shell dumpsys window w | findstr \/ | findstr name=
或 adb shell dumpsys window |findstr mCurrent
或 adb shell "dumpsys window w|grep \/|grep name=|sed 's/mSurface=Surface(name=//g'|sed 's/)//g'|sed 's/ //g'"
方法二:
1、adb shell pm list packages 获取到包名
2、adb logcat -c
adb logcat ActivityManager:I *:s 获取到启动应用的主界面名
同时要打开app