Commit 8ec81af
Fix getStorageVolumes to return public volumes visible to userIdSharingMedia with.
In ag/16708639, getStorageVolumes was modified to return volumes
mounted on the calling user.
Clone profile is an exception to this rule, as by definition, it
should access the public volumes available to its parent user.
To fix this we allow a volume to be returned if:
1. Its a public volume and
2. Its visible to the userId the calling user shares media with.
Bug: b/265772860 b/265724297 b/260950918
Test: atest AppCloningHostTest
Google: 2423165
Change-Id: I84a57ea13b08a5f1cd0095e944aeacc3434df4de
Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>1 parent 4e32594 commit 8ec81af
1 file changed
Lines changed: 4 additions & 0 deletions
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3903 | 3903 | | |
3904 | 3904 | | |
3905 | 3905 | | |
| 3906 | + | |
| 3907 | + | |
3906 | 3908 | | |
3907 | 3909 | | |
| 3910 | + | |
| 3911 | + | |
3908 | 3912 | | |
3909 | 3913 | | |
3910 | 3914 | | |
| |||
0 commit comments