From 6b4e7f5515c71452b52a50a12bd5dd289ca7fc5c Mon Sep 17 00:00:00 2001 From: LoveSy Date: Thu, 28 Jan 2021 17:52:37 +0800 Subject: [PATCH] Bring back IsInSamePackage --- .../src/main/cpp/main/include/art/runtime/mirror/class.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/edxp-core/src/main/cpp/main/include/art/runtime/mirror/class.h b/edxp-core/src/main/cpp/main/include/art/runtime/mirror/class.h index 377780e0..8aee170b 100644 --- a/edxp-core/src/main/cpp/main/include/art/runtime/mirror/class.h +++ b/edxp-core/src/main/cpp/main/include/art/runtime/mirror/class.h @@ -61,13 +61,7 @@ namespace art { RETRIEVE_MEM_FUNC_SYMBOL(GetClassDef, "_ZN3art6mirror5Class11GetClassDefEv"); -// RETRIEVE_FIELD_SYMBOL(mutator_lock_, "_ZN3art5Locks13mutator_lock_E"); -// LOGE("mutator_lock_: %p", mutator_lock_); - -// edxp::HookSyms(handle, hook_func, IsInSamePackage); - -// HOOK_FUNC(ClassForName, -// "_ZN3artL18Class_classForNameEP7_JNIEnvP7_jclassP8_jstringhP8_jobject"); + edxp::HookSyms(handle, hook_func, IsInSamePackage); } const char *GetDescriptor(std::string *storage) {