adb shell dumpsys window | findstr mCurrentFocus输出mCurrentFocus=Window{bb3cc2c u0 com.tencent.mm/com.tencent.mm.ui.LauncherUI}调试非常的方便mac要使用grep哦adb shell dumpsys window | grep mCurrentFocus