diff options
| author | 2022-12-07 04:36:46 +0000 | |
|---|---|---|
| committer | 2023-05-15 22:32:28 +0000 | |
| commit | ae2819716ed142a4f4f4a5622d27d20474307df9 (patch) | |
| tree | 28ad8ed9321d35240b82902d6432eb267c9440a4 /native/android/configuration.cpp | |
| parent | 0b88dc60986761dad8f2f24e02527c23d884aad1 (diff) | |
RingtoneManager: verify default ringtone is audio
When a ringtone picker tries to set a ringtone through
RingtoneManager.setActualDefaultRingtoneUri (also
called by com.android.settings.DefaultRingtonePreference),
verify the mimeType can be obtained (not found when caller
doesn't have access to it) and it is an audio resource.
Bug: 205837340
Test: atest android.media.audio.cts.RingtoneManagerTest
Change-Id: I3f2c487ded405c0c1a83ef0a2fe99cff7cc9328e
Merged-In: I3f2c487ded405c0c1a83ef0a2fe99cff7cc9328e
(cherry picked from commit 38618f9fb16d3b5617e2289354d47abe5af17dad)
Diffstat (limited to 'native/android/configuration.cpp')
0 files changed, 0 insertions, 0 deletions