Skip to content
 
 

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 xxksu kernel driver with MamboSU App Support into your kernel source

  • xxksu branch
curl -LSs "https://raw.githubusercontent.com/RapliVx/KernelSU/xxksu/kernel/setup.sh" | bash -s xxksu

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:
  3. Hookless / MamboHook:
    • Unlike manual hooking, this method does not require patching the kernel source; you simply add the KernelSU driver to the kernel source and enable the CONFIG_KSU and CONFIG_KSU_TAMPER_SYSCALL_TABLE configurations.

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

Security policy

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages