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    <application android:name="com.android.tv.app.LiveTvApplication"
24         android:allowBackup="true"
25         android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
26         android:banner="@drawable/live_tv_banner"
27         android:icon="@drawable/ic_tv_app"
28         android:label="@string/app_name"
29         android:supportsRtl="true"
30         android:theme="@style/Theme.TV"
31         tools:replace="android:appComponentFactory">
32
33        <!-- providers are listed here to keep them separate from the internal versions -->
34        <provider android:name="com.android.tv.search.LocalSearchProvider"
35            android:authorities="com.android.tv.search"
36            android:enabled="true"
37            android:exported="true">
38            <meta-data android:name="SupportedSwitchActionType"
39                android:value="CHANNEL|TVINPUT"/>
40        </provider>
41
42        <activity android:name="com.android.tv.MainActivity"
43             android:configChanges="keyboard|keyboardHidden|screenSize|smallestScreenSize|screenLayout|orientation"
44             android:launchMode="singleTask"
45             android:resizeableActivity="true"
46             android:screenOrientation="landscape"
47             android:supportsPictureInPicture="true"
48             android:theme="@style/Theme.TV.MainActivity"
49             android:exported="true">
50            <intent-filter>
51                <action android:name="android.intent.action.VIEW"/>
52                <category android:name="android.intent.category.DEFAULT"/>
53                <data android:mimeType="vnd.android.cursor.item/program"/>
54                <data android:mimeType="vnd.android.cursor.dir/program"/>
55                <data android:mimeType="vnd.android.cursor.item/channel"/>
56                <data android:mimeType="vnd.android.cursor.dir/channel"/>
57            </intent-filter>
58            <intent-filter>
59                <action android:name="android.media.tv.action.SETUP_INPUTS"/>
60                <category android:name="android.intent.category.DEFAULT"/>
61            </intent-filter>
62            <intent-filter>
63                <action android:name="android.intent.action.SEARCH"/>
64            </intent-filter>
65            <meta-data android:name="supports_leanback"
66                 android:value="true"/>
67            <meta-data android:name="android.app.searchable"
68                 android:resource="@xml/searchable"/>
69        </activity>
70    </application>
71
72</manifest>
73