From 7dbfba76bfe5a97c2458c2d9592951789e1c95c4 Mon Sep 17 00:00:00 2001 From: vvb2060 Date: Sun, 26 Feb 2023 19:49:23 +0800 Subject: [PATCH] Umount by tmpfs id --- native/src/zygisk/deny/revert.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/native/src/zygisk/deny/revert.cpp b/native/src/zygisk/deny/revert.cpp index bf3807322..05ac97786 100644 --- a/native/src/zygisk/deny/revert.cpp +++ b/native/src/zygisk/deny/revert.cpp @@ -18,9 +18,8 @@ void revert_unmount() { // Unmount dummy skeletons and MAGISKTMP // since mirror nodes are always mounted under skeleton, we don't have to specifically unmount for (auto &info: parse_mount_info("self")) { - if (info.target.starts_with(MAGISKTMP) || // things in magisktmp - info.root.starts_with("/adb/modules") || // module nodes - info.root.starts_with("/" INTLROOT)) { // skeleton + if (info.source == "magisk" || info.source == "worker" || // magisktmp tmpfs + info.root.starts_with("/adb/modules")) { // bind mount from data partition targets.push_back(info.target); } }