adb shell dumpsys window windows output not showing mCurrentFocused

1.4k views Asked by At

I am using

adb shell dumpsys window windows

command but the output is not showing mCurrentFocused using Virtual device Nexus 6P API 30 Kindly help me out or alternate command

1

There are 1 answers

0
Baala On

Try using the below command, worked for me to get appPackage/appActivity (com.android.chrome/com.google.android.apps.chrome.Main - For Chrome Browser)

dumpsys activity | grep -E 'mCurrentFocus|mFocusedApp'