Ylarod 2f970f7ab8 kernel: refact (#113)
* refact

* sort inlude

* update

* unregister execve kprobe

* update log

* don't unregister if not in kprobe

* opt for no kprobe

* opt for no kprobe

* stop debug

* don't forget to call ksu_uid_observer_exit

* rename core to core_hook

* direct call do_persistent_allow_list

* add prefix

* use getter, add warn

* add wrapper

* run clang-format

clang-format --style="{BasedOnStyle: InheritParentConfig, SortIncludes: true}" -i kernel/**/*.[ch]

* try fix wsa x64 build
2023-01-25 21:53:19 +08:00
2023-01-25 21:53:19 +08:00
2023-01-16 19:18:42 +08:00
2022-12-09 22:03:55 +08:00

English | 中文

KernelSU

A Kernel based root solution for Android GKI.

Before Reading

Now KernelSU supports old kernel under 5.10, but THERE WILL NEVER be a CI for old kernels, because they are not generic. ANY ISSUES ABOUT HOW TO COMPILE A OLD KERNEL WILL NOT BE ANSWERED AND WILL BE CLOSED.

KernelSU is in a early development stage and you should not put it into production enviroment. KernelSU developers will not be responsible for any of your losses.

If you face any issue, feel free to open a issue and tell us about it!

Compatibility State

Now KernelSU will work on these version of kernels without any modification

  • 5.15
  • 5.10
  • 5.4
  • 4.19
  • 4.14

And the current supported ABIs are : arm64-v8a & x86_64

If you confirm KernelSU works on other version, open a issue tell us about it!

Usage

  1. Flash a custom kernel with KernelSU, you can build it yourself or download it from CI.
  2. Install Manager App and enjoy :)

For old kernels under 5.10, you must build custom kernels by yourself.

Build

Build GKI Kernel

  1. Download the GKI source first, you can refer the GKI build instruction
  2. cd <GKI kernel source dir>
  3. curl -LSs "https://raw.githubusercontent.com/tiann/KernelSU/main/kernel/setup.sh" | bash -
  4. Build the kernel.

Build the Manager App

Android Studio / Gradle

Discussion

@KernelSU

License

GPL-3

Credits

Description
No description provided
Readme GPL-3.0 60 MiB
Languages
Kotlin 67.1%
C 20%
Rust 11.1%
Shell 0.9%
Makefile 0.4%
Other 0.4%