Skip to content

rsuntk/KernelSU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

KernelSU

A Kernel-based root solution for Android devices.

Note

Official KernelSU support for Non-GKI kernels has been ended.

This is unofficial fork, all rights reserved to @tiann

Latest release Latest LKM release Channel License: GPL v2 GitHub License

How to add

curl -LSs "https://raw.githubusercontent.com/rsuntk/KernelSU/main/kernel/setup.sh" | bash -s main

Hook method

  1. KPROBES hook:
    • Also used for Loadable Kernel Module (LKM)
    • Default hook method on GKI kernels.
    • Need CONFIG_KSU_MANUAL_HOOK=n
  2. Manual hook:

ARM32 Use-case

This fork have 32-bit support. Disable CONFIG_KSU_64BIT, CONFIG_KPROBES and Enable CONFIG_KSU_MANUAL_HOOK=y (Manual hook recommened!).

You should not disable KSU_64BIT option on 64-bit kernel and userspace! Otherwise unwanted things may happens!

Use case: 64-bit kernel & 32-bit userspace (armv8l) only.

Features

  1. Kernel-based su and root access management.
  2. Module system based on 5ec1cff's Magic Mount API on KernelSU
  3. App Profile: Lock up the root power in a cage.
  4. Bringing back non-GKI/GKI 1.0 support
  5. Added bare armeabi-v7a/arm32 support.

Compatibility State

KernelSU (before v1.0.0) officially supports Android GKI 2.0 devices (kernel 5.10+).

Older kernels (4.4+) are also compatible, but the kernel will have to be built manually.

With more backports, KernelSU can supports 3.x kernel (3.4-3.18).

Currently, only arm64-v8a and armeabi-v7a (bare) are supported.

Usage

Discussion

Security

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

License

Credits

About

KernelSU with MagicMount, support GKI and Non-GKI. Updates: https://t.me/rsukrnlsu

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 43.8%
  • C 22.5%
  • Rust 19.1%
  • Java 6.3%
  • TypeScript 2.7%
  • Shell 2.2%
  • Other 3.4%