mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-11 12:47:27 +00:00
Reduce verbose logging in Zygisk
This commit is contained in:
@@ -496,7 +496,7 @@ void HookContext::hook_jni_methods(JNIEnv *env, const char *clz, JNIMethods meth
|
|||||||
auto &new_method = new_methods[i];
|
auto &new_method = new_methods[i];
|
||||||
if (new_method.fnPtr == method.fnPtr) {
|
if (new_method.fnPtr == method.fnPtr) {
|
||||||
auto &old_method = old_methods[i];
|
auto &old_method = old_methods[i];
|
||||||
ZLOGD("replace %s#%s%s %p -> %p\n", clz, method.name, method.signature, old_method.fnPtr, method.fnPtr);
|
ZLOGV("replace %s#%s%s %p -> %p\n", clz, method.name, method.signature, old_method.fnPtr, method.fnPtr);
|
||||||
method.fnPtr = old_method.fnPtr;
|
method.fnPtr = old_method.fnPtr;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@@ -19,8 +19,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Extreme verbose logging
|
// Extreme verbose logging
|
||||||
#define ZLOGV(...) ZLOGD(__VA_ARGS__)
|
//#define ZLOGV(...) ZLOGD(__VA_ARGS__)
|
||||||
//#define ZLOGV(...) (void*)0
|
#define ZLOGV(...) (void*)0
|
||||||
|
|
||||||
void hook_entry();
|
void hook_entry();
|
||||||
void hookJniNativeMethods(JNIEnv *env, const char *clz, JNINativeMethod *methods, int numMethods);
|
void hookJniNativeMethods(JNIEnv *env, const char *clz, JNINativeMethod *methods, int numMethods);
|
||||||
|
Reference in New Issue
Block a user