mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-01-08 19:32:12 -08:00
Refactor hookJniNativeMethods
Utilize NativeBridgeRuntimeCallbacks we obtained from native bridge to directly fetch and modify registered native JNI methods. By doing so, we do not need to keep a copy of every single JNINativeMethod registered in order to provide JNI hooking functionality. Co-authored-by: LoveSy <shana@zju.edu.cn>
This commit is contained in:
@@ -11,7 +11,6 @@ LOCAL_MODULE := magisk
|
||||
LOCAL_STATIC_LIBRARIES := \
|
||||
libbase \
|
||||
libsystemproperties \
|
||||
libphmap \
|
||||
liblsplt \
|
||||
libmagisk-rs
|
||||
|
||||
@@ -36,7 +35,6 @@ LOCAL_SRC_FILES := \
|
||||
zygisk/entry.cpp \
|
||||
zygisk/main.cpp \
|
||||
zygisk/hook.cpp \
|
||||
zygisk/memory.cpp \
|
||||
zygisk/native_bridge.cpp \
|
||||
zygisk/deny/cli.cpp \
|
||||
zygisk/deny/utils.cpp \
|
||||
|
||||
Reference in New Issue
Block a user