Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的

笛里谁知壮士心,沙头空照征人骨。这篇文章主要讲述Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的相关的知识,希望能为你提供帮助。
adb shell dumpsys activity activities | findstr mFocusedActivity
android 7.0 现象:

Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的

文章图片

Android 8.0 现象:
Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的

文章图片

改用:
  adb shell dumpsys activity activities | findstr mResumedActivity
Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的

文章图片

【Android 8.0 adb shell dumpsys activity activities | findstr mFocusedActivity 获取当前的 activity 显示空的】 

    推荐阅读