Use rootfs for magisktmp if possible

This commit is contained in:
LoveSy
2025-11-29 00:13:41 -08:00
committed by John Wu
parent 283fc0f46f
commit bdbfb40383
6 changed files with 103 additions and 33 deletions
+2 -1
View File
@@ -221,7 +221,8 @@ pub fn revert_unmount(pid: i32) {
// Unmount Magisk tmpfs and mounts from module files
for info in parse_mount_info("self") {
if info.source == "magisk" || info.root.starts_with("/adb/modules") {
if info.source == "magisk" || info.root.starts_with("/adb/modules") ||
(info.fs_type == "rootfs" && info.root.starts_with("/magisk")) {
targets.push(info.target);
}
}