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"/>
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                      android:scheme="content"
55                      android:host="android.media.tv"
56                      android:pathPrefix="/program" />
57                <data android:mimeType="vnd.android.cursor.dir/program"
58                     android:scheme="content"
59                      android:host="android.media.tv"
60                      android:pathPrefix="/program" />
61                <data android:mimeType="vnd.android.cursor.item/channel"
62                      android:scheme="content"
63                      android:host="android.media.tv"
64                      android:pathPrefix="/channel" />
65                 <data android:mimeType="vnd.android.cursor.dir/channel"
66                      android:scheme="content"
67                      android:host="android.media.tv"
68                      android:pathPrefix="/channel" />
69            </intent-filter>
70            <intent-filter>
71                <action android:name="android.media.tv.action.SETUP_INPUTS"/>
72                <category android:name="android.intent.category.DEFAULT"/>
73            </intent-filter>
74            <intent-filter>
75                <action android:name="android.intent.action.SEARCH"/>
76            </intent-filter>
77            <meta-data android:name="supports_leanback"
78                 android:value="true"/>
79            <meta-data android:name="android.app.searchable"
80                 android:resource="@xml/searchable"/>
81        </activity>
82    </application>
83
84</manifest>
85