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 18<manifest xmlns:android="http://schemas.android.com/apk/res/android" 19 xmlns:tools="http://schemas.android.com/tools" 20 package="com.android.tv.tuner.sample.dvb"> 21 22 <uses-sdk android:minSdkVersion="23" 23 android:targetSdkVersion="29"/> 24 25 <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 26 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> 27 <uses-permission android:name="android.permission.READ_CONTENT_RATING_SYSTEMS"/> 28 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> 29 <uses-permission android:name="android.permission.READ_TV_LISTINGS"/> 30 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> 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 <!-- Permission to modify Recorded Program --> 34 <uses-permission android:name="com.android.providers.tv.permission.ACCESS_ALL_EPG_DATA"/> 35 36 <!-- Permissions/feature for USB tuner --> 37 <uses-permission android:name="android.permission.DVB_DEVICE"/> 38 39 <uses-feature android:name="android.hardware.usb.host" 40 android:required="false"/> 41 42 <!-- Limit only for Android TV --> 43 <uses-feature android:name="android.software.leanback" 44 android:required="true"/> 45 <uses-feature android:name="android.software.live_tv" 46 android:required="true"/> 47 <uses-feature android:name="android.hardware.touchscreen" 48 android:required="false"/> 49 50 <application tools:replace="android:appComponentFactory" 51 android:name="com.android.tv.tuner.sample.dvb.app.SampleDvbTuner" 52 android:appComponentFactory="android.support.v4.app.CoreComponentFactory" 53 android:icon="@mipmap/ic_launcher" 54 android:label="@string/sample_dvb_tuner_app_name"> 55 56 <activity android:name="com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity" 57 android:configChanges="keyboard|keyboardHidden" 58 android:exported="true" 59 android:label="@string/sample_dvb_tuner_app_name" 60 android:launchMode="singleInstance" 61 android:theme="@style/Theme.Setup.GuidedStep"> 62 <intent-filter> 63 <action android:name="android.intent.action.MAIN"/> 64 </intent-filter> 65 </activity> 66 67 <service android:name="com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService" 68 android:label="@string/sample_dvb_tuner_app_name" 69 android:permission="android.permission.BIND_TV_INPUT" 70 android:process="com.android.tv.tuner.sample.dvb.tvinput" 71 android:exported="true"> 72 <intent-filter> 73 <action android:name="android.media.tv.TvInputService"/> 74 </intent-filter> 75 76 <meta-data android:name="android.media.tv.input" 77 android:resource="@xml/sample_dvb_tvinputservice"/> 78 </service> 79 <service android:name="com.android.tv.tuner.tvinput.TunerStorageCleanUpService" 80 android:exported="false" 81 android:permission="android.permission.BIND_JOB_SERVICE" 82 android:process="com.android.tv.tuner"/> 83 </application> 84 85</manifest> 86