I hooked JNI_OnLoad with success, but I have an issue on hook FindClass.
It's works only one time. In JNI_OnLoad there is a call to FindClass and I can catch it, but when the app android call native method and inside this method there is another call to FindClass, I can't catch.
Could you tell me where my mistake?
In fake_JNI_Onload I called
DobbyHook((void *)env->functions->FindClass, (void *)fake_FindClass, (void **)&orig_FindClass);
and I have all call to FindClass.
I hooked JNI_OnLoad with success, but I have an issue on hook FindClass. It's works only one time. In JNI_OnLoad there is a call to FindClass and I can catch it, but when the app android call native method and inside this method there is another call to FindClass, I can't catch. Could you tell me where my mistake?
This is my code: