This is a template for creating KernelSU/Apatch/Magisk modules with WebUI. It includes a basic structure and a build script
- Fork this template
- Modify
module.propwith your module details.- Set your repo url in
updateJson
- Set your repo url in
- Develop you own module, lol
- Edit
CHANGELOG.md - Build the module using
nix build- or just use GitHub Actions (
nix run nixpkgs#act -- -j build -P ubuntu-latest=ghcr.io/catthehacker/ubuntu:act-24.04 --artifact-server-path ./artifacts(choose Medium size image))
- or just use GitHub Actions (
- Remove "How to use template" section from
README.md
- docs
module.prop: Module metadataCHANGELOG.md: Module changelogbanner.{png,webp}: Banner which will be shown in module managers- works in KSU-Next and other new managers
- you could place it inside
webroot/to use as WebUI media
update.json: Will be generated frommodule.propMETA-INF/From magisk docs
Use nix develop (or better, use direnv) to enter a development shell with necessary tools installed:
- "hotreload webroot/index.html" to watch for changes
- "sync_file webroot/styles.css" to push manually
TODO: link/mount guide ~/.local/share/waydroid/data/adb/modules/ksu-webui-module-template
- Download zip from latest release
- Flash via your module manager of choice