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

How to use frida to define anonymous inner class? #2828

Open
snowman opened this issue Apr 21, 2024 · 0 comments
Open

How to use frida to define anonymous inner class? #2828

snowman opened this issue Apr 21, 2024 · 0 comments

Comments

@snowman
Copy link

snowman commented Apr 21, 2024

final int finalI = i;
menu.getItem(i).setonMenuItemClickListener(new MenuItem.onMenuItemclickListener() {
  @override
  public boolean onMenuItemclick(MenuItem item) {
    XposedBridge.log( "Click " + finalI + "");

    Toast.makeText(
      applicationcontext,
      "You click " + finalI,
      Toast.LENGTH_SHORT
    ).show();

    return false;
  }
});
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

1 participant