The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 2 | <!-- |
| 3 | Copyright (C) 2017 The Android Open Source Project |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 4 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 16 | --> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 17 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 18 | package="com.android.music" |
| 19 | android:versionCode="2" |
| 20 | android:versionName="2.0"> |
Jeff Hamilton | 6943474 | 2010-02-11 16:25:51 -0600 | [diff] [blame] | 21 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 22 | <!-- Package Name --> |
| 23 | <original-package android:name="com.android.music"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 24 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 25 | <!-- SDK Versions --> |
| 26 | <uses-sdk android:minSdkVersion="19" |
| 27 | android:targetSdkVersion="24"/> |
Jack He | f9e434b | 2017-01-26 16:10:20 -0800 | [diff] [blame] | 28 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 29 | <!-- Permissions --> |
| 30 | <uses-permission android:name="android.permission.WRITE_SETTINGS"/> |
| 31 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> |
| 32 | <uses-permission android:name="android.permission.WAKE_LOCK"/> |
| 33 | <uses-permission android:name="android.permission.INTERNET"/> |
| 34 | <uses-permission android:name="android.permission.READ_PHONE_STATE"/> |
| 35 | <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> |
| 36 | <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> |
| 37 | <uses-permission android:name="android.permission.BROADCAST_STICKY"/> |
Jack He | f9e434b | 2017-01-26 16:10:20 -0800 | [diff] [blame] | 38 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 39 | <!-- App Declaration --> |
| 40 | <application |
| 41 | android:icon="@drawable/app_music" |
| 42 | android:label="@string/musicbrowserlabel" |
| 43 | android:taskAffinity="android.task.music" |
| 44 | android:allowTaskReparenting="true" |
| 45 | android:usesCleartextTraffic="true"> |
| 46 | |
| 47 | <!-- Meta Data --> |
| 48 | <meta-data android:name="com.google.android.gms.car.application" |
| 49 | android:resource="@xml/automotive_app_desc"/> |
| 50 | |
| 51 | <!-- Main Activity --> |
Marco Nelissen | ff3d437 | 2010-01-27 09:46:40 -0800 | [diff] [blame] | 52 | <activity android:name="com.android.music.MusicBrowserActivity" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 53 | android:theme="@android:style/Theme.NoTitleBar" |
| 54 | android:exported="true"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 55 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 56 | <action android:name="android.intent.action.MAIN"/> |
| 57 | <category android:name="android.intent.category.DEFAULT"/> |
| 58 | <category android:name="android.intent.category.LAUNCHER"/> |
| 59 | <category android:name="android.intent.category.APP_MUSIC"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 60 | </intent-filter> |
Marco Nelissen | 9882f54 | 2009-08-14 10:06:15 -0700 | [diff] [blame] | 61 | </activity> |
Jack He | f9e434b | 2017-01-26 16:10:20 -0800 | [diff] [blame] | 62 | |
Hansong Zhang | 80cfa56 | 2018-04-26 12:26:49 -0700 | [diff] [blame] | 63 | <activity android:name="AudioPreview" android:theme="@android:style/Theme.Dialog" |
| 64 | android:taskAffinity="" |
| 65 | android:excludeFromRecents="true" android:exported="true" > |
| 66 | <intent-filter> |
| 67 | <action android:name="android.intent.action.VIEW" /> |
| 68 | <category android:name="android.intent.category.DEFAULT" /> |
| 69 | <data android:scheme="file"/> |
| 70 | <data android:mimeType="audio/*"/> |
| 71 | <data android:mimeType="application/ogg"/> |
| 72 | <data android:mimeType="application/x-ogg"/> |
| 73 | <data android:mimeType="application/itunes"/> |
| 74 | </intent-filter> |
| 75 | <intent-filter> |
| 76 | <action android:name="android.intent.action.VIEW" /> |
| 77 | <category android:name="android.intent.category.DEFAULT" /> |
| 78 | <category android:name="android.intent.category.BROWSABLE" /> |
| 79 | <data android:scheme="http" /> |
| 80 | <data android:mimeType="audio/*"/> |
| 81 | <data android:mimeType="application/ogg"/> |
| 82 | <data android:mimeType="application/x-ogg"/> |
| 83 | <data android:mimeType="application/itunes"/> |
| 84 | </intent-filter> |
| 85 | <intent-filter |
| 86 | android:priority="-1"> |
| 87 | <action android:name="android.intent.action.VIEW" /> |
| 88 | <category android:name="android.intent.category.DEFAULT" /> |
| 89 | <category android:name="android.intent.category.BROWSABLE" /> |
| 90 | <data android:scheme="content" /> |
| 91 | <data android:mimeType="audio/*"/> |
| 92 | <data android:mimeType="application/ogg"/> |
| 93 | <data android:mimeType="application/x-ogg"/> |
| 94 | <data android:mimeType="application/itunes"/> |
| 95 | </intent-filter> |
| 96 | </activity> |
| 97 | |
| 98 | <activity android:name="com.android.music.MusicPicker" |
| 99 | android:label="@string/music_picker_title" android:exported="true" > |
| 100 | <!-- First way to invoke us: someone asks to get content of |
| 101 | any of the audio types we support. --> |
| 102 | <intent-filter> |
| 103 | <action android:name="android.intent.action.GET_CONTENT" /> |
| 104 | <category android:name="android.intent.category.DEFAULT" /> |
| 105 | <category android:name="android.intent.category.OPENABLE" /> |
| 106 | <data android:mimeType="audio/*"/> |
| 107 | <data android:mimeType="application/ogg"/> |
| 108 | <data android:mimeType="application/x-ogg"/> |
| 109 | </intent-filter> |
| 110 | <!-- Second way to invoke us: someone asks to pick an item from |
| 111 | some media Uri. --> |
| 112 | <intent-filter> |
| 113 | <action android:name="android.intent.action.PICK" /> |
| 114 | <category android:name="android.intent.category.DEFAULT" /> |
| 115 | <category android:name="android.intent.category.OPENABLE" /> |
| 116 | <data android:mimeType="vnd.android.cursor.dir/audio"/> |
| 117 | </intent-filter> |
| 118 | </activity> |
| 119 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 120 | <!-- |
| 121 | This is the "current music playing" panel, which has special |
| 122 | launch behavior. We clear its task affinity, so it will not |
| 123 | be associated with the main media task and if launched |
| 124 | from a notification will not bring the rest of the media app |
| 125 | to the foreground. We make it singleTask so that when others |
| 126 | launch it (such as media) we will launch in to our own task. |
| 127 | We set clearTaskOnLaunch because the user |
| 128 | can go to a playlist from this activity, so if they later return |
| 129 | to it we want it back in its initial state. We exclude from |
| 130 | recents since this is accessible through a notification when |
| 131 | appropriate. |
| 132 | --> |
Marco Nelissen | 38bcd92 | 2010-03-19 13:00:37 -0700 | [diff] [blame] | 133 | <activity android:name="com.android.music.MediaPlaybackActivity" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 134 | android:theme="@android:style/Theme.NoTitleBar" |
| 135 | android:label="@string/mediaplaybacklabel" |
| 136 | android:taskAffinity="" |
| 137 | android:launchMode="singleTask" |
| 138 | android:clearTaskOnLaunch="true" |
| 139 | android:excludeFromRecents="true" |
| 140 | android:exported="true"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 141 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 142 | <action android:name="android.intent.action.VIEW"/> |
| 143 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 144 | <data android:scheme="content"/> |
Marco Nelissen | 8d08ec2 | 2010-05-10 14:05:24 -0700 | [diff] [blame] | 145 | <data android:host="media"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 146 | <data android:mimeType="audio/*"/> |
| 147 | <data android:mimeType="application/ogg"/> |
| 148 | <data android:mimeType="application/x-ogg"/> |
The Android Open Source Project | c85f677 | 2009-03-18 17:39:48 -0700 | [diff] [blame] | 149 | <data android:mimeType="application/itunes"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 150 | </intent-filter> |
| 151 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 152 | <action android:name="com.android.music.PLAYBACK_VIEWER"/> |
| 153 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 154 | </intent-filter> |
| 155 | </activity> |
Marco Nelissen | ec0c57a | 2009-12-12 12:27:11 -0800 | [diff] [blame] | 156 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 157 | <activity android:name="com.android.music.ArtistAlbumBrowserActivity" |
| 158 | android:exported="false"> |
Marco Nelissen | 8d08ec2 | 2010-05-10 14:05:24 -0700 | [diff] [blame] | 159 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 160 | <action android:name="android.intent.action.PICK"/> |
| 161 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 162 | <data android:mimeType="vnd.android.cursor.dir/artistalbum"/> |
| 163 | </intent-filter> |
| 164 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 165 | |
| 166 | <activity android:name="com.android.music.AlbumBrowserActivity" android:exported="false"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 167 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 168 | <action android:name="android.intent.action.PICK"/> |
| 169 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 170 | <data android:mimeType="vnd.android.cursor.dir/album"/> |
| 171 | </intent-filter> |
| 172 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 173 | |
| 174 | <activity android:name="com.android.music.TrackBrowserActivity" android:exported="false"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 175 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 176 | <action android:name="android.intent.action.PICK"/> |
| 177 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 178 | <data android:mimeType="vnd.android.cursor.dir/track"/> |
| 179 | </intent-filter> |
| 180 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 181 | |
Marco Nelissen | ff3d437 | 2010-01-27 09:46:40 -0800 | [diff] [blame] | 182 | <activity android:name="com.android.music.PlaylistBrowserActivity" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 183 | android:label="@string/musicbrowserlabel" |
| 184 | android:exported="true"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 185 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 186 | <action android:name="android.intent.action.PICK"/> |
| 187 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 188 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 189 | </intent-filter> |
| 190 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 191 | <action android:name="android.intent.action.VIEW"/> |
| 192 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 193 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 194 | </intent-filter> |
| 195 | </activity> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 196 | |
Marco Nelissen | ff3d437 | 2010-01-27 09:46:40 -0800 | [diff] [blame] | 197 | <service android:name="com.android.music.MediaPlaybackService" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 198 | android:exported="true" |
| 199 | android:label="Android Open Source Music Player"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 200 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 201 | <action android:name="android.media.browse.MediaBrowserService" /> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 202 | </intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 203 | </service> |
| 204 | |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 205 | </application> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 206 | |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 207 | </manifest> |