1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2015 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<!-- This manifest is for LiveTv -->
18
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
20     xmlns:tools="http://schemas.android.com/tools"
21     package="com.android.tv">
22
23    <uses-sdk android:minSdkVersion="23"
24         android:targetSdkVersion="29"/>
25
26    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
27    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
28    <uses-permission android:name="android.permission.CHANGE_HDMI_CEC_ACTIVE_SOURCE"/>
29    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
30    <uses-permission android:name="android.permission.HDMI_CEC"/>
31    <uses-permission android:name="android.permission.INTERNET"/>
32    <uses-permission android:name="android.permission.MODIFY_PARENTAL_CONTROLS"/>
33    <uses-permission android:name="android.permission.READ_CONTENT_RATING_SYSTEMS"/>
34    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
35    <uses-permission android:name="android.permission.READ_TV_LISTINGS"/>
36    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
37    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
38    <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA"/>
39    <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA"/>
40    <uses-permission android:name="com.android.providers.tv.permission.ACCESS_ALL_EPG_DATA"/>
41    <uses-permission android:name="com.android.providers.tv.permission.ACCESS_WATCHED_PROGRAMS"/>
42    <!-- Permissions/feature for USB tuner -->
43    <uses-permission android:name="android.permission.DVB_DEVICE"/>
44
45    <uses-feature android:name="android.hardware.usb.host"
46         android:required="false"/>
47
48    <!-- Limit only for Android TV -->
49    <uses-feature android:name="android.software.leanback"
50         android:required="true"/>
51    <uses-feature android:name="android.software.live_tv"
52         android:required="true"/>
53    <uses-feature android:name="android.hardware.touchscreen"
54         android:required="false"/>
55
56    <!-- Receives input events from the TV app. -->
57    <permission android:name="com.android.tv.permission.RECEIVE_INPUT_EVENT"
58         android:description="@string/permdesc_receiveInputEvent"
59         android:label="@string/permlab_receiveInputEvent"
60         android:protectionLevel="signatureOrSystem"/>
61    <!-- Customizes Live TV with customization packages. -->
62    <permission android:name="com.android.tv.permission.CUSTOMIZE_TV_APP"
63         android:description="@string/permdesc_customizeTvApp"
64         android:label="@string/permlab_customizeTvApp"
65         android:protectionLevel="signatureOrSystem"/>
66
67    <application android:name="com.android.tv.app.LiveTvApplication"
68         android:allowBackup="true"
69         android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
70         android:banner="@drawable/live_tv_banner"
71         android:icon="@drawable/ic_tv_app"
72         android:label="@string/app_name"
73         android:supportsRtl="true"
74         android:theme="@style/Theme.TV"
75         tools:replace="android:appComponentFactory">
76
77        <!-- providers are listed here to keep them separate from the internal versions -->
78        <provider android:name="com.android.tv.search.LocalSearchProvider"
79             android:authorities="com.android.tv.search"
80             android:enabled="true"
81             android:exported="true">
82            <meta-data android:name="SupportedSwitchActionType"
83                 android:value="CHANNEL|TVINPUT"/>
84        </provider>
85        <provider android:name="com.android.tv.common.CommonPreferenceProvider"
86             android:authorities="com.android.tv.common.preferences"
87             android:exported="false"
88             android:process="com.android.tv.common"/>
89
90
91
92        <receiver android:name="com.android.tv.livetv.receiver.GlobalKeyReceiver"
93             android:exported="true">
94            <intent-filter>
95                <action android:name="android.intent.action.GLOBAL_BUTTON"/>
96            </intent-filter>
97
98            <!--
99                             Not directly related to GlobalKeyReceiver but needed to be able to provide our
100                            content rating definitions to the system service.
101                            -->
102            <intent-filter>
103                <action android:name="android.media.tv.action.QUERY_CONTENT_RATING_SYSTEMS"/>
104            </intent-filter>
105
106            <meta-data android:name="android.media.tv.metadata.CONTENT_RATING_SYSTEMS"
107                 android:resource="@xml/tv_content_rating_systems"/>
108        </receiver>
109
110        <activity android:name="com.android.tv.TvActivity"
111             android:exported="true"
112             android:launchMode="singleTask">
113            <intent-filter>
114                <action android:name="android.intent.action.MAIN"/>
115
116                <category android:name="android.intent.category.LAUNCHER"/>
117                <category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
118            </intent-filter>
119        </activity>
120        <activity android:name="com.android.tv.MainActivity"
121             android:configChanges="keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout|orientation"
122             android:launchMode="singleTask"
123             android:resizeableActivity="true"
124             android:screenOrientation="landscape"
125             android:supportsPictureInPicture="true"
126             android:theme="@style/Theme.TV.MainActivity"
127             android:exported="true">
128            <intent-filter>
129                <action android:name="android.intent.action.VIEW"/>
130
131                <category android:name="android.intent.category.DEFAULT"/>
132
133                <data android:mimeType="vnd.android.cursor.item/channel"/>
134                <data android:mimeType="vnd.android.cursor.dir/channel"/>
135                <data android:mimeType="vnd.android.cursor.item/program"/>
136                <data android:mimeType="vnd.android.cursor.dir/program"/>
137            </intent-filter>
138            <intent-filter>
139                <action android:name="android.media.tv.action.SETUP_INPUTS"/>
140
141                <category android:name="android.intent.category.DEFAULT"/>
142            </intent-filter>
143            <intent-filter>
144                <action android:name="android.intent.action.SEARCH"/>
145            </intent-filter>
146
147            <meta-data android:name="supports_leanback"
148                 android:value="true"/>
149            <meta-data android:name="android.app.searchable"
150                 android:resource="@xml/searchable"/>
151        </activity>
152        <activity android:name="com.android.tv.LauncherActivity"
153             android:configChanges="keyboard|keyboardHidden"
154             android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
155        <activity android:name="com.android.tv.SetupPassthroughActivity"
156             android:configChanges="keyboard|keyboardHidden"
157             android:exported="true"
158             android:theme="@android:style/Theme.Translucent.NoTitleBar">
159            <intent-filter>
160                <action android:name="com.android.tv.action.LAUNCH_INPUT_SETUP"/>
161
162                <category android:name="android.intent.category.DEFAULT"/>
163            </intent-filter>
164        </activity>
165        <activity android:name="com.android.tv.SelectInputActivity"
166             android:configChanges="keyboard|keyboardHidden"
167             android:launchMode="singleTask"
168             android:theme="@style/Theme.SelectInputActivity"/>
169        <activity android:name="com.android.tv.onboarding.OnboardingActivity"
170             android:configChanges="keyboard|keyboardHidden"
171             android:launchMode="singleTop"
172             android:theme="@style/Theme.Setup.GuidedStep"/>
173        <activity android:name="com.android.tv.dvr.ui.browse.DvrBrowseActivity"
174             android:configChanges="keyboard|keyboardHidden"
175             android:launchMode="singleTask"
176             android:theme="@style/Theme.Leanback.Browse"
177             android:exported="true">
178            <intent-filter>
179                <action android:name="android.media.tv.action.VIEW_RECORDING_SCHEDULES"/>
180
181                <category android:name="android.intent.category.DEFAULT"/>
182            </intent-filter>
183            <intent-filter>
184                <action android:name="android.intent.action.VIEW"/>
185
186                <category android:name="android.intent.category.DEFAULT"/>
187
188                <data android:mimeType="vnd.android.cursor.dir/recorded_program"/>
189            </intent-filter>
190        </activity>
191        <activity android:name="com.android.tv.dvr.ui.playback.DvrPlaybackActivity"
192             android:configChanges="keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout|orientation"
193             android:launchMode="singleTask"
194             android:theme="@style/Theme.Leanback"
195             android:exported="true">
196            <intent-filter>
197                <action android:name="android.intent.action.VIEW"/>
198
199                <category android:name="android.intent.category.DEFAULT"/>
200
201                <data android:mimeType="vnd.android.cursor.item/recorded_program"/>
202            </intent-filter>
203        </activity>
204        <activity android:name="com.android.tv.ui.DetailsActivity"
205             android:configChanges="keyboard|keyboardHidden"
206             android:exported="true"
207             android:theme="@style/Theme.TV.Dvr.Browse.Details"/>
208        <activity android:name="com.android.tv.dvr.ui.DvrRecordingSettingsActivity"
209             android:configChanges="keyboard|keyboardHidden"
210             android:exported="false"
211             android:theme="@style/Theme.TV.Dvr.Series.Settings.GuidedStep"/>
212        <activity android:name="com.android.tv.dvr.ui.DvrSeriesSettingsActivity"
213             android:configChanges="keyboard|keyboardHidden"
214             android:theme="@style/Theme.TV.Dvr.Series.Settings.GuidedStep"/>
215        <activity android:name="com.android.tv.dvr.ui.DvrSeriesDeletionActivity"
216             android:configChanges="keyboard|keyboardHidden"
217             android:theme="@style/Theme.TV.Dvr.Series.Deletion.GuidedStep"/>
218        <activity android:name="com.android.tv.dvr.ui.DvrSeriesScheduledDialogActivity"
219             android:theme="@style/Theme.TV.dialog.HalfSizedDialog"/>
220        <activity android:name="com.android.tv.dvr.ui.list.DvrSchedulesActivity"
221             android:configChanges="keyboard|keyboardHidden"
222             android:theme="@style/Theme.Leanback.Details"/>
223        <activity android:name="com.android.tv.dvr.ui.list.DvrHistoryActivity"
224             android:configChanges="keyboard|keyboardHidden"
225             android:exported="false"
226             android:theme="@style/Theme.Leanback.Details"/>
227
228        <service android:name="com.android.tv.recommendation.NotificationService"
229             android:exported="false"/>
230        <service android:name="com.android.tv.recommendation.ChannelPreviewUpdater$ChannelPreviewUpdateService"
231             android:permission="android.permission.BIND_JOB_SERVICE"/>
232
233        <receiver android:name="com.android.tv.receiver.BootCompletedReceiver"
234             android:exported="true">
235            <intent-filter>
236                <action android:name="android.intent.action.BOOT_COMPLETED"/>
237            </intent-filter>
238        </receiver>
239        <receiver android:name="com.android.tv.receiver.PackageIntentsReceiver"
240             android:exported="true">
241            <intent-filter>
242                <action android:name="android.intent.action.PACKAGE_ADDED"/>
243                <!-- PACKAGE_CHANGED for package enabled/disabled notification -->
244                <action android:name="android.intent.action.PACKAGE_CHANGED"/>
245                <action android:name="android.intent.action.PACKAGE_FULLY_REMOVED"/>
246                <action android:name="android.intent.action.PACKAGE_REMOVED"/>
247
248                <data android:scheme="package"/>
249            </intent-filter>
250            <intent-filter>
251                <action android:name="android.intent.action.BOOT_COMPLETED"/>
252            </intent-filter>
253        </receiver> <!-- System initial setup component definition -->
254        <activity android:name="com.android.tv.setup.SystemSetupActivity"
255             android:configChanges="keyboard|keyboardHidden"
256             android:exported="true"
257             android:label="@string/app_name"
258             android:launchMode="singleInstance"
259             android:theme="@style/Theme.Setup.GuidedStep">
260            <intent-filter>
261                <action android:name="com.android.tv.action.LAUNCH_SYSTEM_SETUP"/>
262
263                <category android:name="android.intent.category.DEFAULT"/>
264            </intent-filter>
265        </activity> <!-- DVR -->
266        <service android:name="com.android.tv.dvr.recorder.DvrRecordingService"
267             android:label="@string/dvr_service_name"/>
268
269        <receiver android:name="com.android.tv.dvr.recorder.DvrStartRecordingReceiver"
270             android:exported="false"/>
271
272        <service android:name="com.android.tv.data.epg.EpgFetchService"
273             android:permission="android.permission.BIND_JOB_SERVICE"/>
274    </application>
275
276</manifest>
277