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