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