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