• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2017 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     xmlns:tools="http://schemas.android.com/tools"
20     package="com.example.partnersupportsampletvinput">
21
22    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
23    <uses-permission android:name="android.permission.INTERNET"/>
24    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
25    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
26    <!-- TODO: READ_EPG_DATA and WRITE_EPG_DATA need to be removed, once we fully
27                 migrate all test environment from LMP to MNC, because the permissions
28                 are not required from MNC. -->
29    <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA"/>
30    <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA"/>
31    <uses-permission android:name="com.android.tv.permission.RECEIVE_INPUT_EVENT"/>
32    <uses-sdk android:targetSdkVersion="29"
33         android:minSdkVersion="23"/>
34    <!--TODO(b/68949299): remove tool hint when we have smaller dependency targets-->
35    <application android:label="@string/partner_support_sample_tv_input"
36         tools:replace="android:label,icon,theme,appComponentFactory"
37         android:icon="@mipmap/ic_launcher"
38         android:theme="@android:style/Theme.Holo.Light.NoActionBar"
39         android:appComponentFactory="android.support.v4.app.CoreComponentFactory">
40        <activity android:name=".SampleTvInputSetupActivity"
41             android:theme="@style/Theme.Leanback.GuidedStep"
42             android:exported="true">
43            <intent-filter>
44                <action android:name="android.intent.action.MAIN"/>
45            </intent-filter>
46        </activity>
47        <service android:name=".SampleTvInputService"
48             android:permission="android.permission.BIND_TV_INPUT"
49             android:label="@string/partner_support_sample_tv_input"
50             android:process="com.example.partnersupportsampletvinput"
51             android:exported="true">
52            <intent-filter>
53                <action android:name="android.media.tv.TvInputService"/>
54            </intent-filter>
55            <meta-data android:name="android.media.tv.input"
56                 android:resource="@xml/sampletvinputservice"/>
57        </service>
58    </application>
59</manifest>
60