how access current and focused window in android adb

1.2k views Asked by At

I am using Android API 30 adb

adb shell dumpsys window windows

but it is not showing mCurrentFocused and mFocused app

Kindly help me out

1

There are 1 answers

2
WENDELL MARQUES On

I think you can try this:

dumpsys window | grep -E "mCurrentFocus