Skip to content

RapliVx/KernelSU

 
 

Repository files navigation

Mambo Banner

KernelSU (Rapli's Fork)

Build Manager License

A Kernel-based root solution for Android devices.

[!NOTE] Official KernelSU support for Non-GKI kernels has been ended.

This is unofficial KernelSU fork, all changes are not guaranteed stable!

All rights reserved to @tiann, the author of KernelSU.

Introduction

KernelSU is a kernel-based root solution for Android GKI devices. It works in kernel mode and grants root permission to userspace applications directly in kernel space.

Features

  1. Kernel-based su and root access management.
  2. Module system based on Metamodule
  3. App Profile: Lock up the root power in a cage.

How to add MamboSU kernel driver into your kernel source

  • main branch
curl -LSs "https://raw.githubusercontent.com/RapliVx/KernelSU/refs/heads/master/kernel/setup.sh" | bash -s master
  • susfs branch

Warning

This branch is not always updated.

curl -LSs "https://raw.githubusercontent.com/RapliVx/KernelSU/refs/heads/susfs-rksu-master/kernel/setup.sh" | bash -s susfs-rksu-master

Hook method

  1. Syscall hook:
    • Used for Loadable Kernel Module (LKM) or GKI with this hook.
    • Default hook method on GKI kernels.
    • Does not support armv7l.
    • Need CONFIG_KSU_SYSCALL_HOOK=y & CONFIG_KPROBES=y, CONFIG_KRETPROBES=y, CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
  2. Manual hook:

Compatibility State

  • Kernel compatibility:
    • Android GKI 2.0 (5.10+): aarch64, armv8l, x86_64
    • Android GKI 1.0 (5.4): aarch64, armv8l, armv7l
    • Non-GKI (4.4-4.19): aarch64, armv8l, armv7l
  • Application compaibility (ksud/manager):
    • arm64-v8a, armeabi-v7a, x86_64

Usage

Discussion

Security

For information on reporting security vulnerabilities in KernelSU, see SECURITY.md.

License

Credits

About

personal fork, focused on lkm

Resources

License

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Kotlin 49.2%
  • C 20.5%
  • Rust 17.4%
  • Java 3.8%
  • CSS 2.6%
  • C++ 2.1%
  • Other 4.4%