1<?xml version="1.0" encoding="utf-8"?>
2<!--
3 * Copyright (c) 2019, 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.testmediaapp"
20    android:versionCode="10000" android:versionName="1.0.0">
21
22    <uses-feature android:name="android.hardware.type.automotive"
23         android:required="true"/>
24    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
25    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
26
27    <application android:allowBackup="true"
28         android:label="@string/app_name"
29         android:supportsRtl="true"
30         android:theme="@style/TestMediaAppTheme">
31
32        <!-- This provider is read-only, only returns album art, and is not a security risk -->
33        <provider android:name=".TmaPublicProvider"
34             android:exported="true"
35             android:authorities="com.android.car.media.testmediaapp.public"/>
36
37        <service android:name=".TmaBrowser"
38             android:icon="@drawable/ic_app_icon"
39             android:exported="true"
40             android:label="@string/app_name">
41            <intent-filter>
42                <action android:name="android.media.browse.MediaBrowserService"/>
43                <action android:name="android.intent.action.MEDIA_BUTTON"/>
44            </intent-filter>
45        </service>
46
47        <service android:name=".TmaForegroundService"
48             android:icon="@drawable/ic_app_icon"
49             android:exported="false"
50             android:foregroundServiceType="location"
51             android:label="@string/app_name">
52        </service>
53
54        <service android:name=".TmaBrowser2"
55             android:icon="@mipmap/ic_launcher"
56             android:exported="true"
57             android:label="@string/broken_service">
58            <intent-filter>
59                <action android:name="android.media.browse.MediaBrowserService"/>
60                <action android:name="android.intent.action.MEDIA_BUTTON"/>
61            </intent-filter>
62        </service>
63
64        <activity android:name=".prefs.TmaPrefsActivity"
65             android:label="@string/app_name"
66             android:exported="true">
67            <intent-filter>
68                <action android:name="android.intent.action.APPLICATION_PREFERENCES"/>
69            </intent-filter>
70        </activity>
71
72
73
74        <!--                To use the app on a phone.                      -->
75        <meta-data android:name="com.google.android.gms.car.application"
76             android:resource="@xml/automotive_app_desc"/>
77
78        <activity android:name=".phone.TmaLauncherActivity"
79             android:exported="true">
80            <intent-filter>
81                <action android:name="android.intent.action.MAIN"/>
82                <category android:name="android.intent.category.LAUNCHER"/>
83            </intent-filter>
84        </activity>
85
86        <receiver android:name="androidx.media.session.MediaButtonReceiver"
87             android:exported="true">
88            <intent-filter>
89                <action android:name="android.intent.action.MEDIA_BUTTON"/>
90            </intent-filter>
91        </receiver>
92
93    </application>
94
95</manifest>
96