Add API getStorageVolumesIncludingSharedProfiles()
The existing getStorageVolumes() does not include storage volumes that belong to another user with which the calling user shares media with. Added getStorageVolumesIncludingSharedProfiles() to fix this. StorageManagerService uses the onUnlockUser method to find which users share media between them and stores these users as key-value pairs. This is used when getStorageVolumesIncludingSharedProfiles() is called. Bug: 209973853 Test: atest AppCloningHostTest#testGetStorageVolumesIncludingSharedProfiles Change-Id: Ia554623391505e637cfed904c4b5fc358818d981
Loading
Please register or sign in to comment