From 01c5b10196e71b345f293884cb482155e8a879a5 Mon Sep 17 00:00:00 2001 From: Jeff Sharkey Date: Fri, 10 Jan 2020 16:44:23 -0700 Subject: [PATCH] Add more specific subtitles and lyrics MIME types. "srt" subtitles have a more specific MIME type of "application/x-subrip", as listed here in Apache and therefore widely used across the Internet: http://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x/conf/mime.types "lrc" lyrics have a more specific MIME type of "application/lrc", as determined here from the archive.org scraping of popular Internet sites: https://discuss.httparchive.org/t/keeping-etc-mime-types-up-to-date/825 Bug: 143707020 Test: atest --test-mapping packages/providers/MediaProvider Change-Id: I9598d1de920f29fbda7efa3c17b5632f756a65f2 --- mime/java-res/android.mime.types | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mime/java-res/android.mime.types b/mime/java-res/android.mime.types index cb04d921bd671..c1f8b3f0e195e 100644 --- a/mime/java-res/android.mime.types +++ b/mime/java-res/android.mime.types @@ -46,6 +46,7 @@ # and are mapped (or remapped) to . ?application/epub+zip epub +?application/lrc lrc ?application/pkix-cert cer ?application/rss+xml rss ?application/sdp sdp @@ -65,6 +66,7 @@ ?application/x-mpegurl m3u m3u8 ?application/x-pem-file pem ?application/x-pkcs12 p12 pfx +?application/x-subrip srt ?application/x-webarchive webarchive ?application/x-webarchive-xml webarchivexml ?application/x-x509-server-cert crt