I am try to using the code below to get the current screen, but I cannot get what is the current screen of my phone.
adb dumpsys window windows | findstr mFocusedApp
or
adb dumpsys window windows | findstr mCurrentFocus
Anyone can exist me how to get the current screen?