diff options
| author | 2024-10-30 05:16:23 +0000 | |
|---|---|---|
| committer | 2024-12-12 07:19:42 +0000 | |
| commit | f6df279fe0fd121e05054957f85984dc193a8c7c (patch) | |
| tree | aae3e25e873dfb08423c9e0d29851fc8b1834db7 /ravenwood/scripts/extract-last-soong-commands.py | |
| parent | fa2026c56273484d39d3269f2650ef01ed7e902d (diff) | |
Allow call setActualDefaultRingtoneUri() with FileProvider’s Uri
Currently, setActualDefaultRingtoneUri() works fine if the Uri comes
from MediaStore but fails if comes from FileProvider. For content
copyright reason, some apps don't intent to use the media store's
Uri, we need a fix for FileProvider Uri case.
The fail reason due to a calling id/package checking, there is no
good fix now, so have a quick workaround to do a "clearCallingUid".
To limit the impact scope, we only allow privileged apps.
Flag: EXEMPT bugfix
Bug: 376168632
Test: use sample app to verify works fine with FilePrivider's Uri
Test: atest SettingsProviderTest
Change-Id: Ia9650a8e10efdc51d61c92563be76646e7961aa6
Diffstat (limited to 'ravenwood/scripts/extract-last-soong-commands.py')
0 files changed, 0 insertions, 0 deletions