-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
153 lines (129 loc) · 5.61 KB
/
device.mk
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#
# Copyright (C) 2014 The CyanogenMod 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.
#
PRODUCT_CHARACTERISTICS := tv
TARGET_TEGRA_VERSION := t210
TARGET_TEGRA_TOUCH := raydium
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
device/nvidia/foster/overlay
$(call inherit-product, device/nvidia/shield-common/shield.mk)
# Include drawables for various densities.
PRODUCT_AAPT_CONFIG := normal large xlarge tvdpi hdpi xhdpi xxhdpi
PRODUCT_AAPT_PREF_CONFIG := xhdpi
TARGET_SCREEN_HEIGHT := 1920
TARGET_SCREEN_WIDTH := 1080
# Boot Animation
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/bootanimation.zip:system/media/bootanimation.zip
# Iptables script for LineageSMB
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/iptables/iptables-service.sh:system/bin/iptables-service.sh \
$(LOCAL_PATH)/iptables/80iptables:system/etc/init.d/80iptables
## Install GMS if available
$(call inherit-product-if-exists, 3rdparty/google/gms-apps/tv/gms.mk)
PRODUCT_PROPERTY_OVERRIDES += \
ro.com.google.clientidbase=android-nvidia
$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-dalvik-heap.mk)
$(call inherit-product, frameworks/native/build/phone-xxhdpi-3072-hwui-memory.mk)
$(call inherit-product, vendor/nvidia/shield/foster.mk)
PRODUCT_SYSTEM_PROPERTY_BLACKLIST := ro.product.name
# Ramdisk
PRODUCT_PACKAGES += \
fstab.foster \
fstab.darcy \
fstab.foster_e \
fstab.foster_e_hdd \
fstab.loki_e_wifi \
init.darcy.rc \
init.foster_e.rc \
init.foster_e_hdd.rc \
init.loki_e_wifi.rc \
init.foster_e_common.rc \
init.loki_e_common.rc \
init.loki_foster_e_common.rc \
init.jetson_cv.rc \
init.recovery.darcy.rc \
init.recovery.foster_e.rc \
init.recovery.foster_e_hdd.rc \
init.recovery.jetson_cv.rc \
init.recovery.loki_e_wifi.rc \
power.darcy.rc \
power.foster_e.rc \
power.foster_e_hdd.rc \
power.jetson_cv.rc \
power.loki_e_wifi.rc \
ueventd.darcy.rc \
ueventd.foster_e.rc \
ueventd.foster_e_hdd.rc \
ueventd.jetson_cv.rc \
ueventd.loki_e_wifi.rc
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.hdmi.cec.xml:system/etc/permissions/android.hardware.hdmi.cec.xml \
frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.software.device_admin.xml:system/etc/permissions/android.software.device_admin.xml \
frameworks/native/data/etc/android.software.managed_users.xml:system/etc/permissions/android.software.managed_users.xml
# NVIDIA
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/permissions/com.nvidia.feature.xml:system/etc/permissions/com.nvidia.feature.xml \
$(LOCAL_PATH)/permissions/com.nvidia.feature.opengl4.xml:system/etc/permissions/com.nvidia.feature.opengl4.xml \
$(LOCAL_PATH)/permissions/com.nvidia.nvsi.xml:system/etc/permissions/com.nvidia.nvsi.xml
# Define Netflix nrdp properties
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/permissions/nrdp.modelgroup.xml:system/etc/permissions/nrdp.modelgroup.xml
# Media config
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/media/media_profiles.xml:system/etc/media_profiles.xml
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/media/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/media/nvaudio_conf.xml:system/etc/nvaudio_conf.xml
# Bluetooth
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/comms/bt_vendor.conf:system/etc/bluetooth/bt_vendor.conf
# Camera
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/camera/nvcamera.conf:system/etc/nvcamera.conf
# GPS
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/comms/gpsconfig.xml:system/etc/gps/gpsconfig.xml \
$(LOCAL_PATH)/comms/gps.conf:system/etc/gps.conf
# Light
PRODUCT_PACKAGES += \
lights.tegra
# Leanback Customizer
PRODUCT_PACKAGES += \
LeanbackCustomize
# USB Tuner support
PRODUCT_PACKAGES += \
usbtuner-tvinput
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Variant blobs script
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/releasetools/variant_blobs.sh:install/bin/variant_blobs.sh