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    <uses-sdk
21        android:minSdkVersion="25"
22        android:targetSdkVersion="25" />
23
24    <!-- This permission is required to allow the radio to be muted. -->
25    <uses-permission android:name="android.car.permission.CAR_CONTROL_AUDIO_SETTINGS" />
26    <uses-permission android:name="android.car.permission.CAR_CONTROL_AUDIO_VOLUME" />
27    <uses-permission android:name="android.car.permission.CAR_RADIO" />
28    <uses-permission android:name="android.permission.ACCESS_BROADCAST_RADIO" />
29    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
30    <!-- Media Center permission to fetch and update the currently selected media source -->
31    <uses-permission android:name="com.android.car.media.provider.READ_WRITE"/>
32
33    <application android:label="@string/app_name"
34        android:icon="@drawable/logo_fm_radio"
35        android:theme="@style/Theme.Radio">
36
37        <activity
38            android:name=".RadioActivity"
39            android:resizeableActivity="true"
40            android:configChanges="uiMode"
41            android:launchMode="singleTop"
42            android:exported="true">
43            <meta-data android:name="distractionOptimized" android:value="true"/>
44            <intent-filter>
45                <action android:name="android.intent.action.MAIN" />
46                <category android:name="android.intent.category.DEFAULT" />
47                <category android:name="android.intent.category.LAUNCHER" />
48                <category android:name="android.intent.category.LAUNCHER_APP" />
49                <category android:name="android.intent.category.APP_MUSIC" />
50            </intent-filter>
51        </activity>
52
53        <!-- RadioAppService is set to be executed in a separate process to make sure the reference
54             app supports it. It's less optimal though, so it might be desirable to turn it off in
55             production app. -->
56        <service
57            android:name=".service.RadioAppService"
58            android:exported="true"
59            android:process=":appService">
60            <intent-filter>
61                <action android:name="android.media.browse.MediaBrowserService" />
62                <action android:name="android.car.intent.action.PLAY_BROADCASTRADIO" />
63            </intent-filter>
64        </service>
65    </application>
66</manifest>
67