From 07c29016a5b9f81074e2c5d3160de043efca1157 Mon Sep 17 00:00:00 2001 From: 5ec1cff Date: Mon, 1 Jan 2024 00:12:54 +0800 Subject: [PATCH] unmount ksu tmpfs --- loader/src/injector/unmount.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/loader/src/injector/unmount.cpp b/loader/src/injector/unmount.cpp index 49a23b69..5b99fdfa 100644 --- a/loader/src/injector/unmount.cpp +++ b/loader/src/injector/unmount.cpp @@ -11,7 +11,6 @@ using namespace std::string_view_literals; namespace { constexpr auto MODULE_DIR = "/data/adb/modules"; constexpr auto KSU_OVERLAY_SOURCE = "KSU"; - constexpr auto ZYGISK_FUSE_SOURCE = "zygisk"; const std::vector KSU_PARTITIONS{"/system", "/vendor", "/product", "/system_ext", "/odm", "/oem"}; void lazy_unmount(const char* mountpoint) { @@ -47,8 +46,8 @@ void revert_unmount_ksu() { && std::find(KSU_PARTITIONS.begin(), KSU_PARTITIONS.end(), info.target) != KSU_PARTITIONS.end()) { targets.emplace_back(info.target); } - // Unmount fuse - if (info.type == "fuse" && info.source == ZYGISK_FUSE_SOURCE) { + // Unmount /debug_ramdisk + if (info.type == "tmpfs" && info.source == KSU_OVERLAY_SOURCE) { targets.emplace_back(info.target); } } @@ -79,10 +78,6 @@ void revert_unmount_magisk() { if (info.target.starts_with("/data/adb")) { targets.emplace_back(info.target); } - // Unmount fuse - if (info.type == "fuse" && info.source == ZYGISK_FUSE_SOURCE) { - targets.emplace_back(info.target); - } } for (auto& s: reversed(targets)) {