Magic Mount Metamodule
June 15, 2026 ยท View on GitHub
Provide systemless mount capabilities for KernelSU.
The author will update this project less frequently due to academic commitments.
Configuration
Configuration file path:
/data/adb/magic_mount/config.toml
Example:
mountsource = "KSU"
umount = false
partitions = []
| Field | Description |
|---|---|
mountsource | Identifier for the Systemless mount source. Default is "KSU" to match KernelSU behavior. |
umount | Whether to attempt unmount (depends on KernelSU's umount). |
partitions | A list of specific partitions to perform Systemless operations on, e.g. "mi_ext", "my_stock". |
tmpfsdir | Temporary directory, default is /debug_ramdisk. This option is optional. |
Configuration can also be performed via the Web UI (recommended).
Development
Dependencies:
- Rust nightly toolchain
- Android NDK
cargo-ndk- Node.js / npm
pnpmandviteas dependency and frontend for webui
Environment variables:
export ANDROID_NDK_HOME=<path/to/ndk>
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
Build:
cargo xtask b
Build artifacts will be located at:
output/magic_mount_rs.zip
Acknowledgements
- 5ec1cff/KernelSU: original implementation
- YuzakiKokuban Webui modifications
License
Except for the files in the libs/ and module/libs/ directories, all other files in this project are open source under the Apache 2.0 License.
Note: The code in the
libs/andmodule/libs/directories is not open source and is not subject to the aforementioned Apache 2.0 license.