| 18 | } HookEnv; |
| 19 | |
| 20 | static const char *GetMethodDesc(JNIEnv *env, jobject javaMethod) { |
| 21 | auto desc = reinterpret_cast<jstring>(env->CallStaticObjectMethod(HookEnv.method_utils_class, |
| 22 | HookEnv.get_method_desc_id, |
| 23 | javaMethod)); |
| 24 | return env->GetStringUTFChars(desc, JNI_FALSE); |
| 25 | } |
| 26 | |
| 27 | static const char *GetMethodDeclaringClass(JNIEnv *env, jobject javaMethod) { |
| 28 | auto desc = reinterpret_cast<jstring>(env->CallStaticObjectMethod(HookEnv.method_utils_class, |