先打开APK,后执行以下命令
adb shell dumpsys window | findstr mCurrentFocus
或
adb shell dumpsys window w | findstr \/ | findstr name=
或
adb shell dumpsys activity | findstr “mResume(需先打开手机应用)
Android 8.1之前应使用
adb shell dumpsys activity | findstr “mFocus
博客介绍了在Android系统中获取当前焦点应用的相关命令。先打开APK,可执行adb shell dumpsys window | findstr mCurrentFocus等命令。同时指出Android 8.1之前应使用adb shell dumpsys activity | findstr “mFocus 。
先打开APK,后执行以下命令
adb shell dumpsys window | findstr mCurrentFocus
或
adb shell dumpsys window w | findstr \/ | findstr name=
或
adb shell dumpsys activity | findstr “mResume(需先打开手机应用)
Android 8.1之前应使用
adb shell dumpsys activity | findstr “mFocus
1141
4473

被折叠的 条评论
为什么被折叠?
