Prevent multirom crashes

This commit is contained in:
topjohnwu 2017-03-18 16:57:29 +08:00
parent 88d19a4ca4
commit ba93fcbda0

View File

@ -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);
}