Add lsplt

This commit is contained in:
Nullptr
2023-01-30 17:46:38 +08:00
parent 851c7120ec
commit b9ce45bd6e
5 changed files with 21 additions and 9 deletions

View File

@@ -16,4 +16,5 @@ android {
dependencies {
implementation("dev.rikka.ndk.thirdparty:cxx:1.2.0")
implementation("org.lsposed.lsplt:lsplt-standalone:1.1")
}

View File

@@ -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)

View File

@@ -0,0 +1,9 @@
#include <lsplt.hpp>
#include "logging.h"
extern "C"
void entry(void* handle) {
LOGD("Injector handle: %p", handle);
}