forked from Hashcode/android_device_amazon_hdx-common
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hdx-common.mk
executable file
·277 lines (238 loc) · 8.59 KB
/
hdx-common.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
COMMON_FOLDER := device/amazon/hdx-common
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
# Get non-open-source specific aspects
$(call inherit-product-if-exists, vendor/amazon/hdx-common/hdx-common-vendor.mk)
# AOSP overlay
DEVICE_PACKAGE_OVERLAYS += $(COMMON_FOLDER)/overlay-common
# Device uses high-density artwork where available
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_AAPT_PREBUILT_DPI := xxhdpi xhdpi hdpi
# Permissions
PRODUCT_COPY_FILES += \
$(COMMON_FOLDER)/amazon_tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
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.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.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.light.xml:system/etc/permissions/android.hardware.sensor.light.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.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
# Ramdisk
PRODUCT_PACKAGES += \
check_prov.sh \
fstab.qcom \
init.qcom.rc \
init.qcom.usb.rc \
init.target.rc \
init.qcom.class_core.sh \
init.qcom.sensor.sh \
init.qcom.sh \
init.qcom.ssr.sh \
init.qcom.usb.sh \
ueventd.qcom.rc
# Audio/Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/etc/audio_policy.conf:system/etc/audio_policy.conf \
$(LOCAL_PATH)/configs/etc/media_profiles.xml:system/etc/media_profiles.xml \
$(LOCAL_PATH)/configs/etc/media_codecs.xml:system/etc/media_codecs.xml \
$(LOCAL_PATH)/configs/etc/media_codecs_performance.xml:system/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/configs/etc/mixer_paths.xml:system/etc/mixer_paths.xml \
$(LOCAL_PATH)/configs/etc/mixer_paths.xml:system/etc/mixer_paths_auxpcm.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_video.xml:system/etc/media_codecs_google_video.xml
PRODUCT_PACKAGES += \
audio.a2dp.default \
audio.primary.msm8974 \
audio.r_submix.default \
audio.usb.default \
libaudio-resampler \
libqcompostprocbundle \
libqcomvisualizer \
libqcomvoiceprocessing
# Device config files
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/usr/idc/amazon_touch.idc:system/usr/idc/amazon_touch.idc \
$(LOCAL_PATH)/configs/usr/keylayout/atmel_mxt_ts.kl:system/usr/keylayout/atmel_mxt_ts.kl \
$(LOCAL_PATH)/configs/usr/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
$(LOCAL_PATH)/configs/usr/keylayout/msm8974-taiko-tablet-snd-card_JACK.kl:system/usr/keylayout/msm8974-taiko-tablet-snd-card_JACK.kl \
$(LOCAL_PATH)/configs/usr/keylayout/synaptics_rmi4_i2c.kl:system/usr/keylayout/synaptics_rmi4_i2c.kl \
$(LOCAL_PATH)/configs/usr/keylayout/Vendor_1949_Product_0402.kl:system/usr/keylayout/Vendor_1949_Product_0402.kl
# Charger
PRODUCT_PACKAGES += \
charger \
charger_res_images
# Filesystem management tools
PRODUCT_PACKAGES += \
make_ext4fs \
e2fsck \
setup_fs
PRODUCT_PACKAGES += \
libxml2 \
libnetcmdiface
# Graphics
PRODUCT_PACKAGES += \
copybit.msm8974 \
gralloc.msm8974 \
hwcomposer.msm8974 \
memtrack.msm8974 \
liboverlay \
libqdutils \
libqservice \
libqdMetaData
# GPS
PRODUCT_PACKAGES += \
gps.msm8974
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/etc/flp.conf:system/etc/flp.conf \
$(LOCAL_PATH)/configs/etc/gps.conf:system/etc/gps.conf \
$(LOCAL_PATH)/configs/etc/izat.conf:system/etc/izat.conf \
$(LOCAL_PATH)/configs/etc/lowi.conf:system/etc/lowi.conf \
# Lights
PRODUCT_PACKAGES += \
lights.msm8974
# Media
PRODUCT_PACKAGES += \
libc2dcolorconvert \
libdivxdrmdecrypt \
libdashplayer \
libstagefrighthw \
libOmxAacEnc \
libOmxAmrEnc \
libOmxCore \
libOmxEvrcEnc \
libOmxQcelp13Enc \
libOmxVdec \
libOmxVdecHevc \
libOmxVenc \
qcmediaplayer
# Power
PRODUCT_PACKAGES += \
power.msm8974
# QRNGD
PRODUCT_PACKAGES += \
qrngd \
qrngp
# Keystore
#PRODUCT_PACKAGES += \
# keystore.msm8974
# USB
PRODUCT_PACKAGES += \
com.android.future.usb.accessory
PRODUCT_PACKAGES += \
wpa_supplicant \
wpa_supplicant_overlay.conf \
p2p_supplicant_overlay.conf \
hostapd_default.conf \
hostapd.accept \
hostapd.deny
# QCOM Crypto
PRODUCT_PACKAGES += \
libcryptfs_hw
# BT
PRODUCT_PACKAGES += \
libbt-vendor
# DTB Tool
PRODUCT_PACKAGES += \
dtbToolCM
# Wifi module
PRODUCT_PACKAGES += \
ath6kl_usb.ko
PRODUCT_BOOT_JARS += \
qcmediaplayer
# ABI fixes for old binaries
PRODUCT_PACKAGES += \
libshim_libbinder \
libshim_liblog \
libshim_libwvm \
libshim_boringssl \
libshim_libgui
# QC Perf
ADDITIONAL_BUILD_PROPERTIES += \
ro.vendor.extension_library=/vendor/lib/libqc-opt.so
# Common build.props
ADDITIONAL_BUILD_PROPERTIES += \
ro.chipname=msm8974 \
ro.sf.lcd_density=320 \
ro.opengles.version=196608 \
persist.timed.enable=true \
keyguard.no_require_sim=true \
lockscreen.rot_override=true
# Radio props
ADDITIONAL_BUILD_PROPERTIES += \
rild.libpath=/system/lib/libril-lab126qmi.so \
ril.subscription.types=NV,RUIM \
persist.rild.nitz_plmn="" \
persist.rild.nitz_long_ons_0="" \
persist.rild.nitz_long_ons_1="" \
persist.rild.nitz_long_ons_2="" \
persist.rild.nitz_long_ons_3="" \
persist.rild.nitz_short_ons_0="" \
persist.rild.nitz_short_ons_1="" \
persist.rild.nitz_short_ons_2="" \
persist.rild.nitz_short_ons_3="" \
DEVICE_PROVISIONED=1 \
ro.telephony.default_network=9
# enable graphics debugging
ADDITIONAL_BUILD_PROPERTIES += \
debug.sf.hw=1 \
debug.egl.hw=1 \
persist.hwc.mdpcomp.enable=true \
debug.mdpcomp.logs=0
# new props test
ADDITIONAL_BUILD_PROPERTIES += \
debug.composition.type=c2d \
sys.hwc.gpu_perf_mode=1 \
dev.pm.dyn_samplingrate=1 \
persist.demo.hdmirotationlock=false \
ro.hdmi.enable=true \
ro.use_data_netmgrd=true \
persist.data.netmgrd.qos.enable=true \
ro.data.large_tcp_window_size=true \
persist.timed.enable=true \
ro.qualcomm.cabl=1 \
telephony.lteOnCdmaDevice=0 \
persist.fuse_sdcard=true \
ro.qc.sdk.sensors.gestures=true \
ro.qc.sdk.gestures.camera=false \
ro.qc.sdk.camera.facialproc=false \
ro.qcom.ad.calib.data=/system/etc/ad_calib.cfg \
persist.debug.wfd.enable=1 \
persist.sys.wfd.virtual=0 \
ro.usb.vid=1949 \
persist.sys.usb.config=mtp,adb \
com.msm_enhancement=true \
ro.wifi.standby.dtim=3 \
ro.recovery.wl.maxstore=524288 \
ro.ril.usb.port.serial=ttyUSB \
ro.ril.usb.port.qmi=qmi_usb \
ro.ril.usb.port.rmnet=rmnet_usb \
telephony.sms.receive=true \
keyguard.ori.timeout=350 \
persist.lineage.startril=0
# audio/media props
ADDITIONAL_BUILD_PROPERTIES += \
media.aac_51_output_enabled=true \
vidc.debug.level=1 \
persist.audio.fluence.voicecall=true \
audio.offload.buffer.size.kb=32 \
av.offload.enable=true \
media.stagefright.legacyencoder=true \
media.stagefright.less-secure=true
PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
# We have enough storage space to hold precise GC data
PRODUCT_TAGS += dalvik.gc.type-precise
# call dalvik heap config
$(call inherit-product, frameworks/native/build/phone-xxhdpi-2048-dalvik-heap.mk)
# call hwui memory config
$(call inherit-product-if-exists, frameworks/native/build/phone-xxhdpi-2048-hwui-memory.mk)
# set private bt-vendor source
$(call project-set-path-variant,bt-vendor,amazon-hdx,device/amazon/hdx-common/libbt-vendor)