diff options
| author | 2022-10-19 14:30:04 +0000 | |
|---|---|---|
| committer | 2022-10-19 14:39:58 +0000 | |
| commit | 65a5b2db39c4f5a32657130d8e95ca1c141734a1 (patch) | |
| tree | 800b0a0a2eb5e17060cb75628730db950f507d60 /libs/androidfw/ResourceTimer.cpp | |
| parent | 298b073242151dd652ab2e1a9b48d1001433a6d7 (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
Diffstat (limited to 'libs/androidfw/ResourceTimer.cpp')
0 files changed, 0 insertions, 0 deletions