I intercepted the java call at entry_point_from_quick_compiled_code_in_ArtMethod, from here I can call JNI methods like GetMethodID, GetStringUTFChars and so on, however, when calling methods like FindClass, NewObject, CallObjectMethod at here, it will crash app, it seems I can only get data here but can't call a java method;
What I really want here is to print the java stack here, any suggestion about how to implement this feature at this hook point like:
- how should I successfully call a java method here?
- or any method that I can call/hook the art functions that can give me the stack trace?
Thanks