diff --git a/kernel/core_hook.c b/kernel/core_hook.c index eecf61a4..07f47906 100644 --- a/kernel/core_hook.c +++ b/kernel/core_hook.c @@ -1074,7 +1074,7 @@ static void ksu_sys_umount(const char *mnt, int flags) #ifdef CONFIG_KSU_SUSFS_TRY_UMOUNT void ksu_try_umount(const char *mnt, bool check_mnt, int flags, uid_t uid) #else -static void ksu_try_umount(const char *mnt, bool check_mnt, int flags) +static void try_umount(const char *mnt, bool check_mnt, int flags) #endif { struct path path; @@ -1123,6 +1123,14 @@ void susfs_try_umount_all(uid_t uid) { ksu_try_umount("/data/adb/kpm", false, MNT_DETACH, uid); /* For both Legacy KSU and Magic Mount KSU */ ksu_try_umount("/debug_ramdisk", true, MNT_DETACH, uid); + ksu_try_umount("/sbin", false, MNT_DETACH, uid); + + // try umount hosts file + ksu_try_umount("/system/etc/hosts", false, MNT_DETACH, uid); + + // try umount lsposed dex2oat bins + ksu_try_umount("/apex/com.android.art/bin/dex2oat64", false, MNT_DETACH, uid); + ksu_try_umount("/apex/com.android.art/bin/dex2oat32", false, MNT_DETACH, uid); } #endif