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

Cannot hook private/hidden API #166

Open
vegedreamgagnoa opened this issue Mar 5, 2022 · 1 comment
Open

Cannot hook private/hidden API #166

vegedreamgagnoa opened this issue Mar 5, 2022 · 1 comment

Comments

@vegedreamgagnoa
Copy link

vegedreamgagnoa commented Mar 5, 2022

It's weird. I tried to hook android.view.WindowManagerGlobal#getInstance method on an x86_64 Android Emulator (API 28/Android 9) as a sample and YAHFA reported that the hook and backup done, but actually the method was not hooked. Hooking non-private/non-hidden API was not a problem!

Could you help? Pine and Whale works great in this case (both can easily work with Private/Hidden API/Class); I don't see why YAHFA is failing in this one.

@vegedreamgagnoa
Copy link
Author

vegedreamgagnoa commented Mar 5, 2022

More info:

I tried to hook VMDebug#dumpHprofData which is a private class/API marked with @hide, and it works fine with YAHFA.

Seems like the problem is hooking hidden virtual methods!!!!

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