Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 1 | |
| 2 | ############################################################################### |
| 3 | # |
| 4 | # Android-specific MIME type <-> extension mappings |
| 5 | # |
Tobias Thierer | e25c54f | 2019-09-30 14:16:19 +0100 | [diff] [blame] | 6 | # Each line below defines a mapping from one MIME type to the first of the |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 7 | # 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 Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 51 | ?application/sdp sdp |
| 52 | ?application/smil+xml smil |
| 53 | ?application/ttml+xml ttml dfxp |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 54 | ?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 Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 73 | ?audio/3gpp 3gpp 3ga |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 74 | ?audio/aac-adts aac |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 75 | ?audio/ac3 ac3 a52 |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 76 | ?audio/imelody imy |
| 77 | ?audio/midi rtttl xmf |
| 78 | ?audio/mobile-xmf mxmf |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 79 | ?audio/mp4 m4a m4b m4p f4a f4b f4p |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 80 | ?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 Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 108 | ?video/3gpp2 3gpp2 3gp2 3g2 |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 109 | ?video/3gpp 3gpp |
| 110 | ?video/avi avi |
| 111 | ?video/m4v m4v |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 112 | ?video/mp4 m4v f4v mp4v mpeg4 |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 113 | ?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 | |
| 135 | application/pgp-signature pgp |
| 136 | application/x-x509-ca-cert crt |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 137 | audio/aac aac adts adt |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 138 | audio/basic snd |
| 139 | audio/flac flac |
| 140 | audio/midi rtx |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 141 | audio/mpeg mp3 mp2 mp1 mpa m4a m4r |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 142 | audio/x-mpegurl m3u m3u8 |
| 143 | image/jpeg jpg |
| 144 | image/x-ms-bmp bmp |
| 145 | text/plain txt |
| 146 | text/x-c++hdr hpp |
| 147 | text/x-c++src cpp |
| 148 | video/3gpp 3gpp |
Jeff Sharkey | 3d44b10 | 2019-10-30 16:42:13 -0600 | [diff] [blame] | 149 | video/mpeg mpeg mpeg2 mpv2 mp2v m2v m2t mpeg1 mpv1 mp1v m1v |
Tobias Thierer | 878c77b | 2019-08-18 15:19:45 +0100 | [diff] [blame] | 150 | video/quicktime mov |
| 151 | video/x-matroska mkv |