The name is Zygisk

This commit is contained in:
topjohnwu 2021-08-17 23:38:40 -07:00
parent cf8f042a20
commit c252a50fd7
12 changed files with 11 additions and 9 deletions

View File

@ -4,8 +4,8 @@ LOCAL_PATH := $(call my-dir)
# Binaries # Binaries
######################## ########################
# Global toggle for the WIP zygote injection features # Global toggle for Zygisk
ENABLE_INJECT := 1 DISABLE_ZYGISK := 0
ifdef B_MAGISK ifdef B_MAGISK
@ -38,15 +38,17 @@ LOCAL_SRC_FILES := \
LOCAL_LDLIBS := -llog LOCAL_LDLIBS := -llog
LOCAL_CPPFLAGS := -DENABLE_INJECT=$(ENABLE_INJECT) LOCAL_CPPFLAGS := -DENABLE_INJECT=$(ENABLE_INJECT)
ifeq ($(ENABLE_INJECT),1) ifeq ($(DISABLE_ZYGISK),1)
LOCAL_SRC_FILES += magiskhide/proc_monitor.cpp
LOCAL_CPPFLAGS := -DENABLE_INJECT=0
else
LOCAL_STATIC_LIBRARIES += libxhook LOCAL_STATIC_LIBRARIES += libxhook
LOCAL_SRC_FILES += \ LOCAL_SRC_FILES += \
inject/entry.cpp \ zygisk/entry.cpp \
inject/utils.cpp \ zygisk/utils.cpp \
inject/hook.cpp \ zygisk/hook.cpp \
inject/memory.cpp zygisk/memory.cpp
else LOCAL_CPPFLAGS := -DENABLE_INJECT=1
LOCAL_SRC_FILES += magiskhide/proc_monitor.cpp
endif endif
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)