mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-01-11 22:03:37 +00:00
The name is Zygisk
This commit is contained in:
parent
cf8f042a20
commit
c252a50fd7
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user