MCPcopy Create free account
hub / github.com/CodingGay/BlackDex / InitJniHook

Method InitJniHook

Bcore/src/main/cpp/jnihook/JniHook.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void JniHook::InitJniHook(JNIEnv *env, int api_level) {
104 HookEnv.api_level = api_level;
105
106 HookEnv.method_utils_class = env->FindClass("top/niunaijun/jnihook/MethodUtils");
107 HookEnv.get_method_desc_id = env->GetStaticMethodID(HookEnv.method_utils_class, "getDesc",
108 "(Ljava/lang/reflect/Method;)Ljava/lang/String;");
109 HookEnv.get_method_declaring_class_id = env->GetStaticMethodID(HookEnv.method_utils_class,
110 "getDeclaringClass",
111 "(Ljava/lang/reflect/Method;)Ljava/lang/String;");
112 HookEnv.get_method_name_id = env->GetStaticMethodID(HookEnv.method_utils_class, "getMethodName",
113 "(Ljava/lang/reflect/Method;)Ljava/lang/String;");
114}
115

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected