aboutsummaryrefslogtreecommitdiff
path: root/tuner/SampleDvbTuner/AndroidManifest.xml
blob: 740989ad459e4bfac47be9ae92cd79c4db13aa5a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2018 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.android.tv.tuner.sample.dvb" >

    <uses-sdk
        android:minSdkVersion="23"
        android:targetSdkVersion="26" />

    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.READ_CONTENT_RATING_SYSTEMS" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_TV_LISTINGS" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
    <uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA" />
    <uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA" />

    <!-- Permissions/feature for USB tuner -->
    <uses-permission android:name="android.permission.DVB_DEVICE" />

    <uses-feature
        android:name="android.hardware.usb.host"
        android:required="false" />

    <!-- Limit only for Android TV -->
    <uses-feature
        android:name="android.software.leanback"
        android:required="true" />
    <uses-feature
        android:name="android.software.live_tv"
        android:required="true" />
    <uses-feature
        android:name="android.hardware.touchscreen"
        android:required="false" />

    <application
        android:name="com.android.tv.tuner.sample.dvb.app.SampleDvbTuner"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/sample_dvb_tuner_app_name" >
        <activity
            android:name="com.google.android.gms.common.api.GoogleApiActivity"
            android:exported="false"
            android:theme="@android:style/Theme.Translucent.NoTitleBar" />

        <activity
            android:name="com.android.tv.tuner.sample.dvb.setup.SampleDvbTunerSetupActivity"
            android:configChanges="keyboard|keyboardHidden"
            android:exported="true"
            android:label="@string/sample_dvb_tuner_app_name"
            android:launchMode="singleInstance"
            android:theme="@style/Theme.Setup.GuidedStep" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>

        <service
            android:name="com.android.tv.tuner.sample.dvb.tvinput.SampleDvbTunerTvInputService"
            android:label="@string/sample_dvb_tuner_app_name"
            android:permission="android.permission.BIND_TV_INPUT"
            android:process="com.google.android.tv.tuner.sample.dvb.tvinput" >
            <intent-filter>
                <action android:name="android.media.tv.TvInputService" />
            </intent-filter>

            <meta-data
                android:name="android.media.tv.input"
                android:resource="@xml/sample_dvb_tvinputservice" />
        </service>
        <service
            android:name="com.android.tv.tuner.tvinput.TunerStorageCleanUpService"
            android:exported="false"
            android:permission="android.permission.BIND_JOB_SERVICE"
            android:process="com.android.tv.tuner" />
    </application>

</manifest>