blob: ce022a8b0f1952f4653488fc28a6c9ae6ebf6b94 [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
Jeff Sharkey3d44b102019-10-30 16:42:13 -060051?application/sdp sdp
52?application/smil+xml smil
53?application/ttml+xml ttml dfxp
Tobias Thierer878c77b2019-08-18 15:19:45 +010054?application/vnd.android.ota ota
55?application/vnd.apple.mpegurl m3u8
56?application/vnd.ms-pki.stl stl
57?application/vnd.ms-powerpoint pot
58?application/vnd.ms-wpl wpl
59?application/vnd.stardivision.impress sdp
60?application/vnd.stardivision.writer vor
61?application/vnd.youtube.yt yt
62?application/x-android-drm-fl fl
63?application/x-flac flac
64?application/x-font pcf
65?application/x-mpegurl m3u m3u8
66?application/x-pem-file pem
67?application/x-pkcs12 p12 pfx
68?application/x-webarchive webarchive
69?application/x-webarchive-xml webarchivexml
70?application/x-x509-server-cert crt
71?application/x-x509-user-cert crt
72
Jeff Sharkey3d44b102019-10-30 16:42:13 -060073?audio/3gpp 3gpp 3ga
Tobias Thierer878c77b2019-08-18 15:19:45 +010074?audio/aac-adts aac
Jeff Sharkey3d44b102019-10-30 16:42:13 -060075?audio/ac3 ac3 a52
Tobias Thierer878c77b2019-08-18 15:19:45 +010076?audio/imelody imy
77?audio/midi rtttl xmf
78?audio/mobile-xmf mxmf
Jeff Sharkey3d44b102019-10-30 16:42:13 -060079?audio/mp4 m4a m4b m4p f4a f4b f4p
Tobias Thierer878c77b2019-08-18 15:19:45 +010080?audio/mpegurl m3u
81?audio/sp-midi smf
82?audio/x-matroska mka
83?audio/x-pn-realaudio ra
84
85?image/bmp bmp
86?image/heic heic
87?image/heic-sequence heics
88?image/heif heif hif
89?image/heif-sequence heifs
90?image/ico cur
91?image/webp webp
92?image/x-adobe-dng dng
93?image/x-fuji-raf raf
94?image/x-icon ico
95?image/x-nikon-nrw nrw
96?image/x-panasonic-rw2 rw2
97?image/x-pentax-pef pef
98?image/x-samsung-srw srw
99?image/x-sony-arw arw
100
101?text/comma-separated-values csv
102?text/plain diff po
103?text/rtf rtf
104?text/text phps
105?text/xml xml
106?text/x-vcard vcf
107
Jeff Sharkey3d44b102019-10-30 16:42:13 -0600108?video/3gpp2 3gpp2 3gp2 3g2
Tobias Thierer878c77b2019-08-18 15:19:45 +0100109?video/3gpp 3gpp
110?video/avi avi
111?video/m4v m4v
Jeff Sharkey3d44b102019-10-30 16:42:13 -0600112?video/mp4 m4v f4v mp4v mpeg4
Tobias Thierer878c77b2019-08-18 15:19:45 +0100113?video/mp2p mpeg
114?video/mp2t m2ts mts
115?video/mp2ts ts
116?video/vnd.youtube.yt yt
117?video/x-webex wrf
118
119# Optional additions that should not override any previous mapping.
120
121?application/x-wifi-config ?xml
122
123# Special cases where Android has a strong opinion about mappings, so we
124# define them very last and make them override in both directions (no "?").
125#
126# Lines here are of the form:
127# <mimeType> <extension1> <extension2> ...
128#
129# After processing each line,
130# <mimeType> is mapped to <extension1>
131# <extension1>, <extension2>, ... are all mapped to <mimeType>
132# This overrides any mappings for this <mimeType> / for these extensions
133# that may have been defined earlier.
134
135application/pgp-signature pgp
136application/x-x509-ca-cert crt
Jeff Sharkey3d44b102019-10-30 16:42:13 -0600137audio/aac aac adts adt
Tobias Thierer878c77b2019-08-18 15:19:45 +0100138audio/basic snd
139audio/flac flac
140audio/midi rtx
Jeff Sharkey3d44b102019-10-30 16:42:13 -0600141audio/mpeg mp3 mp2 mp1 mpa m4a m4r
Tobias Thierer878c77b2019-08-18 15:19:45 +0100142audio/x-mpegurl m3u m3u8
143image/jpeg jpg
144image/x-ms-bmp bmp
145text/plain txt
146text/x-c++hdr hpp
147text/x-c++src cpp
148video/3gpp 3gpp
Jeff Sharkey3d44b102019-10-30 16:42:13 -0600149video/mpeg mpeg mpeg2 mpv2 mp2v m2v m2t mpeg1 mpv1 mp1v m1v
Tobias Thierer878c77b2019-08-18 15:19:45 +0100150video/quicktime mov
151video/x-matroska mkv