Merge "Check for valid paths when getVolumeList() returns invisible volumes." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
6da2fb61ce
@@ -3031,7 +3031,8 @@ class MountService extends IMountService.Stub
|
||||
if (forWrite) {
|
||||
match = vol.isVisibleForWrite(userId);
|
||||
} else {
|
||||
match = vol.isVisibleForRead(userId) || includeInvisible;
|
||||
match = vol.isVisibleForRead(userId)
|
||||
|| (includeInvisible && vol.getPath() != null);
|
||||
}
|
||||
if (!match) continue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user