commit | 6a79d348d8bc07363ad8bb15cbc5d6b9aff9d5e2 | [log] [tgz] |
---|---|---|
author | Hyoungho Choi <hh46.choi@samsung.com> | Thu Nov 11 20:45:25 2021 +0900 |
committer | Sahana Rao <sahanas@google.com> | Thu Aug 04 13:41:43 2022 +0000 |
tree | 623b6d8947be30ffad5dffca8c45cb8b86710d7f | |
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