kernel: 使用 try_umount 替换 ksu_try_umount 以统一卸载逻辑

This commit is contained in:
ShirkNeko
2025-06-13 19:49:33 +08:00
parent 36cca65af3
commit 15d1253d64

View File

@@ -1223,11 +1223,11 @@ out_ksu_try_umount:
try_umount("/sbin", false, MNT_DETACH); try_umount("/sbin", false, MNT_DETACH);
// try umount hosts file // try umount hosts file
ksu_try_umount("/system/etc/hosts", false, MNT_DETACH); try_umount("/system/etc/hosts", false, MNT_DETACH);
// try umount lsposed dex2oat bins // try umount lsposed dex2oat bins
ksu_try_umount("/apex/com.android.art/bin/dex2oat64", false, MNT_DETACH); try_umount("/apex/com.android.art/bin/dex2oat64", false, MNT_DETACH);
ksu_try_umount("/apex/com.android.art/bin/dex2oat32", false, MNT_DETACH); try_umount("/apex/com.android.art/bin/dex2oat32", false, MNT_DETACH);
#endif #endif
return 0; return 0;
} }