blob: b8e337b083734a433876e920827b2b7cdee02fd6 [file] [log] [blame]
The Android Open Source Project792a2202009-03-03 19:32:30 -08001<?xml version="1.0" encoding="utf-8"?>
Jack Hef02d3c62017-02-21 00:39:22 -05002<!--
3 Copyright (C) 2017 The Android Open Source Project
The Android Open Source Project792a2202009-03-03 19:32:30 -08004
Jack Hef02d3c62017-02-21 00:39:22 -05005 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 Project792a2202009-03-03 19:32:30 -080016-->
The Android Open Source Project792a2202009-03-03 19:32:30 -080017<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Jack Hef02d3c62017-02-21 00:39:22 -050018 package="com.android.music"
19 android:versionCode="2"
20 android:versionName="2.0">
Jeff Hamilton69434742010-02-11 16:25:51 -060021
Jack Hef02d3c62017-02-21 00:39:22 -050022 <!-- Package Name -->
23 <original-package android:name="com.android.music"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -080024
Jack Hef02d3c62017-02-21 00:39:22 -050025 <!-- SDK Versions -->
26 <uses-sdk android:minSdkVersion="19"
27 android:targetSdkVersion="24"/>
Jack Hef9e434b2017-01-26 16:10:20 -080028
Jack Hef02d3c62017-02-21 00:39:22 -050029 <!-- 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 Hef9e434b2017-01-26 16:10:20 -080038
Jack Hef02d3c62017-02-21 00:39:22 -050039 <!-- 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 Nelissenff3d4372010-01-27 09:46:40 -080052 <activity android:name="com.android.music.MusicBrowserActivity"
Jack Hef02d3c62017-02-21 00:39:22 -050053 android:theme="@android:style/Theme.NoTitleBar"
54 android:exported="true">
The Android Open Source Project792a2202009-03-03 19:32:30 -080055 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -050056 <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 Project792a2202009-03-03 19:32:30 -080060 </intent-filter>
Marco Nelissen9882f542009-08-14 10:06:15 -070061 </activity>
Jack Hef9e434b2017-01-26 16:10:20 -080062
Jack Hef02d3c62017-02-21 00:39:22 -050063 <!--
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 Nelissen38bcd922010-03-19 13:00:37 -070076 <activity android:name="com.android.music.MediaPlaybackActivity"
Jack Hef02d3c62017-02-21 00:39:22 -050077 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 Project792a2202009-03-03 19:32:30 -080084 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -050085 <action android:name="android.intent.action.VIEW"/>
86 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -080087 <data android:scheme="content"/>
Marco Nelissen8d08ec22010-05-10 14:05:24 -070088 <data android:host="media"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -080089 <data android:mimeType="audio/*"/>
90 <data android:mimeType="application/ogg"/>
91 <data android:mimeType="application/x-ogg"/>
The Android Open Source Projectc85f6772009-03-18 17:39:48 -070092 <data android:mimeType="application/itunes"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -080093 </intent-filter>
94 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -050095 <action android:name="com.android.music.PLAYBACK_VIEWER"/>
96 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -080097 </intent-filter>
98 </activity>
Marco Nelissenec0c57a2009-12-12 12:27:11 -080099
Jack Hef02d3c62017-02-21 00:39:22 -0500100 <activity android:name="com.android.music.ArtistAlbumBrowserActivity"
101 android:exported="false">
Marco Nelissen8d08ec22010-05-10 14:05:24 -0700102 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500103 <action android:name="android.intent.action.PICK"/>
104 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800105 <data android:mimeType="vnd.android.cursor.dir/artistalbum"/>
106 </intent-filter>
107 </activity>
Jack Hef02d3c62017-02-21 00:39:22 -0500108
109 <activity android:name="com.android.music.AlbumBrowserActivity" android:exported="false">
The Android Open Source Project792a2202009-03-03 19:32:30 -0800110 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500111 <action android:name="android.intent.action.PICK"/>
112 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800113 <data android:mimeType="vnd.android.cursor.dir/album"/>
114 </intent-filter>
115 </activity>
Jack Hef02d3c62017-02-21 00:39:22 -0500116
117 <activity android:name="com.android.music.TrackBrowserActivity" android:exported="false">
The Android Open Source Project792a2202009-03-03 19:32:30 -0800118 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500119 <action android:name="android.intent.action.PICK"/>
120 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800121 <data android:mimeType="vnd.android.cursor.dir/track"/>
122 </intent-filter>
123 </activity>
Jack Hef02d3c62017-02-21 00:39:22 -0500124
Marco Nelissenff3d4372010-01-27 09:46:40 -0800125 <activity android:name="com.android.music.PlaylistBrowserActivity"
Jack Hef02d3c62017-02-21 00:39:22 -0500126 android:label="@string/musicbrowserlabel"
127 android:exported="true">
The Android Open Source Project792a2202009-03-03 19:32:30 -0800128 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500129 <action android:name="android.intent.action.PICK"/>
130 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800131 <data android:mimeType="vnd.android.cursor.dir/playlist"/>
132 </intent-filter>
133 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500134 <action android:name="android.intent.action.VIEW"/>
135 <category android:name="android.intent.category.DEFAULT"/>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800136 <data android:mimeType="vnd.android.cursor.dir/playlist"/>
137 </intent-filter>
138 </activity>
The Android Open Source Project792a2202009-03-03 19:32:30 -0800139
Marco Nelissenff3d4372010-01-27 09:46:40 -0800140 <service android:name="com.android.music.MediaPlaybackService"
Jack Hef02d3c62017-02-21 00:39:22 -0500141 android:exported="true"
142 android:label="Android Open Source Music Player">
The Android Open Source Project792a2202009-03-03 19:32:30 -0800143 <intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500144 <action android:name="android.media.browse.MediaBrowserService" />
The Android Open Source Project792a2202009-03-03 19:32:30 -0800145 </intent-filter>
Jack Hef02d3c62017-02-21 00:39:22 -0500146 </service>
147
The Android Open Source Project792a2202009-03-03 19:32:30 -0800148 </application>
Jack Hef02d3c62017-02-21 00:39:22 -0500149
The Android Open Source Project792a2202009-03-03 19:32:30 -0800150</manifest>