-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsdm660.mk
439 lines (361 loc) · 14.7 KB
/
sdm660.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
#
# Copyright (C) 2022 Paranoid Android
#
# SPDX-License-Identifier: Apache-2.0
#
# AID/fs configs
PRODUCT_PACKAGES += \
fs_config_files
# ANT+
PRODUCT_PACKAGES += \
com.dsi.ant@1.0.vendor
# Audio
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/audio/,$(TARGET_COPY_OUT_VENDOR)/etc)
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.adm.buffering.ms=6 \
vendor.audio_hal.period_multiplier=2
# Board Platform
TARGET_BOARD_PLATFORM := sdm660
# Bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0.vendor \
android.hardware.bluetooth@1.1.vendor \
android.hardware.bluetooth.a2dp@1.0-impl \
android.hardware.bluetooth.audio@2.1-impl \
audio.bluetooth.default \
com.qualcomm.qti.bluetooth_audio@1.0.vendor \
libbluetooth_audio_session \
vendor.qti.hardware.bluetooth_audio@2.1.vendor \
vendor.qti.hardware.btconfigstore@1.0.vendor \
vendor.qti.hardware.btconfigstore@2.0.vendor \
vendor.qti.hardware.fm@1.0.vendor
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.service.bdroid.sibs=false \
persist.vendor.bt.aac_frm_ctl.enabled=true \
persist.vendor.qcom.bluetooth.soc=cherokee \
vendor.qcom.bluetooth.soc=cherokee
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
bt.max.hfpclient.connections=1 \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac \
persist.bluetooth.a2dp_offload.disabled=false \
persist.vendor.bt.a2dp.aac_whitelist=false \
persist.vendor.qcom.bluetooth.enable.splita2dp=true \
persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxhd-aac-ldac \
ro.bluetooth.a2dp_offload.supported=true \
ro.bluetooth.library_name=libbluetooth_qti.so \
vendor.bluetooth.soc=cherokee
# Camera
PRODUCT_PACKAGES += \
camera.sdm660
PRODUCT_PACKAGES += \
android.hardware.camera.common@1.0 \
android.hardware.camera.device@3.4 \
android.hardware.camera.provider@2.5 \
android.hardware.camera.provider@2.4-impl \
android.hardware.camera.provider@2.4-service \
vendor.qti.hardware.camera.device@1.0 \
vendor.qti.hardware.camera.device@1.0.vendor \
libxml2
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.camera.eis.enable=1 \
persist.vendor.camera.expose.aux=1 \
persist.vendor.camera.is_type=5 \
persist.vendor.camera.mpo.disabled=1 \
persist.vendor.camera.preview.ubwc=0 \
persist.vendor.camera.HAL3.enabled=1
# Capability Configstore
PRODUCT_PACKAGES += \
vendor.qti.hardware.capabilityconfigstore@1.0.vendor
# Charger
PRODUCT_PRODUCT_PROPERTIES += \
ro.charger.enable_suspend=true
# Codec2 modules
PRODUCT_PACKAGES += \
com.android.media.swcodec \
libsfplugin_ccodec \
android.hardware.media.c2@1.0.vendor \
android.hardware.media.c2@1.1.vendor
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.omx_default_rank.sw-audio=1 \
debug.stagefright.omx_default_rank=0
# Config Store
PRODUCT_PACKAGES += \
disable_configstore
# Data Modules
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.data.df.dev_name=rmnet_usb0
persist.vendor.data.mode=concurrent \
ro.vendor.use_data_netmgrd=true
# Dalvik vm configuration
$(call inherit-product, frameworks/native/build/phone-xhdpi-4096-dalvik-heap.mk)
# Default is nosdcard, S/W button enabled in resource
PRODUCT_CHARACTERISTICS := nosdcard
# Disable APEX compression
PRODUCT_COMPRESSED_APEX := false
# Display
PRODUCT_PACKAGES += \
gralloc.sdm660 \
hwcomposer.sdm660 \
memtrack.sdm660 \
libvulkan
PRODUCT_PACKAGES += \
android.hardware.memtrack@1.0-impl \
android.hardware.memtrack@1.0-service \
android.frameworks.displayservice@1.0 \
android.frameworks.displayservice@1.0.vendor \
android.hardware.graphics.composer@2.1-service \
android.hardware.graphics.mapper@3.0-impl-qti-display \
android.hardware.graphics.mapper@4.0-impl-qti-display \
vendor.display.config@2.0 \
vendor.display.config@1.0.vendor \
vendor.display.config@2.0.vendor \
vendor.qti.hardware.display.allocator-service
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.disable_backpressure=1 \
debug.sf.enable_hwc_vds=1 \
debug.sf.hw=1 \
debug.sf.recomputecrop=0 \
persist.hwc.mdpcomp.enable=true \
vendor.display.disable_rotator_downscale=1
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
debug.sf.latch_unsignaled=0 \
persist.demo.hdmirotationlock=false \
persist.hwc.enable_vds=1 \
sdm.debug.disable_skip_validate=1 \
vendor.display.enable_default_color_mode=1 \
vendor.gralloc.enable_fb_ubwc=1 \
vendor.display.disable_skip_validate=1
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.4.vendor \
android.hardware.drm@1.4-service.clearkey
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true
# Fingerprint
PRODUCT_PACKAGES += \
android.hardware.biometrics.fingerprint@2.1 \
android.hardware.biometrics.fingerprint@2.1.vendor
# FRP
PRODUCT_PROPERTY_OVERRIDES += \
ro.frp.pst=/dev/block/bootdevice/by-name/frp
# GMS
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.com.google.clientidbase.ms=android-asus-tpin \
ro.com.google.rlzbrandcode=ASUP \
ro.com.google.rlz_ap_whitelist=y0,y5,y6,y7,y9
# GPS
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.vendor.overlay.izat.optin=rro
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl-qti \
android.hardware.health@2.1-service
# HIDL
PRODUCT_PACKAGES += \
libhwbinder \
libhidltransport \
libhwbinder.vendor \
libhidltransport.vendor
# HW crypto
PRODUCT_PACKAGES += \
vendor.qti.hardware.cryptfshw@1.0-service-qti.qsee
# Inherit several Android Go Configurations(Beneficial for everyone, even on non-Go devices)
PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
# Init
PRODUCT_PACKAGES += \
init.btmac.sh \
init.qcom.sensors.sh \
init.qti.dcvs.sh
PRODUCT_PACKAGES += \
fstab.qcom \
init.asus.biometrics.rc \
init.qcom.asus.rc \
init.target.rc
# Input
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/keylayout/,$(TARGET_COPY_OUT_VENDOR)/usr/keylayout)
# IPC router config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
# Kernel
TARGET_KERNEL_VERSION := 4.19
# Keymaster
PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0.vendor \
android.hardware.gatekeeper@1.0.vendor
# Media
PRODUCT_PACKAGES += \
android.hardware.media.omx@1.0-impl \
mediametrics \
libmediametrics \
libregistermsext \
libstagefright_enc_common \
libavmediaserviceextensions
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/media/,$(TARGET_COPY_OUT_VENDOR)/etc)
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
vidc.enc.target_support_bframe=1 \
vendor.vidc.enc.disable_bframes=1 \
vendor.vidc.dec.enable.downscalar=1 \
vendor.vidc.enc.disable.pq=true
# NFC
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/nfc/,$(TARGET_COPY_OUT_VENDOR)/etc)
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.nfc.port=I2C
TARGET_NFC_SKU := NFC
# Net
PRODUCT_PACKAGES += \
android.system.net.netd@1.1.vendor
# Netflix
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.netflix.bsp_rev=Q660-13149-1
# Neuralnetworks
PRODUCT_PACKAGES += \
android.hardware.neuralnetworks@1.3.vendor
# NTP Server
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.backup.ntpServer=0.pool.ntp.org
# OMX
PRODUCT_PACKAGES += \
libOmxCore \
libOmxVdec \
libOmxVenc \
libstagefrighthw \
libmm-omxcore \
libstagefrighthw \
libc2dcolorconvert
# Overlay
PRODUCT_PACKAGES += \
AsusSDM660Bluetooth \
AsusSDM660Frameworks \
AsusSDM660Settings
# Paranoid Doze
PRODUCT_PACKAGES += \
ParanoidDoze
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
ro.sensor.proximity=true \
ro.sensor.pickup=asus.sensor.pickup
# Public Libraries
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
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 \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
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 \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vr.high_performance.xml \
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.passpoint.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
# QNS
PRODUCT_PACKAGES += \
libstdc++.vendor
# QTI Common Components
TARGET_COMMON_QTI_COMPONENTS += all
# Radio
PRODUCT_PACKAGES += \
android.hardware.radio@1.6.vendor \
android.hardware.secure_element@1.1 \
android.hardware.radio.config@1.3.vendor \
android.hardware.secure_element@1.2.vendor \
android.hardware.radio.deprecated@1.0.vendor \
librmnetctl \
libprotobuf-cpp-full
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.radio.VT_CAM_INTERFACE=2 \
persist.sys.fflag.override.settings_provider_model=false \
ro.telephony.default_network=20,20
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.radio.atfwd.start=true \
persist.vendor.radio.data_con_rprt=1 \
persist.vendor.radio.data_ltd_sys_ind=1 \
persist.vendor.radio.mt_sms_ack=30 \
vendor.rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so \
ro.telephony.iwlan_operation_mode=legacy \
ro.com.android.dataroaming=false
# Radio (IMS)
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.dbg.ims_volte_enable=1
# Recovery
PRODUCT_PACKAGES += \
librecovery_updater_asus
# Sensors
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/sensors/,$(TARGET_COPY_OUT_VENDOR)/etc/sensors)
PRODUCT_PACKAGES += \
android.hardware.sensors@1.0-impl \
android.hardware.sensors@1.0-service \
android.frameworks.sensorservice@1.0.vendor
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.sensors.cmc=false \
ro.vendor.sensors.facing=false \
ro.vendor.sdk.sensors.gestures=false
# Service Tracker
PRODUCT_PACKAGES += \
vendor.qti.hardware.servicetracker@1.2-impl \
vendor.qti.hardware.servicetracker@1.2-service \
vendor.qti.hardware.servicetracker@1.2.vendor
# SoC Information
PRODUCT_PROPERTY_OVERRIDES += \
ro.soc.model=SDM660 \
ro.soc.manufacturer=QTI
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# SurfaceFlinger
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.use_phase_offsets_as_durations=1 \
debug.sf.late.sf.duration=10500000 \
debug.sf.late.app.duration=16600000 \
debug.sf.early.sf.duration=16600000 \
debug.sf.early.app.duration=16600000 \
debug.sf.earlyGl.sf.duration=16600000 \
debug.sf.earlyGl.app.duration=16600000 \
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \
ro.surface_flinger.max_virtual_display_dimension=4096 \
ro.surface_flinger.set_display_power_timer_ms=10000 \
ro.surface_flinger.set_touch_timer_ms=5000 \
ro.surface_flinger.set_idle_timer_ms=9000
# Time
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.timed.enable=true
# UBWC
PRODUCT_PROPERTY_OVERRIDES += \
vendor.video.disable.ubwc=1
# USB
PRODUCT_PACKAGES += \
android.hardware.usb@1.0-service.basic
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.usb.config=diag,serial_cdev,rmnet,adb
# FIXME: master: compat for libprotobuf
# See https://android-review.googlesource.com/c/platform/prebuilts/vndk/v28/+/1109518
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-vendorcompat \
libprotobuf-cpp-lite-vendorcompat
# WLAN
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/wlan/,$(TARGET_COPY_OUT_VENDOR)/etc/wifi)
# XML
PRODUCT_SYSTEM_DEFAULT_PROPERTIES += \
persist.sys.binary_xml=false
# Inherit the proprietary files
$(call inherit-product, vendor/asus/sdm660-common/sdm660-common-vendor.mk)