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 best solutions below

2
On

I think you can try this:

dumpsys window | grep -E "mCurrentFocus