• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2018 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<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18    package="com.android.tv.tuner.sample.network" >
19
20    <uses-sdk
21        android:minSdkVersion="23"
22        android:targetSdkVersion="27" />
23
24    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
25    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
26    <uses-permission android:name="android.permission.READ_CONTENT_RATING_SYSTEMS" />
27    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
28    <uses-permission android:name="android.permission.READ_TV_LISTINGS" />
29    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
30    <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" />
31    <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" />
32
33    <!-- Permissions/feature for USB tuner -->
34    <uses-permission android:name="android.permission.DVB_DEVICE" />
35
36    <uses-feature
37        android:name="android.hardware.usb.host"
38        android:required="false" />
39
40    <!-- Limit only for Android TV -->
41    <uses-feature
42        android:name="android.software.leanback"
43        android:required="true" />
44    <uses-feature
45        android:name="android.software.live_tv"
46        android:required="true" />
47    <uses-feature
48        android:name="android.hardware.touchscreen"
49        android:required="false" />
50
51    <application
52        android:name="com.android.tv.tuner.sample.network.app.SampleNetworkTuner"
53        android:appComponentFactory="android.support.v4.app.CoreComponentFactory"
54        android:icon="@mipmap/ic_launcher"
55        android:label="@string/sample_network_tuner_app_name" >
56
57
58        <activity
59            android:name="com.android.tv.tuner.sample.network.setup.SampleNetworkTunerSetupActivity"
60            android:configChanges="keyboard|keyboardHidden"
61            android:exported="true"
62            android:label="@string/sample_network_tuner_app_name"
63            android:launchMode="singleInstance"
64            android:theme="@style/Theme.Setup.GuidedStep" >
65            <intent-filter>
66                <action android:name="android.intent.action.MAIN" />
67            </intent-filter>
68        </activity>
69
70        <service
71            android:name="com.android.tv.tuner.sample.network.tvinput.SampleNetworkTunerTvInputService"
72            android:label="@string/sample_network_tuner_app_name"
73            android:permission="android.permission.BIND_TV_INPUT"
74            android:process="com.android.tv.tuner.sample.network.tvinput" >
75            <intent-filter>
76                <action android:name="android.media.tv.TvInputService" />
77            </intent-filter>
78
79            <meta-data
80                android:name="android.media.tv.input"
81                android:resource="@xml/sample_network_tvinputservice" />
82        </service>
83        <service
84            android:name="com.android.tv.tuner.tvinput.TunerStorageCleanUpService"
85            android:exported="false"
86            android:permission="android.permission.BIND_JOB_SERVICE"
87            android:process="com.android.tv.tuner" />
88    </application>
89
90</manifest>