summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author Joanne Chung <joannechung@google.com> 2024-10-30 05:16:23 +0000
committer Joanne Chung <joannechung@google.com> 2024-12-12 07:19:42 +0000
commitf6df279fe0fd121e05054957f85984dc193a8c7c (patch)
treeaae3e25e873dfb08423c9e0d29851fc8b1834db7 /libs/androidfw/misc.cpp
parentfa2026c56273484d39d3269f2650ef01ed7e902d (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 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions