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
18<manifest xmlns:android="http://schemas.android.com/apk/res/android"
19     package="com.android.tv.testinput">
20
21    <uses-sdk android:targetSdkVersion="29"
22         android:minSdkVersion="23"/>
23
24     <!-- Required to update or read existing channel and program information in TvProvider. -->
25    <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA"/>
26    <!-- Required to update channel and program information in TvProvider. -->
27    <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA"/>
28
29    <application android:label="@string/sample_tv_input"
30         android:icon="@drawable/android_48dp"
31         android:theme="@android:style/Theme.Holo.Light.NoActionBar">
32        <!-- Launched by the TV app before it uses TestTvInputService to set up channels for this
33                    input. -->
34        <activity android:name=".TestTvInputSetupActivity"
35             android:exported="true">
36            <intent-filter>
37                <action android:name="android.intent.action.MAIN"/>
38            </intent-filter>
39        </activity>
40        <service android:name=".TestTvInputService"
41             android:permission="android.permission.BIND_TV_INPUT"
42             android:label="@string/simple_input_label"
43             android:exported="true">
44            <!-- Required filter used by the system to launch our account service. -->
45            <intent-filter>
46                <action android:name="android.media.tv.TvInputService"/>
47            </intent-filter>
48            <!-- An XML file which describes this input. This provides a pointer to the
49                            TestTvInputSetupActivity to the system/TV app. -->
50            <meta-data android:name="android.media.tv.input"
51                 android:resource="@xml/testtvinputservice"/>
52        </service>
53        <service android:name=".TestInputControlService"
54             android:exported="true"/>
55
56    </application>
57
58    <instrumentation android:name=".instrument.TestSetupInstrumentation"
59         android:label="Test Setup Instrument"
60         android:targetPackage="com.android.tv.testinput"/>
61
62    <uses-feature android:name="android.hardware.touchscreen"
63         android:required="false"/>
64    <uses-feature android:name="android.software.leanback"
65         android:required="true"/>
66    <!-- Required to expose this app in the store only when the device has TV input framework
67            with the TV app. -->
68    <uses-feature android:name="android.software.live_tv"
69         android:required="true"/>
70</manifest>
71