Home | History | Annotate | Download | only in SampleDvbTuner
      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.dvb" >
     19 
     20     <uses-sdk
     21         android:minSdkVersion="23"
     22         android:targetSdkVersion="26" />
     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.dvb.app.SampleDvbTuner"
     53         android:icon="@mipmap/ic_launcher"
     54         android:label="@string/sample_dvb_tuner_app_name" >
     55         <activity
     56             android:name="com.google.android.gms.common.api.GoogleApiActivity"
     57             android:exported="false"
     58             android:theme="@android:style/Theme.Translucent.NoTitleBar" />
     59 
     60         <activity
     61             android:name="com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity"
     62             android:configChanges="keyboard|keyboardHidden"
     63             android:exported="true"
     64             android:label="@string/sample_dvb_tuner_app_name"
     65             android:launchMode="singleInstance"
     66             android:theme="@style/Theme.Setup.GuidedStep" >
     67             <intent-filter>
     68                 <action android:name="android.intent.action.MAIN" />
     69             </intent-filter>
     70         </activity>
     71 
     72         <service
     73             android:name="com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService"
     74             android:label="@string/sample_dvb_tuner_app_name"
     75             android:permission="android.permission.BIND_TV_INPUT"
     76             android:process="com.google.android.tv.tuner.sample.dvb.tvinput" >
     77             <intent-filter>
     78                 <action android:name="android.media.tv.TvInputService" />
     79             </intent-filter>
     80 
     81             <meta-data
     82                 android:name="android.media.tv.input"
     83                 android:resource="@xml/sample_dvb_tvinputservice" />
     84         </service>
     85         <service
     86             android:name="com.android.tv.tuner.tvinput.TunerStorageCleanUpService"
     87             android:exported="false"
     88             android:permission="android.permission.BIND_JOB_SERVICE"
     89             android:process="com.android.tv.tuner" />
     90     </application>
     91 
     92 </manifest>