Merge "Fix getStorageVolumes to return only storage volumes available to the calling user"
This commit is contained in:
committed by
Android (Google) Code Review
commit
0d5f2aedf3
@@ -4071,7 +4071,7 @@ class StorageManagerService extends IStorageManager.Stub
|
||||
|| (includeSharedProfile && vol.isVisibleForWrite(userIdSharingMedia));
|
||||
} else {
|
||||
match = vol.isVisibleForUser(userId)
|
||||
|| (includeInvisible && vol.getPath() != null)
|
||||
|| (!vol.isVisible() && includeInvisible && vol.getPath() != null)
|
||||
|| (includeSharedProfile && vol.isVisibleForRead(userIdSharingMedia));
|
||||
}
|
||||
if (!match) continue;
|
||||
|
||||
Reference in New Issue
Block a user