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

Function GetMethodDeclaringClass

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

Source from the content-addressed store, hash-verified

25}
26
27static const char *GetMethodDeclaringClass(JNIEnv *env, jobject javaMethod) {
28 auto desc = reinterpret_cast<jstring>(env->CallStaticObjectMethod(HookEnv.method_utils_class,
29 HookEnv.get_method_declaring_class_id,
30 javaMethod));
31 return env->GetStringUTFChars(desc, JNI_FALSE);
32}
33
34static const char *GetMethodName(JNIEnv *env, jobject javaMethod) {
35 auto desc = reinterpret_cast<jstring>(env->CallStaticObjectMethod(HookEnv.method_utils_class,

Callers 1

HookJniFunMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected