You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Add lsplt
This commit is contained in:
@@ -16,4 +16,5 @@ android {
|
||||
|
||||
dependencies {
|
||||
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
|
||||
implementation("org.lsposed.lsplt:lsplt-standalone:1.1")
|
||||
}
|
||||
|
||||
@@ -26,8 +26,9 @@ LOCAL_MODULE := injector
|
||||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/include
|
||||
FILE_LIST := $(filter %.cpp, $(call walk, $(LOCAL_PATH)/injector))
|
||||
LOCAL_SRC_FILES := $(FILE_LIST:COMMON_FILE_LIST:$(LOCAL_PATH)/%=%)
|
||||
LOCAL_STATIC_LIBRARIES := cxx common
|
||||
LOCAL_STATIC_LIBRARIES := cxx common lsplt
|
||||
LOCAL_LDLIBS := -llog
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
||||
$(call import-module,prefab/cxx)
|
||||
$(call import-module,prefab/lsplt)
|
||||
|
||||
9
loader/src/injector/injector.cpp
Normal file
9
loader/src/injector/injector.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <lsplt.hpp>
|
||||
|
||||
#include "logging.h"
|
||||
|
||||
extern "C"
|
||||
void entry(void* handle) {
|
||||
LOGD("Injector handle: %p", handle);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user