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
|
config KSU_MANUAL_HOOK
|
||||||
bool "Manual hooking GKI kernels without kprobes"
|
bool "Manual hooking GKI kernels without kprobes"
|
||||||
depends on KSU && KSU != m
|
depends on KSU && KSU != m
|
||||||
depends on KPROBES
|
|
||||||
default y if KSU_GKI_KERNEL
|
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
Keep KPROBES enabled but do not use KPROBES to implement
|
Keep KPROBES enabled but do not use KPROBES to implement
|
||||||
@@ -35,8 +33,9 @@ config KSU_GKI_KERNEL
|
|||||||
|
|
||||||
config KSU_HOOK_KPROBES
|
config KSU_HOOK_KPROBES
|
||||||
bool
|
bool
|
||||||
|
depends on KPROBES
|
||||||
|
depends on KSU_GKI_KERNEL
|
||||||
default y if !KSU_MANUAL_HOOK
|
default y if !KSU_MANUAL_HOOK
|
||||||
default n
|
|
||||||
help
|
help
|
||||||
Internal flag to indicate whether KPROBES should be used for hooking.
|
Internal flag to indicate whether KPROBES should be used for hooking.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user