终端使用
mac/linux: adb shell dumpsys window|grep mCurrentFocus
windows: adb shell dumpsys window|findstr mCurrentFocus
例如,mac
:~ $ adb shell dumpsys window|grep mCurrentFocus
mCurrentFocus=Window{efba03d u0 com.android.settings/com.android.settings.Settings}