From ba93fcbda025b445d3a20c8a5e0cd40b34d6b637 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sat, 18 Mar 2017 16:57:29 +0800 Subject: [PATCH] Prevent multirom crashes --- jni/magiskhide/hide.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni/magiskhide/hide.c b/jni/magiskhide/hide.c index 870807d3e..67fb8dbff 100644 --- a/jni/magiskhide/hide.c +++ b/jni/magiskhide/hide.c @@ -45,7 +45,7 @@ int hideMagisk() { // First unmount the dummy skeletons and the cache mounts for(i = mount_size - 1; i >= 0; --i) { if (strstr(mount_list[i], "tmpfs /system") || strstr(mount_list[i], "tmpfs /vendor") - || (strstr(mount_list[i], cache_block) && strstr(mount_list[i], "/system")) ) { + || (strstr(mount_list[i], cache_block) && strstr(mount_list[i], "/system/")) ) { sscanf(mount_list[i], "%*s %512s", buffer); lazy_unmount(buffer); }