-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
executable file
·186 lines (160 loc) · 6.05 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
# 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.
# Lang
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Include atv base
$(call inherit-product, device/google/atv/products/atv_base.mk)
# Get non-open-source specific aspects for pearlyn
$(call inherit-product-if-exists, vendor/razer/pearlyn/pearlyn-vendor.mk)
# Get non-open-source specific aspects for atv
$(call inherit-product-if-exists, vendor/google/atv/atv-common.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += device/razer/pearlyn/overlay
PRODUCT_AAPT_CONFIG := large xlarge
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_CHARACTERISTICS := nosdcard,tv
$(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk)
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
# Keylayouts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/keylayout/Nexus_Remote.kl:system/usr/keylayout/Nexus_Remote.kl \
$(LOCAL_PATH)/configs/keylayout/Vendor_2836_Product_0001.kl:system/usr/keylayout/Vendor_2836_Product_0001.kl \
$(LOCAL_PATH)/configs/keylayout/Vendor_045e_Product_02e0.kl:system/usr/keylayout/Vendor_045e_Product_02e0.kl \
$(LOCAL_PATH)/configs/keylayout/Vendor_045e_Product_02fd.kl:system/usr/keylayout/Vendor_045e_Product_02fd.kl
# Rootdir
PRODUCT_PACKAGES += \
fstab.qcom \
init.qcom.rc \
init.qcom.usb.rc \
init.recovery.qcom.rc \
init.recovery.recovery.rc \
init.trace.rc \
ueventd.qcom.rc
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media/audio_effects.conf:system/vendor/etc/audio_effects.conf \
$(LOCAL_PATH)/configs/media/audio_platform_info.xml:system/etc/audio_platform_info.xml \
$(LOCAL_PATH)/configs/media/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \
$(LOCAL_PATH)/configs/media/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/media/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/media/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/configs/media/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/configs/media/mixer_paths.xml:system/etc/mixer_paths.xml \
$(LOCAL_PATH)/configs/media/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \
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_tv.xml:system/etc/media_codecs_google_tv.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
# IRSC
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:system/etc/sec_config
# LineageCustomizer
PRODUCT_PACKAGES += \
LineageCustomizer
# Permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/permissions/pearlyn_features.xml:system/etc/permissions/pearlyn_features.xml \
$(LOCAL_PATH)/configs/permissions/nrdp.modelgroup.xml:system/etc/permissions/nrdp.modelgroup.xml
# Wifi Config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wifi/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf \
$(LOCAL_PATH)/configs/wifi/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
$(LOCAL_PATH)/configs/wifi/WCNSS_qcom_wlan_nv.bin:system/etc/wifi/WCNSS_qcom_wlan_nv.bin \
$(LOCAL_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini
# Hostapd Config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/hostapd/hostapd_default.conf:system/etc/hostapd/hostapd_default.conf \
$(LOCAL_PATH)/configs/hostapd/hostapd.accept:system/etc/hostapd/hostapd.accept \
$(LOCAL_PATH)/configs/hostapd/hostapd.deny:system/etc/hostapd/hostapd.deny
# Build.prop overrides
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-swap=false \
ro.product.first_api_level=22 \
ro.com.google.clientidbase=android-pearlyn
# Power HAL
PRODUCT_PACKAGES += \
power.apq8084
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
audiod \
audio_policy.apq8084 \
audio.primary.apq8084 \
audio.r_submix.default \
libaudioroute \
audio.usb.default \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing \
tinymix
# Display
PRODUCT_PACKAGES += \
libqdutils \
libc2dcolorconvert \
libmm-omxcore \
libstagefrighthw \
liboverlay \
libqservice \
libvirtual \
gralloc.apq8084 \
hwcomposer.apq8084 \
hdmi_cec.apq8084 \
lights.apq8084 \
memtrack.apq8084
# Keystore
PRODUCT_PACKAGES += \
keystore.apq8084
# DEPS: libs
PRODUCT_PACKAGES += \
libcurl \
libion \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVdpp \
libOmxVenc \
libQWiFiSoftApCfg \
librmnetctl \
libtinyxml2 \
libtinyxml \
libwifi-hal-qcom \
libcommon_time_client \
libjhead_jni \
libjhead \
libsqlite_jni \
libxml2
# DEPS: binaries
PRODUCT_PACKAGES += \
cplay \
hostapd \
rmnetcli \
setup_fs \
tinycap \
tinypcminfo \
tinyplay \
wpa_supplicant
# Without this filter, we get very close to the limit.
PRODUCT_DEX_PREOPT_DEFAULT_FLAGS += --compiler-filter=space
# Bootanimation
TARGET_SCREEN_WIDTH := 1920
TARGET_SCREEN_HEIGHT := 1080
TARGET_BOOTANIMATION_MULTITHREAD_DECODE := true
TARGET_BOOTANIMATION_PRELOAD := true
TARGET_BOOTANIMATION_TEXTURE_CACHE := true
# TWRP (optional)
ifeq ($(WITH_TWRP),true)
PRODUCT_COPY_FILES += $(LOCAL_PATH)/twrp/twrp.fstab:recovery/root/etc/twrp.fstab
endif