Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_current_app_focus does not work on Android 13 #6

Open
jpstotz opened this issue Oct 17, 2023 · 2 comments
Open

get_current_app_focus does not work on Android 13 #6

jpstotz opened this issue Oct 17, 2023 · 2 comments

Comments

@jpstotz
Copy link

jpstotz commented Oct 17, 2023

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.

@Hamz-a
Copy link
Owner

Hamz-a commented Dec 30, 2023

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@jpstotz @Hamz-a and others