blob: 7a5299ff1b699ce3ed104bf52989f7049fd21187 [file] [log] [blame]
Tobias Thierer878c77b2019-08-18 15:19:45 +01001
2###############################################################################
3#
4# Android-specific MIME type <-> extension mappings
5#
Tobias Thierere25c54f2019-09-30 14:16:19 +01006# Each line below defines a mapping from one MIME type to the first of the
Tobias Thierer878c77b2019-08-18 15:19:45 +01007# listed extensions, and from listed extension back to the MIME type.
8# A mapping overrides any previous mapping _from_ that same MIME type or
9# extension (put() semantics), unless that MIME type / extension is prefixed with '?'
10# (putIfAbsent() semantics).
11#
12#
13###############################################################################
14#
15# EXAMPLES
16#
17# A line of the form:
18#
19# ?mime ext1 ?ext2 ext3
20#
21# affects the current mappings along the lines of the following pseudo code:
22#
23# mimeToExt.putIfAbsent("mime", "ext1");
24# extToMime.put("ext1", "mime");
25# extToMime.putIfAbsent("ext2", "mime");
26# extToMime.put("ext3", "mime");
27#
28# The line:
29#
30# ?text/plain txt
31#
32# leaves any earlier mapping for "text/plain" untouched, or maps that MIME type
33# to the file extension ".txt" if there is no earlier mapping. The line also
34# sets the mapping from file extension ".txt" to be the MIME type "text/plain",
35# regardless of whether a previous mapping existed.
36#
37###############################################################################
38
39
40# File extensions that Android wants to override to point to the given MIME type.
41#
42# After processing a line of the form:
43# ?<mimeType> <extension1> <extension2>
44# If <mimeType> was not already mapped to an extension then it will be
45# mapped to <extension1>.
46# <extension1> and <extension2> are mapped (or remapped) to <mimeType>.
47
48?application/epub+zip epub
49?application/pkix-cert cer
50?application/rss+xml rss
51?application/vnd.android.ota ota
52?application/vnd.apple.mpegurl m3u8
53?application/vnd.ms-pki.stl stl
54?application/vnd.ms-powerpoint pot
55?application/vnd.ms-wpl wpl
56?application/vnd.stardivision.impress sdp
57?application/vnd.stardivision.writer vor
58?application/vnd.youtube.yt yt
59?application/x-android-drm-fl fl
60?application/x-flac flac
61?application/x-font pcf
62?application/x-mpegurl m3u m3u8
63?application/x-pem-file pem
64?application/x-pkcs12 p12 pfx
65?application/x-webarchive webarchive
66?application/x-webarchive-xml webarchivexml
67?application/x-x509-server-cert crt
68?application/x-x509-user-cert crt
69
70?audio/3gpp 3gpp
71?audio/aac-adts aac
72?audio/imelody imy
73?audio/midi rtttl xmf
74?audio/mobile-xmf mxmf
75?audio/mp4 m4a
76?audio/mpegurl m3u
77?audio/sp-midi smf
78?audio/x-matroska mka
79?audio/x-pn-realaudio ra
80
81?image/bmp bmp
82?image/heic heic
83?image/heic-sequence heics
84?image/heif heif hif
85?image/heif-sequence heifs
86?image/ico cur
87?image/webp webp
88?image/x-adobe-dng dng
89?image/x-fuji-raf raf
90?image/x-icon ico
91?image/x-nikon-nrw nrw
92?image/x-panasonic-rw2 rw2
93?image/x-pentax-pef pef
94?image/x-samsung-srw srw
95?image/x-sony-arw arw
96
97?text/comma-separated-values csv
98?text/plain diff po
99?text/rtf rtf
100?text/text phps
101?text/xml xml
102?text/x-vcard vcf
103
104?video/3gpp2 3gpp2 3g2
105?video/3gpp 3gpp
106?video/avi avi
107?video/m4v m4v
108?video/mp2p mpeg
109?video/mp2t m2ts mts
110?video/mp2ts ts
111?video/vnd.youtube.yt yt
112?video/x-webex wrf
113
114# Optional additions that should not override any previous mapping.
115
116?application/x-wifi-config ?xml
117
118# Special cases where Android has a strong opinion about mappings, so we
119# define them very last and make them override in both directions (no "?").
120#
121# Lines here are of the form:
122# <mimeType> <extension1> <extension2> ...
123#
124# After processing each line,
125# <mimeType> is mapped to <extension1>
126# <extension1>, <extension2>, ... are all mapped to <mimeType>
127# This overrides any mappings for this <mimeType> / for these extensions
128# that may have been defined earlier.
129
130application/pgp-signature pgp
131application/x-x509-ca-cert crt
132audio/aac aac
133audio/basic snd
134audio/flac flac
135audio/midi rtx
136audio/mpeg mp3 m4a m4r
137audio/x-mpegurl m3u m3u8
138image/jpeg jpg
139image/x-ms-bmp bmp
140text/plain txt
141text/x-c++hdr hpp
142text/x-c++src cpp
143video/3gpp 3gpp
144video/mpeg mpeg
145video/quicktime mov
146video/x-matroska mkv