diff options
| author | 2021-11-11 20:45:25 +0900 | |
|---|---|---|
| committer | 2022-08-04 13:41:43 +0000 | |
| commit | 6a79d348d8bc07363ad8bb15cbc5d6b9aff9d5e2 (patch) | |
| tree | 623b6d8947be30ffad5dffca8c45cb8b86710d7f /libs/androidfw/StringPool.cpp | |
| parent | 5b2abf1cde8b7d0aa016c491f72f10813a43645e (diff) | |
Add 'audio/mp3' to android.mime.types
MimeTypeMap.getSingleton().getExtensionFromMimeType() returns null since
MimeTypeMap doesn't have 'audio/mp3'. It makes
FileUtils#buildUniqueFile() returns a wrong file. For example, when
mimetype is 'audio/mp3' and filename is test.mp3 which already exists,
it returns test.mp3 (1).
Bug: 205774136
Test: atest FrameworksCoreTests:android.os.FileUtilsTest
Test: atest CtsMimeMapTestCases
Change-Id: I201a7955c735fe99813b5a99692525ace7b0f5fe
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions