aboutsummaryrefslogtreecommitdiff
path: root/tuner/SampleDvbTuner/src/com/android/tv/tuner/sample/dvb/README.md
blob: d2c63114b344e948da1e1157f021da8468c4aa9c (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
# SampleDvbTuner

SampleDvbTuner is the reference DVB Tuner. Partners should copy these files to
their own directory and modify as needed.

## Prerequisites

*   A DVB Tuner
    *   A Nexus player with a USB Tuner attached will work.
*   system privileged app
    *   The DVB_DEVICE permission requires the app to be a privileged system app

## First install

#### Root

```bash
adb root
adb remount
```

### modify privapp-permissions-atv.xml

Edit system/etc/permissions/privapp-permissions-atv.xml

```xml
<privapp-permissions package="com.android.tv.tuner.sample.dvb">
    <permission name="android.permission.DVB_DEVICE"/>
</privapp-permissions>
```

### Push to system/priv-app

```bash
adb shell mkdir /system/priv-app/SampleDvbTuner
adb push <path to apk>  /system/priv-app/SampleDvbTuner/SampleDvbTuner.apk
```