1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2019 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.android.tv.samples.sampletunertvinput" 21 android:sharedUserId="android.uid.system" 22 coreApp="true"> 23 24 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 25 <uses-permission android:name="android.permission.INTERNET"/> 26 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> 27 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 28 <uses-permission android:name="android.permission.ACCESS_TV_DESCRAMBLER" /> 29 <uses-permission android:name="android.permission.ACCESS_TV_TUNER" /> 30 <uses-permission android:name="android.permission.TUNER_RESOURCE_ACCESS" /> 31 <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" /> 32 <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" /> 33 <uses-permission android:name="com.android.tv.permission.RECEIVE_INPUT_EVENT" /> 34 35 <uses-feature android:name="android.software.leanback" android:required="true" /> 36 <uses-feature android:name="android.software.live_tv" android:required="true" /> 37 38 <uses-sdk android:targetSdkVersion="29" android:minSdkVersion="29" 39 tools:overrideLibrary="com.android.tv.testing"/> 40 <application android:label="@string/sample_tuner_tv_input" 41 tools:replace="android:label,icon,theme,appComponentFactory" 42 android:icon="@mipmap/ic_launcher" 43 android:theme="@android:style/Theme.Holo.Light.NoActionBar" 44 android:appComponentFactory="android.support.v4.app.CoreComponentFactory" > 45 <uses-library android:name="com.android.libraries.tv.tvsystem" android:required="false" /> 46 <activity android:name=".SampleTunerTvInputSetupActivity" 47 android:exported="true"> 48 <intent-filter> 49 <action android:name="android.intent.action.MAIN" /> 50 </intent-filter> 51 </activity> 52 <service android:name=".SampleTunerTvInputService" 53 android:permission="android.permission.BIND_TV_INPUT" 54 android:label="@string/sample_tuner_tv_input" 55 android:process="com.android.tv.samples.sampletunertvinput" 56 android:exported="true"> 57 <intent-filter> 58 <action android:name="android.media.tv.TvInputService" /> 59 </intent-filter> 60 <meta-data android:name="android.media.tv.input" 61 android:resource="@xml/sampletunertvinputservice" /> 62 </service> 63 </application> 64</manifest> 65