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 Android APIs in Android 8 #8

Open
Angelawj60311 opened this issue Oct 27, 2017 · 1 comment
Open

Cannot hook Android APIs in Android 8 #8

Angelawj60311 opened this issue Oct 27, 2017 · 1 comment

Comments

@Angelawj60311
Copy link

I try to use your approach to hook some Android APIs in Android 8. I have made some version adjustment. But the Android API cannot be hooked successfully after entry_point_from_quick_compiled_code_ is modified to be ArtQuickInstrumentTrampoline. Before hooking, I checked the value of entry_point_from_quick_compiled_code_ in an ArtMethod and found it points to art_quick_to_interpreter_bridge which could mean that my system is running in interpreter mode. Do you know how to solve the problem?

@Rprop
Copy link

Rprop commented Nov 9, 2017

it seems that you are running in force-interpreter-only mode, in which case ArtMethod's entry_point_from_quick_compiled_code_ will not be used unless the ArtMethod is native or called outside the interpreter. so, an idea is to make the ArtMethod native.

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

2 participants