-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Description
extern "C" [[gnu::visibility("default")]] [[gnu::used]]
jint JNI_OnLoad(JavaVM *jvm, void*) {
JNIEnv *env = nullptr;
jvm->GetEnv((void **)&env, JNI_VERSION_1_6);
hook_func((void *)env->functions->FindClass, (void *)fake_FindClass, (void **)&backup_FindClass);
return JNI_VERSION_1_6;
}We can get JNIEnv after JNI_OnLoad. But can we get JNIEnv after on_library_loaded ? I need to hook app's native lib and call java methods of my xposed module from native code
Metadata
Metadata
Assignees
Labels
No labels