1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2016 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.radio"> 20 21 <!-- This permission is required to allow the radio to be muted. --> 22 <uses-permission android:name="android.car.permission.CAR_CONTROL_AUDIO_SETTINGS" /> 23 <uses-permission android:name="android.car.permission.CAR_CONTROL_AUDIO_VOLUME" /> 24 <uses-permission android:name="android.car.permission.CAR_RADIO" /> 25 <uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO" /> 26 <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/> 27 <!-- Media Center permission to fetch and update the currently selected media source --> 28 <uses-permission android:name="com.android.car.media.provider.READ_WRITE"/> 29 30 <!-- To connect to media browser services in other apps, media browser clients 31 that target Android 11 need to add the following in their manifest --> 32 <queries> 33 <intent> 34 <action android:name="android.media.browse.MediaBrowserService" /> 35 </intent> 36 </queries> 37 38 <application android:label="@string/app_name" 39 android:icon="@drawable/logo_fm_radio" 40 android:theme="@style/Theme.Radio" 41 android:supportsRtl="true"> 42 43 <activity 44 android:name=".RadioActivity" 45 android:resizeableActivity="true" 46 android:configChanges="uiMode" 47 android:launchMode="singleTop" 48 android:exported="true"> 49 <meta-data android:name="distractionOptimized" android:value="true"/> 50 <intent-filter> 51 <action android:name="android.intent.action.MAIN" /> 52 <category android:name="android.intent.category.DEFAULT" /> 53 <category android:name="android.intent.category.LAUNCHER" /> 54 <category android:name="android.intent.category.LAUNCHER_APP" /> 55 </intent-filter> 56 </activity> 57 58 <!-- RadioAppService is set to be executed in a separate process to make sure the reference 59 app supports it. It's less optimal though, so it might be desirable to turn it off in 60 production app. --> 61 <!-- Keep in sync with RadioAppService#getMediaSourceComp. --> 62 <service 63 android:name=".service.RadioAppService" 64 android:exported="true" 65 android:process=":appService"> 66 <intent-filter> 67 <action android:name="android.media.browse.MediaBrowserService" /> 68 <action android:name="android.car.intent.action.PLAY_BROADCASTRADIO" /> 69 </intent-filter> 70 </service> 71 </application> 72</manifest> 73