diff options
| author | 2022-02-09 12:15:31 +0000 | |
|---|---|---|
| committer | 2022-02-09 12:15:31 +0000 | |
| commit | 0d5f2aedf384e685f844bdcc836282a94e098d5a (patch) | |
| tree | fa2ee35aedfc49deba3057710267b5eaece83ef0 | |
| parent | 5075e557fd96cdacac61ba73db4e1f1e35175350 (diff) | |
| parent | 7f2433549325c0843d10fb5de34e0159fbb9cbf9 (diff) | |
Merge "Fix getStorageVolumes to return only storage volumes available to the calling user"
| -rw-r--r-- | services/core/java/com/android/server/StorageManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/StorageManagerService.java b/services/core/java/com/android/server/StorageManagerService.java index 32a6558f0366..178b66691f2f 100644 --- a/services/core/java/com/android/server/StorageManagerService.java +++ b/services/core/java/com/android/server/StorageManagerService.java @@ -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; |