ProbeDroid icon indicating copy to clipboard operation
ProbeDroid copied to clipboard

Cannot hook Android APIs in Android 8

Open Angelawj60311 opened this issue 8 years ago • 1 comments

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?

Angelawj60311 avatar Oct 27 '17 22:10 Angelawj60311

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.

Rprop avatar Nov 09 '17 09:11 Rprop