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 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 63 | <!-- |
| 64 | This is the "current music playing" panel, which has special |
| 65 | launch behavior. We clear its task affinity, so it will not |
| 66 | be associated with the main media task and if launched |
| 67 | from a notification will not bring the rest of the media app |
| 68 | to the foreground. We make it singleTask so that when others |
| 69 | launch it (such as media) we will launch in to our own task. |
| 70 | We set clearTaskOnLaunch because the user |
| 71 | can go to a playlist from this activity, so if they later return |
| 72 | to it we want it back in its initial state. We exclude from |
| 73 | recents since this is accessible through a notification when |
| 74 | appropriate. |
| 75 | --> |
Marco Nelissen | 38bcd92 | 2010-03-19 13:00:37 -0700 | [diff] [blame] | 76 | <activity android:name="com.android.music.MediaPlaybackActivity" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 77 | android:theme="@android:style/Theme.NoTitleBar" |
| 78 | android:label="@string/mediaplaybacklabel" |
| 79 | android:taskAffinity="" |
| 80 | android:launchMode="singleTask" |
| 81 | android:clearTaskOnLaunch="true" |
| 82 | android:excludeFromRecents="true" |
| 83 | android:exported="true"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 84 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 85 | <action android:name="android.intent.action.VIEW"/> |
| 86 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 87 | <data android:scheme="content"/> |
Marco Nelissen | 8d08ec2 | 2010-05-10 14:05:24 -0700 | [diff] [blame] | 88 | <data android:host="media"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 89 | <data android:mimeType="audio/*"/> |
| 90 | <data android:mimeType="application/ogg"/> |
| 91 | <data android:mimeType="application/x-ogg"/> |
The Android Open Source Project | c85f677 | 2009-03-18 17:39:48 -0700 | [diff] [blame] | 92 | <data android:mimeType="application/itunes"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 93 | </intent-filter> |
| 94 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 95 | <action android:name="com.android.music.PLAYBACK_VIEWER"/> |
| 96 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 97 | </intent-filter> |
| 98 | </activity> |
Marco Nelissen | ec0c57a | 2009-12-12 12:27:11 -0800 | [diff] [blame] | 99 | |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 100 | <activity android:name="com.android.music.ArtistAlbumBrowserActivity" |
| 101 | android:exported="false"> |
Marco Nelissen | 8d08ec2 | 2010-05-10 14:05:24 -0700 | [diff] [blame] | 102 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 103 | <action android:name="android.intent.action.PICK"/> |
| 104 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 105 | <data android:mimeType="vnd.android.cursor.dir/artistalbum"/> |
| 106 | </intent-filter> |
| 107 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 108 | |
| 109 | <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] | 110 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 111 | <action android:name="android.intent.action.PICK"/> |
| 112 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 113 | <data android:mimeType="vnd.android.cursor.dir/album"/> |
| 114 | </intent-filter> |
| 115 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 116 | |
| 117 | <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] | 118 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 119 | <action android:name="android.intent.action.PICK"/> |
| 120 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 121 | <data android:mimeType="vnd.android.cursor.dir/track"/> |
| 122 | </intent-filter> |
| 123 | </activity> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 124 | |
Marco Nelissen | ff3d437 | 2010-01-27 09:46:40 -0800 | [diff] [blame] | 125 | <activity android:name="com.android.music.PlaylistBrowserActivity" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 126 | android:label="@string/musicbrowserlabel" |
| 127 | android:exported="true"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 128 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 129 | <action android:name="android.intent.action.PICK"/> |
| 130 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 131 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 132 | </intent-filter> |
| 133 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 134 | <action android:name="android.intent.action.VIEW"/> |
| 135 | <category android:name="android.intent.category.DEFAULT"/> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 136 | <data android:mimeType="vnd.android.cursor.dir/playlist"/> |
| 137 | </intent-filter> |
| 138 | </activity> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 139 | |
Marco Nelissen | ff3d437 | 2010-01-27 09:46:40 -0800 | [diff] [blame] | 140 | <service android:name="com.android.music.MediaPlaybackService" |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 141 | android:exported="true" |
| 142 | android:label="Android Open Source Music Player"> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 143 | <intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 144 | <action android:name="android.media.browse.MediaBrowserService" /> |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 145 | </intent-filter> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 146 | </service> |
| 147 | |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 148 | </application> |
Jack He | f02d3c6 | 2017-02-21 00:39:22 -0500 | [diff] [blame] | 149 | |
The Android Open Source Project | 792a220 | 2009-03-03 19:32:30 -0800 | [diff] [blame] | 150 | </manifest> |