diff --git a/VolumeManager.cpp b/VolumeManager.cpp index 5e6e74f..8c32587 100644 --- a/VolumeManager.cpp +++ b/VolumeManager.cpp @@ -623,8 +623,9 @@ int VolumeManager::unmountAll() { mntent* mentry; while ((mentry = getmntent(fp)) != NULL) { auto test = std::string(mentry->mnt_dir); - if (android::base::StartsWith(test, "/mnt/") - || android::base::StartsWith(test, "/storage/")) { + if ((android::base::StartsWith(test, "/mnt/") && + !android::base::StartsWith(test, "/mnt/vendor")) || + android::base::StartsWith(test, "/storage/")) { toUnmount.push_front(test); } }