Magic Mount Metamodule

June 15, 2026 ยท View on GitHub

An implementation of a metamodule

Magic Mount Metamodule

Telegram

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 = []
FieldDescription
mountsourceIdentifier for the Systemless mount source. Default is "KSU" to match KernelSU behavior.
umountWhether to attempt unmount (depends on KernelSU's umount).
partitionsA list of specific partitions to perform Systemless operations on, e.g. "mi_ext", "my_stock".
tmpfsdirTemporary 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
  • pnpm and vite as 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

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/ and module/libs/ directories is not open source and is not subject to the aforementioned Apache 2.0 license.