Proper vendor support

This commit is contained in:
topjohnwu
2017-01-02 17:48:34 +08:00
parent 94a861e318
commit b4cfe6e9c0
2 changed files with 31 additions and 7 deletions

View File

@@ -42,7 +42,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/")
if (strstr(mount_list[i], "tmpfs /system") || strstr(mount_list[i], "tmpfs /vendor")
|| (strstr(mount_list[i], cache_block) && strstr(mount_list[i], "/system")) ) {
sscanf(mount_list[i], "%*s %512s", buffer);
lazy_unmount(buffer);