-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvendor_prop.mk
364 lines (322 loc) · 11.7 KB
/
vendor_prop.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
#
# Common vendor properties for z2_plus
#
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
af.fast_track_multiplier=1 \
vendor.audio_hal.period_size=192 \
vendor.audio.dolby.ds2.enabled=false \
vendor.audio.dolby.ds2.hardbypass=false \
audio.deep_buffer.media=true \
vendor.audio.offload.buffer.size.kb=64 \
vendor.audio.offload.gapless.enabled=true \
vendor.audio.offload.multiaac.enable=true \
vendor.audio.offload.multiple.enabled=false \
vendor.audio.offload.passthrough=false \
vendor.audio.offload.track.enable=true \
audio.offload.video=true \
vendor.audio.parser.ip.buffer.size=262144 \
vendor.audio.safx.pbe.enabled=true \
persist.vendor.audio.fluence.voicecall=true \
persist.vendor.audio.fluence.voicerec=false \
persist.vendor.audio.fluence.speaker=true \
ro.vendor.audio.sdk.fluencetype=fluence \
ro.vendor.audio.sdk.ssr=false \
vendor.audio.feature.a2dp_offload.enable=false \
vendor.audio.spkr_prot.tx.sampling_rate=48000 \
vendor.audio.tunnel.encode=false \
vendor.fastrpc.disable.adsprpcd_sensorspd.daemon=1 \
vendor.voice.path.for.pcm.voip=true \
persist.vendor.audio.speaker.prot.enable=true \
persist.vendor.audio.hw.binder.size_kbyte=1024 \
ro.af.client_heap_size_kbyte=7168 \
ro.config.vc_call_vol_steps=6 \
# Bluetooth
PRODUCT_PROPERTY_OVERRIDES += \
bluetooth.device.class_of_device=90,2,12 \
bluetooth.hfp.client=1 \
bt.max.hfpclient.connections=1 \
vendor.qcom.bluetooth.soc=rome \
ro.vendor.bluetooth.wipower=false \
ro.vendor.bluetooth.emb_wp_mode=false \
ro.vendor.bt.bdaddr_path=/mnt/vendor/persist/bluetooth/bt_mac
# Bluetooth profiles
PRODUCT_PROPERTY_OVERRIDES += \
bluetooth.profile.asha.central.enabled?=true \
bluetooth.le.disable_apcf_extended_features=1 \
bluetooth.profile.a2dp.source.enabled?=true \
bluetooth.profile.avrcp.target.enabled?=true \
bluetooth.profile.bap.broadcast.assist.enabled?=true \
bluetooth.profile.bap.unicast.client.enabled?=true \
bluetooth.profile.bas.client.enabled?=true \
bluetooth.profile.csip.set_coordinator.enabled?=true \
bluetooth.profile.gatt.enabled?=true \
bluetooth.profile.hap.client.enabled?=true \
bluetooth.profile.hfp.ag.enabled?=true \
bluetooth.profile.hid.device.enabled?=true \
bluetooth.profile.hid.host.enabled?=true \
bluetooth.profile.map.server.enabled?=true \
bluetooth.profile.mcp.server.enabled?=true \
bluetooth.profile.opp.enabled?=true \
bluetooth.profile.pan.nap.enabled?=true \
bluetooth.profile.pan.panu.enabled?=true \
bluetooth.profile.pbap.server.enabled?=true \
bluetooth.profile.ccp.server.enabled?=true \
bluetooth.profile.vcp.controller.enabled?=true
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
camera.disable_zsl_mode=1 \
persist.camera.mct.debug=0 \
persist.camera.iface.logs=0 \
persist.camera.imglib.logs=0 \
persist.camera.isp.debug=0 \
persist.camera.sensor.debug=0 \
vendor.vidc.debug.level=0 \
persist.camera.HAL3.enabled=1 \
persist.camera.preview.ubwc=0 \
persist.camera.video.ubwc=0 \
persist.camera.gyro.disable=0 \
ro.persist.qcapb=1
# Disable SMD sensor
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.sensors.smd=false
# Charger
PRODUCT_PROPERTY_OVERRIDES += \
ro.charger.enable_suspend=true
# Fingerprint
PRODUCT_PROPERTY_OVERRIDES += \
fingerprint.nocleanup=true
# CNE
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.cne.feature=1 \
persist.vendor.sys.cnd.iwlan=1
# Netmgrd
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.use_data_netmgrd=true \
persist.data.netmgrd.qos.enable=true \
persist.vendor.data.mode=concurrent
# Device was launched with M
PRODUCT_PROPERTY_OVERRIDES += \
ro.product.first_api_level=23
# Display (Qualcomm AD)
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.display.cabl=0 \
ro.qcom.ad=1 \
ro.qcom.ad.calib.data=/system/etc/calib.cfg \
ro.qcom.ad.sensortype=2 \
vendor.gralloc.disable_ahardware_buffer=1
# DPM
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.dpm.feature=0
# DRM
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true \
media.mediadrmservice.enable=true \
ro.com.widevine.cachesize=16777216
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.enable_hwc_vds=0 \
debug.sf.hw=0 \
debug.sf.latch_unsignaled=0 \
debug.egl.hw=0 \
debug.sf.disable_backpressure=1 \
persist.hwc.mdpcomp.enable=true \
debug.mdpcomp.logs=0 \
dev.pm.dyn_samplingrate=1 \
persist.demo.hdmirotationlock=false \
debug.enable.sglscale=1 \
sdm.debug.disable_skip_validate=1 \
debug.sf.recomputecrop=0 \
ro.opengles.version=196610 \
ro.qualcomm.cabl=0 \
ro.qualcomm.svi=0 \
persist.debug.wfd.enable=1 \
persist.hwc.enable_vds=1 \
vendor.display.disable_skip_validate=1 \
vendor.display.rotator_downscale=1 \
vendor.video.disable.ubwc=1 \
debug.sdm.support_writeback=0 \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
ro.hardware.vulkan=adreno \
ro.hardware.egl=adreno \
debug.hwui.renderer=skiagl \
debug.renderengine.backend=skiaglthreaded \
renderthread.skia.reduceopstasksplitting=true \
debug.hwui.skia_atrace_enabled=false
# Blur
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.sf.disable_blurs=1 \
ro.surface_flinger.supports_background_blur=1 \
ro.sf.blurs_are_expensive=1
# Disable MTE Async for system server
PRODUCT_PROPERTY_OVERRIDES += \
arm64.memtag.process.system_server=off \
# servicetracker
PRODUCT_PROPERTY_OVERRIDES += \
sys.vendor.qti.servicetracker.disable=true
# SurfaceFlinger
PRODUCT_PROPERTY_OVERRIDES += \
ro.surface_flinger.protected_contents=true \
ro.surface_flinger.max_virtual_display_dimension=4096 \
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \
ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \
ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000 \
ro.min.fling_velocity=160 \
ro.max.fling_velocity=20000
# Memory optimizations
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.sys.fw.bservice_enable=true
# Hdmi
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.hw.aac.encoder=true
#Property to enable display default color mode
PRODUCT_PROPERTY_OVERRIDES += \
vendor.display.enable_default_color_mode=1
# Logs
PRODUCT_PROPERTY_OVERRIDES += \
persist.log.tag.AnalyticsService=S \
persist.log.tag.KernelCpuUidActiveTimeReader=S \
persist.log.tag.Tracer=S \
persist.log.tag.NearbySharing=S \
persist.log.tag.IntervalStats=S \
persist.log.tag.CompatibilityChangeReporter=S \
persist.log.tag.SQLiteLog=S \
persist.log.tag.wificond=S \
persist.log.tag.b/223498680=S \
persist.log.tag.TrafficStats=S \
persist.log.tag.ContrastColorUtil=S
# Media
PRODUCT_PROPERTY_OVERRIDES += \
vendor.vidc.enc.disable.pq=true \
vidc.enc.dcvs.extra-buff-count=2 \
vendor.audio.flac.sw.decoder.24bit=true \
media.aac_51_output_enabled=true \
mm.enable.smoothstreaming=true \
vendor.audio.use.sw.alac.decoder=true \
vendor.audio.use.sw.ape.decoder=true \
media.stagefright.thumbnail.prefer_hw_codecs=true \
mm.sec.enable.smoothstreaming=true \
mmp.enable.3g2=true \
media.stagefright.audio.sink=280 \
vendor.mm.enable.qcom_parser=1048575 \
vendor.vidc.debug.level=0 \
vendor.vidc.disable.split.mode=1 \
debug.stagefright.omx_default_rank=0 \
debug.stagefright.omx_default_rank.sw-audio=1 \
media.settings.xml=/vendor/etc/media_profiles_vendor.xml
# Disable iorapd
PRODUCT_PROPERTY_OVERRIDES += \
ro.iorapd.enable=false
# Disable iorapd perfetto tracing for app starts
PRODUCT_PROPERTY_OVERRIDES += \
iorapd.perfetto.enable=false
# Disable iorapd readahead for app starts
PRODUCT_PROPERTY_OVERRIDES += \
iorapd.readahead.enable=false
# Perf
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so \
# QC framework value-adds
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.va_aosp.support=1
# Radio
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.multisim.config=dsds \
persist.vendor.data.iwlan.enable=true \
persist.vendor.radio.add_power_save=1 \
persist.vendor.radio.apm_sim_not_pwdn=1 \
persist.vendor.radio.custom_ecc=1 \
persist.vendor.radio.hw_mbn_update=1 \
persist.vendor.radio.sw_mbn_update=1 \
persist.vendor.radio.procedure_bytes=SKIP \
persist.vendor.radio.rat_on=combine \
persist.vendor.radio.sib16_support=1 \
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \
vendor.rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \
service.qti.ims.enabled=1 \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1 \
persist.vendor.ims.disableIMSLogs=1 \
persist.vendor.ims.disableADBLogs=1 \
persist.vendor.ims.disableDebugDataPathLogs=1 \
persist.vendor.ims.disableDebugLogs=1 \
persist.vendor.ims.disableSigHandler=1 \
persist.vendor.ims.disableQXDMLogs=1 \
DEVICE_PROVISIONED=1 \
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_plmn= \
persist.rild.nitz_short_ons_0= \
persist.rild.nitz_short_ons_1= \
persist.rild.nitz_short_ons_2= \
persist.rild.nitz_short_ons_3= \
rild.libargs=-d /dev/smd0 \
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \
ril.subscription.types=NV,RUIM \
ro.telephony.call_ring.multiple=false \
ro.telephony.default_network=22,22 \
telephony.lteOnCdmaDevice=1 \
ro.telephony.block_binder_thread_on_incoming_calls=false
# BPF
PRODUCT_PROPERTY_OVERRIDES += \
ro.kernel.ebpf.supported=true
# SoC
PRODUCT_PROPERTY_OVERRIDES += \
ro.soc.manufacturer=Qualcomm \
ro.soc.model=MSM8996
# TimeService
PRODUCT_PROPERTY_OVERRIDES += \
persist.backup.ntpServer=0.pool.ntp.org \
persist.timed.enable=true
# Create zram disk
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.config.zram=true
# ro.location properties below are used in conjunction
# with NLP_MODE setting in /vendor/etc/izat.conf
# either as the main network provider or as a fallback
# provider depending on NLP_MODE that is set
# These properties are optional and will not cause
# issues if not set to existing packages.
# ro.location.osnlp.package sets the name of default
# OS sepecific network location provider package to use
# ro.location.osnlp.region.package is set to the name
# of the alternative network location provider package
# to be used for a particular region where the default
# network location provider is not functional
PRODUCT_PROPERTY_OVERRIDES += \
ro.location.osnlp.package=com.google.android.gms \
ro.location.osnlp.region.package=
# USB
PRODUCT_PROPERTY_OVERRIDES += \
sys.usb.controller=6a00000.dwc3 \
persist.vendor.usb.config.extra=none \
vendor.usb.dpl.inst.name=dpl \
vendor.usb.rmnet.func.name=rmnet_bam \
vendor.usb.rmnet.inst.name=rmnet \
vendor.usb.rndis.func.name=rndis_bam
# Wifi
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0
# ART
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=16m \
dalvik.vm.heapgrowthlimit=256m \
dalvik.vm.heapsize=512m \
dalvik.vm.dex2oat64.enabled=true \
ro.sys.fw.dex2oat_thread_count=4
#property to specify the number of frames to skip before setting hint
PRODUCT_PROPERTY_OVERRIDES += \
sdm.perf_hint_window=50
#properties for limiting preview size in camera
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.camera.display.umax=1920x1080 \
persist.sys.camera.display.lmax=1280x720
# SurfaceFlinger brightness tweak
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.force_light_brightness=1
# Shutdown waittime
PRODUCT_PROPERTY_OVERRIDES += \
sys.vendor.shutdown.waittime=20000