Last active
May 30, 2024 12:55
-
-
Save pantos27/a19762b1edd3f785733bb343990a891f to your computer and use it in GitHub Desktop.
get current activity wit ADB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp|mObscuringWindow' |
not working for Android API 30
Thanks for the heads up. I've updated the script to work with API 29 and above
I used
adb shell dumpsys window displays | grep -E 'mCurrentFocus|mFocusedApp
is it OK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
not working for Android API 30