1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  Copyright (C) 2015 The Android Open Source Project
4
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.
16  -->
17
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19    package="com.android.car.media"
20          android:versionCode="10000" android:versionName="1.0.0">
21
22    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
23    <uses-permission android:name="android.permission.INTERNET" />
24    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
25    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
26
27    <!-- To connect to media browser services in other apps, media browser clients
28    that target Android 11 need to add the following in their manifest -->
29    <queries>
30        <intent>
31            <action android:name="android.media.browse.MediaBrowserService" />
32        </intent>
33    </queries>
34
35    <application
36        android:label="Media Center"
37        android:theme="@style/Theme.Media"
38        android:icon="@drawable/ic_music"
39        android:supportsRtl="true">
40
41        <meta-data
42            android:name="android.car.application"
43            android:resource="@xml/automotive_app_desc" />
44
45        <!-- Private implementation, should never be exported. -->
46        <activity
47            android:name=".MediaActivity"
48            android:exported="false"
49            android:resizeableActivity="true"
50            android:windowSoftInputMode="stateHidden|adjustPan"
51            android:launchMode="singleTop">
52            <meta-data android:name="distractionOptimized" android:value="true"/>
53        </activity>
54
55        <!-- The Media center entry point that trampolines into MediaActivity or the radio app. -->
56        <activity
57            android:name=".MediaDispatcherActivity"
58            android:theme="@android:style/Theme.NoDisplay"
59            android:exported="true"
60            android:launchMode="singleTask">
61            <meta-data android:name="distractionOptimized" android:value="true"/>
62            <intent-filter>
63                <action android:name="android.intent.action.MAIN" />
64                <category android:name="android.intent.category.DEFAULT" />
65                <category android:name="android.intent.category.INFO" />
66                <category android:name="android.intent.category.APP_MUSIC" />
67            </intent-filter>
68            <intent-filter>
69                <action android:name="android.car.intent.action.MEDIA_TEMPLATE" />
70                <category android:name="android.intent.category.DEFAULT" />
71            </intent-filter>
72        </activity>
73
74        <service
75            android:name=".service.MediaConnectorService"
76            android:exported="true">
77            <intent-filter>
78                <action android:name="com.android.car.media.MEDIA_CONNECTION"/>
79            </intent-filter>
80        </service>
81    </application>
82</manifest>
83