
KernelSU Modules Guide
KernelSU modules are installable packages that extend the system: they run scripts at boot, add or replace files, and ship settings interfaces through WebUI pages. The module system is documented in depth by the project, covering the module configuration, the install and boot scripts, and the WebUI mechanism.
Modules in KernelSU differ from traditional root modules in one architectural point: mounting logic lives in metamodules, not in the core. A module that changes system files usually needs a metamodule such as meta-overlayfs to provide the systemless mounting, and installing the module without it is the most common reason a module appears to do nothing. KernelSU APK download
Contents
What a Module Contains
A module carries a module.prop file with its identity and metadata, install scripts that run when the module is installed, boot scripts that run at each boot, and optionally a webroot folder with the WebUI pages. The module configuration documentation covers the fields and their meanings, and the script documentation covers the stages at which each script runs. Reading both before writing a module saves hours of guessing. module WebUI pages
Installing and Managing Modules
Install modules from the manager's modules list, from a module file the manager can open. After install, check the module state, read any install output, and reboot to let boot scripts run. Disable modules one at a time when something breaks, since a bad module is the first suspect in any new boot problem. Keep modules to those whose source and behaviour are understood: a module runs with the privileges root gives it. metamodules and meta-overlayfs
Frequently Asked Questions
What is a module?
An installable package that runs scripts, adds files and can ship a WebUI interface, managed from the manager app.
Why does my module do nothing?
Often it needs a metamodule such as meta-overlayfs for systemless mounting. Check the module documentation and the install output in the manager.
Can a module break my phone?
Yes. A bad module can bootloop the device. Disable modules one at a time, and keep the stock boot image backup for rescue.