为 KernelSU 提供 Systemless 修改功能。
作者由于学业原因,更新会放缓
配置文件路径:
/data/adb/magic_mount/config.toml
mountsource = "KSU"
umount = false
partitions = []| 字段 | 说明 |
|---|---|
| mountsource | Systemless 挂载来源标识。默认值 "KSU" 与 KernelSU 行为保持一致。 |
| umount | 是否尝试卸载(依赖 KernelSU umount )。 |
| partitions | 指定需要进行 Systemless 操作的特定分区列表,例如 "mi_ext","my_stock" 等。 |
| tmpfsdir | 临时目录,默认 "/debug_ramdisk",此选项可选。 |
也可通过 WEBUI 进行配置(推荐)。
依赖:
-
Rust nightly toolchain
-
Android NDK
-
cargo-ndk
-
Node.js / npm
-
pnpmandviteas dependency and frontend for webui
环境变量:
export ANDROID_NDK_HOME=<path/to/ndk>
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
构建:
cargo xtask b构建产物将位于:
- output/magic_mount_rs.zip
- 5ec1cff/KernelSU:原始实现
- YuzakiKokuban Webui修改