You've already forked KernelSU-Next
mirror of
https://github.com/KernelSU-Next/KernelSU-Next.git
synced 2025-08-27 23:46:34 +00:00
Since upstream is now making kprobes a requirement, we adapt this tree to still allow building with manual hooks in an easier way. Furthermore, this also allows a user to build with manual hooks even with kprobes enabled. Offending commit: kernel: remove unused CONFIG guard becuase GKI kernel enable kprobe by default upstream: https://github.com/tiann/KernelSU/commit/500ff9b Other changes: ksud.c, stop_input_hook(), short-circuit redundant logic left by this change. cherry pick from: https://github.com/backslashxx/KernelSU/commit/a3d3e93 Signed-off-by: backslashxx <118538522+backslashxx@users.noreply.github.com>
36 lines
811 B
Plaintext
36 lines
811 B
Plaintext
menu "KernelSU"
|
|
|
|
config KSU
|
|
tristate "KernelSU function support"
|
|
depends on OVERLAY_FS
|
|
default y
|
|
help
|
|
Enable kernel-level root privileges on Android System.
|
|
To compile as a module, choose M here: the
|
|
module will be called kernelsu.
|
|
|
|
config KSU_WITH_KPROBES
|
|
bool "Use kprobes for kernelsu"
|
|
depends on KSU
|
|
depends on KPROBES
|
|
default y
|
|
help
|
|
Disable if you use manual hooks.
|
|
|
|
config KSU_DEBUG
|
|
bool "KernelSU debug mode"
|
|
depends on KSU
|
|
default n
|
|
help
|
|
Enable KernelSU debug mode.
|
|
|
|
config KSU_ALLOWLIST_WORKAROUND
|
|
bool "KernelSU Session Keyring Init workaround"
|
|
depends on KSU
|
|
default n
|
|
help
|
|
Enable session keyring init workaround for problematic devices.
|
|
Useful for situations where the SU allowlist is not kept after a reboot.
|
|
|
|
endmenu
|