-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
318 lines (261 loc) · 11.2 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
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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
#
# Copyright (C) 2018-2019 The LineageOS Project
# Copyright (C) 2020-2022 Paranoid Android
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from the proprietary version
$(call inherit-product, vendor/xiaomi/ginkgo/ginkgo-vendor.mk)
# Audio
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
$(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
$(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
PRODUCT_PRODUCT_PROPERTIES += \
vendor.audio.feature.compr_voip.enable=true \
vendor.audio.feature.spkr_prot.enable=false \
vendor.audio.offload.buffer.size.kb=256
PRODUCT_VENDOR_PROPERTIES += \
ro.config.vc_call_vol_default=5 \
ro.config.vc_call_vol_steps=6
# Bluetooth
PRODUCT_PACKAGES += \
libbluetooth_audio_session
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.qcom.bluetooth.aac_vbr_ctl.enabled=false \
persist.vendor.qcom.bluetooth.enable.splita2dp=true \
persist.vendor.qcom.bluetooth.scram.enabled=true \
persist.vendor.qcom.bluetooth.soc=cherokee \
persist.vendor.qcom.bluetooth.twsp_state.enabled=false \
persist.vendor.bluetooth.modem_nv_support=true \
ro.vendor.bluetooth.wipower=false \
vendor.qcom.bluetooth.soc=cherokee
PRODUCT_SYSTEM_PROPERTIES += \
persist.bluetooth.bqr.event_mask=14 \
persist.bluetooth.bqr.min_interval_ms=500
PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.device.class_of_device=90,2,12
# Camera
# $(call inherit-product, vendor/miuicamera/config.mk)
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.camera.preview.ubwc=0 \
persist.vendor.camera.isp.clock.optmz=0 \
persist.vendor.camera.isp.turbo=1 \
persist.vendor.camera.imglib.usefdlite=1 \
persist.vendor.camera.expose.aux=1 \
persist.vendor.camera.HAL3.enabled=1 \
persist.vendor.camera.mpo.disabled=1 \
persist.vendor.camera.manufacturer=Xiaomi \
persist.vendor.camera.stats.test=0 \
persist.vendor.camera.awb.sync=2 \
persist.vendor.camera.af.sync=2 \
persist.vendor.camera.eis.enable=1 \
persist.vendor.camera.is_type=4 \
persist.vendor.camera.is_type_preview=4 \
persist.vendor.camera.gyro.disable=0 \
persist.vendor.camera.llnoise=1 \
persist.vendor.camera.tnr.preview=1 \
persist.vendor.camera.swtnr.preview=1 \
persist.vendor.camera.tnr.video=1 \
persist.vendor.camera.aec.sync=1 \
persist.vendor.camera.instant.aec=1 \
persist.vendor.camera.ae.instant.bound=20 \
persist.vendor.camera.depurple=1 \
persist.vendor.denoise.process.plates=2 \
persist.vendor.dualcam.lpm.enable=0 \
persist.vendor.tnr.process.plates=2 \
vendor.camera.cpp.set.clock=576 \
vendor.camera.not.cts.apk=1 \
vendor.camera.not.ctsverify.apk=1 \
vendor.camera.vidhance.eis.enabled=1 \
vendor.camera.vidhanceEis.force=1 \
vendor.vidhance.video.enabled=1
PRODUCT_SYSTEM_PROPERTIES += \
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera \
persist.vendor.camera.privapp.list=org.codeaurora.snapcam,com.android.camera
# Display
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
PRODUCT_PRODUCT_PROPERTIES += \
persist.sys.sf.color_saturation=1.1
PRODUCT_VENDOR_PROPERTIES += \
debug.sf.disable_backpressure=1 \
debug.sf.enable_hwc_vds=1 \
debug.sf.latch_unsignaled=1 \
ro.config.avoid_gfx_accel=true \
ro.vendor.display.sensortype=2 \
ro.vendor.display.svi=1 \
vendor.display.svi.config=1 \
vendor.display.svi.config_path=/vendor/etc/SVIConfig.xml
PRODUCT_SYSTEM_PROPERTIES += \
persist.lcd.cabc_mode=1 \
persist.lcd.hbm_mode=0
PRODUCT_ODM_PROPERTIES += \
ro.surface_flinger.use_color_management=1
# Doze
PRODUCT_PACKAGES += \
ParanoidDoze
PRODUCT_SYSTEM_PROPERTIES += \
ro.sensor.proximity=true \
ro.sensor.pickup=xiaomi.sensor.pickup
# DPM
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.dpmhalservice.enable=1
# DRM
PRODUCT_PACKAGES += \
PRODUCT_VENDOR_PROPERTIES += \
drm.service.enabled=true
# Fingerprint
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
# FM
BOARD_HAVE_QCOM_FM := true
# FRP
PRODUCT_VENDOR_PROPERTIES += \
ro.frp.pst=/dev/block/bootdevice/by-name/frp
# FUSE passthrough
PRODUCT_PRODUCT_PROPERTIES += \
persist.sys.fuse.passthrough.enable=true
# Health
PRODUCT_PACKAGES += \
# Init
PRODUCT_PACKAGES += \
fstab.qcom \
fstab.qcom_ramdisk \
init.ginkgo.rc \
init.target.rc \
init.qti.dcvs.sh
# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/idc/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc \
$(LOCAL_PATH)/configs/idc/uinput-goodix.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-goodix.idc \
$(LOCAL_PATH)/configs/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
$(LOCAL_PATH)/configs/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
# Incremental FS
PRODUCT_SYSTEM_PROPERTIES += \
ro.incremental.enable=1
# IR
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.consumerir.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.consumerir.xml
# Keyhandler
PRODUCT_PACKAGES += \
KeyHandler
# Keymaster
PRODUCT_PACKAGES += \
PRODUCT_VENDOR_PROPERTIES += \
ro.crypto.allow_encrypt_override=true \
ro.crypto.volume.filenames_mode=aes-256-cts \
ro.hardware.keystore_desede=true
# Netflix
PRODUCT_SYSTEM_PROPERTIES += \
ro.netflix.bsp_rev=Q6125-17995-1
# Neural networks
PRODUCT_PACKAGES += \
# NFC
TARGET_NFC_SKU := willow
PRODUCT_SYSTEM_PROPERTIES += \
ro.se.type=HCE,UICC
# Overlays
PRODUCT_PACKAGES += \
AOSPAGinkgoFrameworks \
AOSPAGinkgoSettings \
GinkgoFrameworks \
GinkgoSettingsLib \
GinkgoSystemUI \
GinkgoMiuiCamera \
GinkgoNoCutoutOverlay \
NotchBarKiller
# Perf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/perf/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf \
$(LOCAL_PATH)/configs/perf/perfboostsconfig.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfboostsconfig.xml \
$(LOCAL_PATH)/configs/perf/perfconfigstore.xml:$(TARGET_COPY_OUT_VENDOR)/etc/perf/perfconfigstore.xml
# Platform
TARGET_BOARD_PLATFORM := trinket
TRINKET := trinket
# QTI Components
TARGET_COMMON_QTI_COMPONENTS := all
# RIL
PRODUCT_VENDOR_PROPERTIES += \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1 \
persist.vendor.radio.add_power_save=1 \
persist.vendor.radio.atfwd.start=true \
persist.vendor.radio.data_con_rprt=1 \
persist.vendor.radio.force_on_dc=true \
persist.vendor.radio.manual_nw_rej_ct=1 \
persist.vendor.radio.mt_sms_ack=30 \
persist.vendor.radio.process_sups_ind=1 \
persist.vendor.radio.report_codec=1 \
persist.vendor.ssr.restart_level=ALL_ENABLE \
ro.telephony.default_network=22,22
# SoC
PRODUCT_VENDOR_PROPERTIES += \
ro.soc.model=SM6125
# Sensors
PRODUCT_PACKAGES += \
libsensorndkbridge \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.sensors.enable.bypass_worker=true \
persist.vendor.sensors.enable.mag_filter=true \
persist.vendor.sensors.enable.rt_task=false \
persist.vendor.sensors.support_direct_channel=false
# Shipping API
PRODUCT_SHIPPING_API_LEVEL := 28
# Soong namespace
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Time
PRODUCT_SYSTEM_PROPERTIES += \
persist.vendor.delta_time.enable=true
# Thermal
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/thermal/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf \
$(LOCAL_PATH)/configs/thermal/thermal-engine-camera.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-camera.conf \
$(LOCAL_PATH)/configs/thermal/thermal-engine-map.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-map.conf \
$(LOCAL_PATH)/configs/thermal/thermal-engine-normal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine-normal.conf
# VNDK
PRODUCT_COPY_FILES += \
prebuilts/vndk/v32/arm64/arch-arm64-armv8-a/shared/vndk-sp/libhidlbase.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libhidlbase-v32.so
# Wifi
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.data.iwlan.enable=true \
ro.telephony.iwlan_operation_mode=legacy