KernelSU Root Installation Guide
KernelSU implements su permission checks in the kernel and manages access through its Manager app. LKM mode keeps the existing kernel but normally patches a ramdisk image to load KernelSU; GKI mode replaces the kernel. Module mounting uses a metamodule. This guide covers compatibility, installation, modules, app profiles and recovery.
Compatibility is device-specific. Match your KMI (kernel module interface), firmware and security patch level rather than your Android version number.
Quick Navigation
- Understanding KernelSU
- KernelSU Variants
- Installation Modes
- Prerequisites & Compatibility
- Installation Methods
- Metamodules & Modules
- App Profiles
- Root Hiding & Play Integrity
- Troubleshooting & Recovery
Related Guides:
- Main Rooting Guide - Complete rooting overview
- Bootloader Unlocking - Required first step
- Root Comparison - Compare with Magisk and APatch
- FAQ - Common questions
Understanding KernelSU
KernelSU uses a kernel-side allowlist and app profiles to control root access. This changes the exposure surface compared with a userspace-based solution, but it does not make root or an unlocked bootloader undetectable.
Core Features
- Kernel-level
suand allowlist - grant access to selected apps or UIDs. - App Profiles - configure UID, GID, groups, capabilities, SELinux domain and mount visibility.
- Metamodules - supply pluggable installation and mounting behavior for regular modules.
- Modules - support scripts, properties, SELinux rules,
initrc/injection, WebUI and module configuration; system-file mounting requires a compatible metamodule. ksudCLI - provides image patching, module management and other commands such aslate-loadandsoft-reboot.- Optional kernel features - supported builds can offer ADB root and a kernel-side event log (
sulog). Enable privileged features only when needed.
Use the official releases for the Manager and matching tools or LKM artifacts. Check the Manager's compatibility warnings and use a compatible Manager and kernel from the same variant.
KernelSU vs Alternatives
| Feature | KernelSU | Magisk | APatch |
|---|---|---|---|
| Architecture | Kernel-based | Ramdisk/init | KernelPatch |
| App control | App Profiles and allowlist | Superuser policies | SuperKey-based access |
| Module mounting | Metamodule for system files | Built-in | Built-in |
| Zygisk | External implementation | Built-in | External implementation |
| Hiding / integrity | App Profiles and optional tools; no guarantee | Community tools; no built-in root hiding | No guarantee |
Choose KernelSU if: your kernel and device are supported and you want kernel-level root with per-app policies. LKM mode keeps the existing kernel, but firmware updates can replace the patched image or change compatibility.
TIP
Detailed comparison: Root Comparison
KernelSU Variants
The KernelSU ecosystem is now mostly forks. Names, maintainers and repositories change quickly, so check that a project is still receiving commits before flashing its kernel.
| Variant | Kernel support | Notes |
|---|---|---|
| Official KernelSU | GKI 2.0 (5.10+), manual backports for older | LKM-first, metamodule-based, official module repository |
| KernelSU-Next | See the fork's kernel requirements | Metamodule-based, ships prebuilt SUSFS LKM susfs_guard_lkm.ko per KMI, module and app profile backup, risk detection that blocks suspicious modules, spoofed-package Manager builds |
| SukiSU Nova (formerly SukiSU-Ultra) | GKI 2.0, plus non-GKI/GKI 1.0 backports | Bundled mount engine with metamodule hooks available, KPM with a compatible kernel configuration, SUSFS controls in the Manager |
| BakaSU (formerly ReSukiSU) | GKI 2.0, manual hooks down to 3.4 | Metamodule-based, built-in SUSFS management, multi-manager support (official or KOWX712 KernelSU Manager can manage its kernel) |
| Wild KSU | Discontinued | Repository archived in 2026; the WildKernels kernel repos still publish KernelSU/KernelSU-Next builds |
How to pick:
- Supported GKI device, stock or near-stock firmware: consider official KernelSU in LKM mode after checking the Manager.
- You want SUSFS or module backup: check whether KernelSU-Next supports your exact device and kernel.
- Non-GKI or KPM support: consider SukiSU Nova after checking your device, kernel and required configuration.
- You want a second manager or old-kernel manual hooks: BakaSU.
WARNING
Everything except official KernelSU is community code. A fork can add detection vectors, drop in maintenance, or rename itself (ReSukiSU to BakaSU is the recent example). Read the project's own README before assuming features carry over. KernelSU Next also warns that some recent x86_64 kernels may panic; check the fork's compatibility notes before installing.
Installation Modes
The upstream guide describes LKM and GKI modes. It recommends LKM for supported phones and GKI for environments such as emulators. Neither mode is universal; verify the exact kernel, firmware and device before flashing.
LKM Mode (Loadable Kernel Module)
LKM mode loads KernelSU into the existing kernel. A standard persistent installation patches a ramdisk-containing image, not the kernel itself.
| Benefits | Constraints |
|---|---|
| Retains the existing kernel | Requires a supported kernel and compatible KMI |
| Manager can update an existing installation | OTA and inactive-slot support depend on the device and update |
| Can be unloaded temporarily on supported setups | Boot image layout and module-loading restrictions vary |
Upstream describes patching boot.img or init_boot.img depending on the device. Verify the ramdisk image and target partition for your exact firmware and variant; never choose the partition from the Android version alone. For example, a device upgraded to Android 13 or later may still use boot. Other layouts require device-specific and version-specific verification.
GKI Mode (Generic Kernel Image)
GKI mode replaces the kernel rather than merely loading an LKM, and may lose device-specific kernel tuning. A matching KMI is necessary but not sufficient: kernel compression, device-specific requirements, security patch level and anti-rollback rules also matter. Keep the matching stock firmware ready.
The official releases provide the Manager, ksud/ksuinit and architecture/KMI-specific LKM assets. Check the assets actually offered for the release you choose; older installation pages may still describe GKI images that are no longer provided. Upstream's GKI build guide is archived and says official GKI-image support was dropped; it recommends DDK for LKM builds instead. For a KernelSU-enabled kernel, use a trusted device-compatible build.
Samsung's Knox protections can prevent LKM loading, but GKI mode is not a guaranteed workaround. A custom image still requires a compatible, unlockable device, can trip Knox permanently and has its own recovery procedure.
Which Mode to Choose?
| Device or situation | Starting point | Verify first |
|---|---|---|
| Supported stock or near-stock phone | LKM | Kernel support, ramdisk image and OTA procedure |
| Samsung with Knox protections | Device-specific research | Bootloader unlock, compatible kernel, permanent Knox effects and recovery |
| Custom ROM or kernel | LKM or an integrated kernel | Whether the exact kernel already includes KernelSU and which Manager it needs |
| Emulator, WSA or Waydroid | GKI or platform-specific integration | The environment's own installation method |
Do not assume that a custom ROM includes KernelSU or that a kernel for another model will boot.
Prerequisites
ESSENTIAL
- Unlocked bootloader - Complete bootloader unlocking first
- A full backup of important data (bootloader unlock usually wipes the device anyway)
- Exact-build stock firmware and original images for all affected partitions and slots, with a device-specific recovery plan
- Battery above 50% so flashing is never interrupted
Requirements
| Hardware | Software |
|---|---|
| GKI 2.0 device (kernel 5.10+) for official KernelSU | Android Platform Tools (ADB and fastboot) |
| Data-capable USB cable | Device USB drivers (Windows) |
| Computer (Windows, macOS, Linux) | KernelSU Manager APK from the chosen variant's releases |
| ~500 MB free storage for modules and images | Optional: magiskboot if you patch images by hand |
Compatibility Check
- Install the official Manager from GitHub Releases, or the Manager specified by your chosen variant.
Not installedindicates that the Manager considers the kernel supported; it is not a guarantee that every image, firmware or flashing method will work.Unsupportedmeans the official project does not support the current kernel as-is. Research a compatible custom kernel or build one; a fork is not automatically compatible either. See the unofficial device list.
# Kernel release and KMI
adb shell uname -r
# Example: 6.6.30-android15-8-g1234abcd -> KMI is 6.6-android15-8
# LKM asset names can use the short form, for example android15-6.6
# Android version and system security patch level
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.security_patchFor GKI, upstream defines the KMI as w.x-androidYY-Z; the kernel sublevel is not part of it. A kernel's Android release label need not match the running Android version. The system security patch property is not necessarily the kernel image's patch level: check the image's metadata and the device's anti-rollback rules before installing a kernel. An older image may fail to boot or be rejected.
Installation Methods
Method 1: LKM via the Manager (recommended)
Best for: a supported device with a verified ramdisk-image installation path. See the upstream LKM instructions.
- Back up personal data and obtain the exact-build stock firmware and original ramdisk image. Identify whether the device needs
boot,init_bootor a separately documented layout, plus the correct slot and flashing method. Do not infer the target from Android version alone. - Install the appropriate Manager. Use its install icon and Select a file to patch the verified stock image or supported firmware. If offered Backup as stock image, select it only for a known stock input; keep an independent backup too.
- Copy the resulting patched image to the computer. The following fastboot examples apply only to devices that support that flashing path. Enter fastboot mode and check the connection:
adb reboot bootloader
fastboot devicesOn standard A/B devices, unsuffixed fastboot flash commands for a slotted partition target the current active slot by default (AOSP); fastboot getvar current-slot reports the slot selected for the next boot. Use these examples only if that is the intended slot and the image matches its firmware. For a different slot, follow the exact-device procedure instead.
Replace kernelsu_patched.img below with the actual output filename, and run only the command for the image and partition you verified.
If the verified image is boot.img:
fastboot flash boot kernelsu_patched.imgIf the verified image is init_boot.img:
fastboot flash init_boot kernelsu_patched.img- Reboot, open the Manager and check that KernelSU is installed in LKM mode. Grant a trusted app root and verify it.
Updates and OTAs: On an already-rooted supported device, Direct install can update LKM. For a supported A/B OTA, restore the stock image first if the incremental update requires it and a matching backup is available, without rebooting. Finish installing the OTA without rebooting, then use Install to inactive slot before the system restart. The new kernel must still be compatible; root does not automatically survive every firmware update. If the option or a required stock backup is unavailable, follow the device's update instructions rather than guessing.
Stock-image backup: Direct install can back up the image only when the current slot was not already patched by KernelSU. On first installation, Select a file may offer to save the input as stock. Uninstall > Restore stock image requires a matching backup for the patched image; neither path replaces your own exact-build firmware backup. See upstream's backup details.
Method 2: ksud from a PC
Download the ksud executable for your computer from official releases and check its options. On macOS or Linux, make the downloaded executable runnable; the examples below assume it has been named ksud. On Windows run the corresponding .exe.
./ksud boot-patch --helpFor example, only if your verified stock image is boot.img, the target is arm64 and the short KMI matches android13-5.10:
./ksud boot-patch -b boot.img --kmi android13-5.10Replace the example image and KMI with those for your device. Select the target device architecture if it differs from the tool's default. The PC tool writes a patched image; flash it only to the corresponding verified partition and slot. --ota and --flash are on-device Android options, not PC-side flashing flags. See the upstream CLI instructions and the downloaded tool's help for supported options.
Method 3: Community or custom kernel
For an unsupported kernel or device, a compatible community kernel or a self-built kernel may be an option. Check the exact device and ROM, kernel/KMI, compression, security patch level, anti-rollback rules and flashing method with that kernel's maintainer. Do not assume matching KMI alone makes an image safe.
Community kernels and variants are separate projects. Their Manager, SUSFS support, update and recovery instructions can differ from official KernelSU. Keep the exact-build stock firmware and a recovery plan before trying them.
Metamodules and Modules
What is a Metamodule?
A metamodule provides the mounting implementation for regular modules in current official KernelSU. Other variants may use a different model.
- Modules that only use scripts,
sepolicy.rule,system.propor WebUI can work without a metamodule. - Modules that need systemless files mounted over
/system,/vendor,/productor similar paths need a compatible metamodule. - Only one metamodule can be installed at a time. Follow the upstream switching procedure and reinstall regular modules as directed.
WARNING
Metamodules and modules run with root. Use trusted project releases and verify compatibility before installing them; mounting behavior does not guarantee invisibility to apps.
Available Metamodules
| Metamodule | Approach | Notes |
|---|---|---|
| meta-overlayfs | OverlayFS + ext4 image | The reference implementation named in the KernelSU docs. Its repository has moved between owners, so follow the link in the official docs rather than an old bookmark |
| Hybrid Mount | OverlayFS + Magic Mount + VFS, per module and per path | Listed as a metamodule in the official module repository, WebUI, config via config.toml |
| mountify | OverlayFS with tmpfs/ext4 sparse storage | Works on APatch and Magisk as well as KernelSU |
| Magic Mount RS | Magic Mount semantics | Check the project's manager and device requirements |
| ZeroMount | VFS path redirection, with OverlayFS and Magic Mount fallbacks | Optional SUSFS integration; the project marks it beta |
| NoMount | Mountless: VFS path redirection with per-app UID isolation | Requires kernel integration; check whether a prebuilt module supports your exact kernel. The newer NoMount Suite uses its own kernel engine and is in beta |
Starting point: consult the official module repository and the upstream metamodule guide. Check each project's requirements and security implications before choosing one.
Switching metamodules: uninstall regular modules -> uninstall the metamodule -> reboot -> install the new metamodule -> reinstall modules -> reboot. Skipping the reinstall step is the usual cause of "modules install but do nothing".
Installing Modules
- If a module needs system-file mounts, install a compatible metamodule first and reboot.
- In KernelSU Manager, open Modules, choose Install from storage and select the trusted module ZIP. Reboot if required, then check that its intended functionality works.
From an authorized on-device root shell, ksud can also manage modules. For example, replace MODULE_ID with the exact ID from ksud module list:
ksud module list
ksud module disable MODULE_IDTo uninstall instead of disabling, use ksud module uninstall MODULE_ID. Check ksud module --help for the commands supported by your version.
Module Compatibility
| Module type | Requirement |
|---|---|
| Magisk-style systemless modules | A metamodule for anything mounted |
| Zygisk modules | An external compatible implementation such as ZygiskNext or ReZygisk; check the module's requirements |
| KPM (kernel patch modules) | A compatible KPM-capable setup, such as SukiSU Nova with CONFIG_KPM=y or KPatch-Next; check each project's requirements |
| WebUI modules | Manager with WebUI support; the module ships webroot/index.html |
Kernel modules (.ko) | ksud insmod with kallsyms access, used by SUSFS LKM loaders |
Browse modules at the official module repository, but verify each project and its compatibility before installing. KernelSU's FAQ warns that its module system conflicts with Magisk's Magic Mount; do not assume the two module systems can be stacked safely.
Module WebUI
Modules can expose a small web interface that the Manager renders in its embedded WebView. The module places its page at webroot/index.html and uses KernelSU's JavaScript APIs for module actions. Treat a WebUI page like executable code from the module author: it can perform privileged actions.
- Open it from the module card in the Manager, not from an arbitrary URL.
- Standalone hosts exist for modules with WebUI support outside the Manager: KsuWebUIStandalone, MMRL and its portable WebUI X runtime.
- Check the module's own documentation for the Manager or host version it expects.
App Profile System
App Profile is KernelSU's fine-grained permission model. Instead of only granting or denying su, you describe what an app can see and do.
- Root: grant, deny, or grant with a profile
- UID, GID and supplementary groups
- Linux capabilities and SELinux domain for root processes
- Filesystem and mount visibility (including "should this app see module mounts")
- Non-root behavior, including whether module mounts are unmounted for apps without root access
Typical profiles
| Profile | Root | Mounts | Use case |
|---|---|---|---|
| Sensitive app | Denied | Hidden | Banking, payments, anti-cheat |
| Root tool | Granted | Visible | Kernel managers, backup and debloat tools |
| Shell/ADB | Granted | Visible | Debugging, ksud work |
Apply: KernelSU Manager -> Superuser -> choose app -> edit profile, then restart the app. Profiles can limit privileges or mount visibility, but they do not guarantee that an app will accept the device.
TIP
Grant ADB shell root only when needed. Upstream warns that a restricted root profile using the shell UID can regain full root if that UID is also allowed su; see App Profile security.
Root Hiding and Play Integrity
App Profiles, optional community hiding tools and Play Integrity address different signals. None guarantees that an app will accept a modified device.
The three layers
- App Profiles: control root grants and whether module mounts are visible to non-root apps.
- Optional kernel tools: some supported kernels or variants provide SUSFS. Requirements depend on the device, KMI and implementation; see the SUSFS guide.
- Userspace and attestation: external Zygisk or integrity modules may address particular signals. Check their documentation, use trusted sources and avoid overlapping implementations.
What is realistic
Play Integrity, Play Protect certification and an app's own root checks are separate. Google defines the Basic, Device and Strong verdicts in its official documentation; requirements vary by Android version and can include hardware-backed evidence and recent security updates.
A rooted or unlocked device can fail any of these checks. App Profiles, SUSFS or a community module cannot guarantee a verdict or banking-app compatibility. Do not download or purchase leaked attestation keys. See Play Integrity and Banking Apps for troubleshooting, or use an unmodified supported device for essential services.
Troubleshooting
Common Issues and Fixes
| Symptom | What to check |
|---|---|
Manager shows Unsupported | Kernel and variant requirements; research a compatible custom kernel rather than forcing an LKM |
Manager shows Not installed after flashing | Correct firmware, KMI, image, partition and active slot |
| Manager warns of a mismatch | Use a compatible Manager and kernel from the same variant |
| Module files do not mount | Install a compatible metamodule if system-file mounting is required |
| Bootloop after a module | Try the recovery steps below; initrc injection can survive safe mode |
| App cannot obtain root | Review its allowlist entry and App Profile |
| Banking or integrity checks fail | Identify the exact failing signal; no root-hiding stack guarantees success |
Recovery
Safe mode: after the first boot screen, rapidly press and release Volume Down more than three times, before the boot animation. KernelSU disables modules if it detects the presses in time. The system's own safe mode can also trigger this. A bad initrc injection can still run in safe mode, so this may not fix every bootloop. See upstream rescue instructions.
ksud via ADB: if an authorized ADB connection and root shell are available, list modules, then disable the exact offending ID. Replace MODULE_ID with the value shown by the list:
adb shell
su
ksud module list
ksud module disable MODULE_ID
rebootTo remove it instead, use ksud module uninstall MODULE_ID. If Android cannot boot, /data/adb/ksud may be usable in a compatible recovery only if the required partitions are mounted, /data is decrypted and the binary can run there. Recovery access and module loading are not guaranteed; consult manual rescue, including its initrc cleanup steps if needed.
Restore stock firmware: use the exact-build stock image for each partition and slot actually changed, following the device's flashing instructions. Restoring boot alone will not repair an accidentally flashed init_boot or other partition. On Samsung, follow the device-specific firmware recovery procedure. If Magisk was installed, its upstream warns against restoring individual stock partitions and directs users to full firmware recovery. A full restore may wipe data and cannot undo Knox or a bootloader unlock.
WARNING
Never install modules from unknown sources. Modules run as root and can cause irreversible damage.
Next Steps
- Grant root only to trusted apps and configure App Profiles as needed.
- Install a metamodule only if your modules need system-file mounts, then install trusted modules one at a time.
- Consider SUSFS or an external Zygisk implementation only if your device and chosen modules support them.
- Explore LSPosed, Custom ROMs, Root Apps, Ad Blocking and Debloating.
Community Resources
| Resource | Link |
|---|---|
| Official Website | kernelsu.org |
| Official GitHub | github.com/tiann/KernelSU |
| Official Module Repository | modules.kernelsu.org |
| KernelSU-Next | github.com/KernelSU-Next/KernelSU-Next |
| Telegram (Official) | @KernelSU |
| r/KernelSU and r/androidroot | |
| Awesome KernelSU Resources | github.com/fynks/awesome-kernelsu |
Getting help: when asking, include device model, kernel release (adb shell uname -r), KMI, your variant and mode (LKM/GKI), how you installed it, metamodule in use, and the exact error text.