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

Method HookJniFun

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

Source from the content-addressed store, hash-verified

49}
50
51void JniHook::HookJniFun(JNIEnv *env, jobject java_method, void *new_fun,
52 void **orig_fun, bool is_static) {
53 const char *class_name = GetMethodDeclaringClass(env, java_method);
54 const char *method_name = GetMethodName(env, java_method);
55 const char *sign = GetMethodDesc(env, java_method);
56 HookJniFun(env, class_name, method_name, sign, new_fun, orig_fun, is_static);
57}
58
59void
60JniHook::HookJniFun(JNIEnv *env, const char *class_name, const char *method_name, const char *sign,

Callers

nothing calls this directly

Calls 4

GetMethodDeclaringClassFunction · 0.85
GetMethodNameFunction · 0.85
GetMethodDescFunction · 0.85
CheckFlagsFunction · 0.85

Tested by

no test coverage detected