Merge "Exclude /mnt/vendor from vold's ownership." into pi-dev
This commit is contained in:
commit
b244714eea
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue