Remove unnecessary umount

This commit is contained in:
LoveSy 2021-08-29 12:30:34 +08:00 committed by John Wu
parent 34bcb1dd26
commit 4bcfee397b

View File

@ -35,10 +35,6 @@ void hide_unmount(int pid) {
// Unmount dummy skeletons and MAGISKTMP
targets.push_back(MAGISKTMP);
auto magiskpts = MAGISKTMP + "/" SHELLPTS;
if (access(magiskpts.data(), F_OK) == 0) {
targets.push_back(magiskpts);
}
parse_mnt("/proc/self/mounts", [&](mntent *mentry) {
if (TMPFS_MNT(system) || TMPFS_MNT(vendor) || TMPFS_MNT(product) || TMPFS_MNT(system_ext))
targets.emplace_back(mentry->mnt_dir);