diff options
| author | 2022-10-19 14:30:04 +0000 | |
|---|---|---|
| committer | 2022-11-30 11:17:08 +0000 | |
| commit | 22f1c3612a8b74e56e7d028c9e704743fc2f12e7 (patch) | |
| tree | 57aec8eb690349dbbb8e3537f55323715f7c5071 /libs/androidfw/ConfigDescription.cpp | |
| parent | b18b7e97cec6ddfa61e7d3b1db319a1a808dbcff (diff) | |
Fixing Storage Volume(s) Retrieval.
With ag/19901205 shared_profile's volumes were also listed in
StorageManager#updateExternalStorageFileQuotaType.
However, the above API can be called from MediaProvider process,
without MANAGE_EXTERNAL_STORAGE permissions, resulting in
SecurityException("Only File Manager Apps permitted") to be thrown
from StorageManagerService#getVolumeList
This fix allows the exception to be bypassed in case the caller is
Media Store process.
Bug: 235321217
Test: atest android.appsecurity.cts.StorageHostTest
Change-Id: I6835cc4d29f3e9c85731979aaf9ab12a30f6419b
(cherry picked from commit 65a5b2db39c4f5a32657130d8e95ca1c141734a1)
Merged-In: I6835cc4d29f3e9c85731979aaf9ab12a30f6419b
Diffstat (limited to 'libs/androidfw/ConfigDescription.cpp')
0 files changed, 0 insertions, 0 deletions