Module WebUI in KernelSU

The module WebUI is how KernelSU modules get interfaces. A module author creates HTML pages with any web technology, places them in the module's webroot directory, and after the module is installed the pages open through the manager's module list. KernelSU also provides a JavaScript library to make system interaction easier from those pages.
The mechanism matters because it turns modules from bare scripts into tools people can configure. A module that needs settings, logs or toggles can present them in a page instead of asking users to edit files by hand, and the page runs inside the manager's WebUI activity. KernelSU APK
On this page
How a WebUI Page Is Built
The webroot folder holds the HTML, CSS and JavaScript for the module interface. The pages use the provided JavaScript library to call into the system, and the manager renders them when the module entry is opened. Keep the pages small and dependency light: they run on the phone, inside the manager, and heavy frameworks cost startup time for no benefit. the module system
Using WebUI as a User
Open the module in the manager's module list and look for its interface entry. If a module advertises settings but shows no interface, check that the module installed completely and that the webroot folder is present in the module package. A module without a webroot simply has no interface, and its settings live in its files and scripts instead. App Profiles
Frequently Asked Questions
What is WebUI here?
The interface mechanism for modules: HTML pages in a module's webroot folder, opened from the manager's module list.
Do all modules have a WebUI?
No. Only modules that ship a webroot folder have one. Others are configured through files and scripts.
Can WebUI pages run any web technology?
Yes. Authors can create the pages using any web technology, with the provided JavaScript library for system interaction.