get_current_app_focus does not work on Android 13
jpstotz opened this issue · 1 comments
The command dumpsys window windows | grep mCurrentFocus
does not return anything on Android 13.
Because of this the function get_current_app_focus
does only output Device might be locked... (mCurrentFocus=)
.
The command dumpsys activity activities | grep -E 'mCurrentFocus|mFocusedApp'
may be analternative at least it gives me a result on Android 13.
@jpstotz thank you for reporting this bug.
The Frida API has evolved and currently has a way to get the 'current app'. I've pushed a new update incorporating this in commit d7a1e89
I still need a way to grab the current activity, so I'm using your command dumpsys activity activities
.
Going to test it further in case it breaks some other things I'm unaware off.
Cheers!