Refactoring Kconfig to optimize KernelSU-related configuration and simplify conditional dependency logic
This commit is contained in:
@@ -19,8 +19,6 @@ config KSU_DEBUG
|
||||
config KSU_MANUAL_HOOK
|
||||
bool "Manual hooking GKI kernels without kprobes"
|
||||
depends on KSU && KSU != m
|
||||
depends on KPROBES
|
||||
default y if KSU_GKI_KERNEL
|
||||
default n
|
||||
help
|
||||
Keep KPROBES enabled but do not use KPROBES to implement
|
||||
@@ -35,8 +33,9 @@ config KSU_GKI_KERNEL
|
||||
|
||||
config KSU_HOOK_KPROBES
|
||||
bool
|
||||
depends on KPROBES
|
||||
depends on KSU_GKI_KERNEL
|
||||
default y if !KSU_MANUAL_HOOK
|
||||
default n
|
||||
help
|
||||
Internal flag to indicate whether KPROBES should be used for hooking.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user