From cd714527e9bc520e0311f2bdf4aa131d96572937 Mon Sep 17 00:00:00 2001 From: 5ec1cff Date: Sun, 31 Dec 2023 14:27:19 +0800 Subject: [PATCH] remove unnecessary jni hook logs --- loader/src/injector/hook.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/loader/src/injector/hook.cpp b/loader/src/injector/hook.cpp index ddf3ea86..be3193ee 100644 --- a/loader/src/injector/hook.cpp +++ b/loader/src/injector/hook.cpp @@ -236,14 +236,12 @@ void hookJniNativeMethods(JNIEnv *env, const char *clz, JNINativeMethod *methods if (mid == nullptr) { env->ExceptionClear(); nm.fnPtr = nullptr; - LOGE("Could not found jni method in class %s: %s(%s)", clz, nm.name, nm.signature); continue; } auto method = lsplant::JNI_ToReflectedMethod(env, clazz, mid, is_static); auto modifier = lsplant::JNI_CallIntMethod(env, method, member_getModifiers); if ((modifier & MODIFIER_NATIVE) == 0) { nm.fnPtr = nullptr; - LOGE("Don't hook method because it's not native method: %s: %s(%s)", clz, nm.name, nm.signature); continue; } auto artMethod = lsplant::art::ArtMethod::FromReflectedMethod(env, method);