Hi,
I try to hook the static method. But, when the original method is invoked, some exceptions are thrown. The example is as follow.
Java static method: Lexample;->test()V
My hook method:
void sb_test(JNIEnv _env) {
dalvik_prepare(&d, &sb, env);
(_env)->CallStaticVoidMethod(env, sb.cls, sb.mid); // Exception is here!!
dalvik_postcall(&d, &sb);
}
Is there any problem? Thank for very much!
Hi,
I try to hook the static method. But, when the original method is invoked, some exceptions are thrown. The example is as follow.
Java static method: Lexample;->test()V
My hook method:
void sb_test(JNIEnv _env) {
dalvik_prepare(&d, &sb, env);
(_env)->CallStaticVoidMethod(env, sb.cls, sb.mid); // Exception is here!!
dalvik_postcall(&d, &sb);
}
Is there any problem? Thank for very much!