forked from Pulkit077/device_xiaomi_sweet_k6a
-
Notifications
You must be signed in to change notification settings - Fork 1
/
properties.mk
373 lines (325 loc) · 11.6 KB
/
properties.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
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
aaudio.hw_burst_min_usec=2000 \
aaudio.mmap_exclusive_policy=2 \
af.fast_track_multiplier=1 \
audio.deep_buffer.media=true \
audio.offload.min.duration.secs=30 \
audio.offload.video=true \
ro.audio.monitorRotation=true
PRODUCT_PROPERTY_OVERRIDES += \
ro.config.media_vol_default=10 \
ro.config.vc_call_vol_steps=11
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio.avs.afe_api_version=2 \
persist.vendor.audio.hifi=false \
persist.vendor.audio.ras.enabled=false \
persist.vendor.audio.spv3.enable=true \
persist.vendor.audio.voicecall.speaker.stereo=true \
persist.vendor.bt.aac_frm_ctl.enabled=true \
ro.af.client_heap_size_kbyte=7168 \
vendor.audio.offload.buffer.size.kb=256 \
vendor.audio.offload.gapless.enabled=true \
vendor.audio.offload.multiple.enabled=false \
vendor.audio.offload.passthrough=false \
vendor.audio.safx.pbe.enabled=false \
vendor.audio.spkr_prot.tx.sampling_rate=48000 \
vendor.audio.usb.disable.sidetone=true \
vendor.audio.use.sw.alac.decoder=true \
vendor.audio.use.sw.ape.decoder=true \
vendor.audio.volume.headset.gain.depcal=true \
vendor.audio_hal.in_period_size=144 \
vendor.audio_hal.period_multiplier=3 \
vendor.voice.path.for.pcm.voip=false \
vendor.audio_hal.period_size=192
# Audio (ximi)
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.audio.delta.refresh=false \
persist.vendor.audio.ring.filter.mask=0 \
ro.vendor.audio.camera.loopback.support=true \
ro.vendor.audio.scenario.support=true \
ro.vendor.audio.sdk.ssr=false \
ro.vendor.audio.soundfx.usb=true \
ro.vendor.audio.us.type=mius \
vendor.audio.mic.status=off
# Audio (Bluetooth)
PRODUCT_PROPERTY_OVERRIDES += \
persist.bluetooth.a2dp_offload.disabled=false \
ro.bluetooth.a2dp_offload.supported=true
# Audio (Features)
PRODUCT_PROPERTY_OVERRIDES += \
vendor.audio.adm.buffering.ms=6 \
vendor.audio.feature.a2dp_offload.enable=true \
vendor.audio.feature.afe_proxy.enable=true \
vendor.audio.feature.anc_headset.enable=true \
vendor.audio.feature.audiozoom.enable=false \
vendor.audio.feature.battery_listener.enable=false \
vendor.audio.feature.compr_cap.enable=false \
vendor.audio.feature.compr_voip.enable=false \
vendor.audio.feature.compress_in.enable=false \
vendor.audio.feature.compress_meta_data.enable=true \
vendor.audio.feature.concurrent_capture.enable=false \
vendor.audio.feature.custom_stereo.enable=true \
vendor.audio.feature.deepbuffer_as_primary.enable=false \
vendor.audio.feature.display_port.enable=true \
vendor.audio.feature.dsm_feedback.enable=false \
vendor.audio.feature.dynamic_ecns.enable=false \
vendor.audio.feature.ext_hw_plugin.enable=false \
vendor.audio.feature.external_dsp.enable=false \
vendor.audio.feature.external_speaker.enable=false \
vendor.audio.feature.external_speaker_tfa.enable=false \
vendor.audio.feature.fm.enable=true \
vendor.audio.feature.hdmi_edid.enable=true \
vendor.audio.feature.hdmi_passthrough.enable=true \
vendor.audio.feature.hfp.enable=true \
vendor.audio.feature.hifi_audio.enable=false \
vendor.audio.feature.hwdep_cal.enable=false \
vendor.audio.feature.incall_music.enable=true \
vendor.audio.feature.keep_alive.enable=false \
vendor.audio.feature.kpi_optimize.enable=false \
vendor.audio.feature.maxx_audio.enable=false \
vendor.audio.feature.multi_voice_session.enable=true \
vendor.audio.feature.ras.enable=true \
vendor.audio.feature.record_play_concurency.enable=false \
vendor.audio.feature.snd_mon.enable=true \
vendor.audio.feature.spkr_prot.enable=true \
vendor.audio.feature.src_trkn.enable=true \
vendor.audio.feature.ssrec.enable=true \
vendor.audio.feature.usb_offload.enable=true \
vendor.audio.feature.usb_offload_burst_mode.enable=true \
vendor.audio.feature.usb_offload_sidetone_volume.enable=false \
vendor.audio.feature.vbat.enable=true \
vendor.audio.feature.wsa.enable=false
# Audio (Fluence)
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.audio.sdk.fluencetype=fluence \
vendor.audio.feature.fluence.enable=true \
persist.vendor.audio.fluence.speaker=true \
persist.vendor.audio.fluence.voicecall=true \
persist.vendor.audio.fluence.voicecomm=true \
persist.vendor.audio.fluence.voicerec=false
# Bluetooth
PRODUCT_PRODUCT_PROPERTIES += \
bluetooth.profile.a2dp.source.enabled=true \
bluetooth.profile.avrcp.controller.enabled=false \
bluetooth.profile.avrcp.target.enabled=true \
bluetooth.profile.gatt.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.opp.enabled=true \
bluetooth.profile.pan.nap.enabled=true \
bluetooth.profile.pan.panu.enabled=true \
bluetooth.profile.pbap.server.enabled=true \
bluetooth.profile.sap.server.enabled=false
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.bluetooth.ble_drop_power=true \
persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac-aptxadaptive \
persist.vendor.qcom.bluetooth.aac_frm_ctl.enabled=true \
persist.vendor.qcom.bluetooth.enable.splita2dp=true \
persist.vendor.qcom.bluetooth.enable.swb=false \
persist.vendor.qcom.bluetooth.enable.swbpm=false \
persist.vendor.qcom.bluetooth.scram.enabled=true \
persist.vendor.qcom.bluetooth.soc=cherokee \
persist.vendor.qcom.bluetooth.twsp_state.enabled=false \
ro.vendor.bluetooth.wipower=false
# Blur
PRODUCT_SYSTEM_PROPERTIES += \
ro.launcher.blur.appLaunch=0
# CNE
PRODUCT_SYSTEM_EXT_PROPERTIES += \
persist.vendor.cne.feature=1
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
camera.disable_zsl_mode=1
# Charger
PRODUCT_PRODUCT_PROPERTIES += \
ro.charger.enable_suspend=true
# Set fcc_main to 400mA to avoid the risk of vph_pwr drop
PRODUCT_SYSTEM_PROPERTIES += \
persist.vendor.cp.fcc_main_ua=400000
# Chipset
PRODUCT_VENDOR_PROPERTIES += \
ro.soc.manufacturer=QTI \
ro.soc.model=SM7150
# Crypto
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.dm_default_key.options_format.version=2 \
ro.crypto.volume.filenames_mode=aes-256-cts \
ro.crypto.volume.metadata.method=dm-default-key
# DPM
PRODUCT_SYSTEM_EXT_PROPERTIES += \
persist.vendor.dpm.feature=11 \
persist.vendor.dpmhalservice.enable=1
# DRM
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true
# Dalvik
PRODUCT_SYSTEM_PROPERTIES += \
dalvik.vm.dex2oat64.enabled=true \
dalvik.vm.systemuicompilerfilter=speed
# Disable MTE Async for system server
PRODUCT_SYSTEM_PROPERTIES += \
arm64.memtag.process.system_server=off
# Display (AD)
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.display.ad=1 \
ro.vendor.display.ad.sdr_calib_data=/vendor/etc/sdr_config.cfg \
ro.vendor.display.ad.hdr_calib_data=/vendor/etc/hdr_config.cfg \
ro.vendor.display.sensortype=2
# Display (color mode)
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.sf.color_saturation=1.0 \
persist.sys.sf.native_mode=1 \
persist.sys.sf.color_mode=9
# Factory Reset Protection
PRODUCT_PROPERTY_OVERRIDES += \
ro.frp.pst=/dev/block/bootdevice/by-name/frp
# Fuse
PRODUCT_PRODUCT_PROPERTIES += \
persist.sys.fuse.passthrough.enable=true
# Fwk detect
PRODUCT_ODM_PROPERTIES += \
ro.vendor.qti.va_odm.support=1
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.va_aosp.support=1
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.auto_latch_unsignaled=0 \
debug.sf.disable_backpressure=1 \
debug.sf.disable_client_composition_cache=1 \
debug.sf.enable_hwc_vds=1 \
debug.sf.enable_transaction_tracing=false \
debug.sf.latch_unsignaled=1 \
debug.sf.predict_hwc_composition_strategy=0 \
debug.sf.treat_170m_as_sRGB=1 \
persist.sys.sf.color_saturation=1.0 \
ro.hardware.egl=adreno \
ro.hardware.vulkan=adreno \
ro.opengles.version=196610 \
vendor.display.comp_mask=0 \
vendor.display.dataspace_saturation_matrix=1.0,0.0,0.0,0.0,1.0,0.0,0.0,0.0,1.0 \
vendor.display.disable_decimation=1 \
vendor.display.disable_excl_rect=0 \
vendor.display.disable_excl_rect_partial_fb=1 \
vendor.display.disable_hw_recovery_dump=1 \
vendor.display.disable_inline_rotator=1 \
vendor.display.disable_metadata_dynamic_fps=1 \
vendor.display.disable_scaler=0 \
vendor.display.disable_ui_3d_tonemap=1 \
vendor.display.enable_default_color_mode=1 \
vendor.display.enable_force_split=1 \
vendor.display.enable_null_display=0 \
vendor.display.enable_optimize_refresh=1 \
vendor.display.qdcm.mode_combine=1 \
vendor.gralloc.disable_ubwc=0
PRODUCT_SYSTEM_PROPERTIES += \
debug.hwui.skia_atrace_enabled=false
PRODUCT_PRODUCT_PROPERTIES += \
ro.sf.force_hwc_brightness=1
# Incremental FS
PRODUCT_PROPERTY_OVERRIDES += \
ro.incremental.enable=1
# Keystore
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.keystore_desede=true
# LMKD
PRODUCT_PRODUCT_PROPERTIES += \
ro.config.low_ram=false \
ro.lmk.kill_heaviest_task=true \
ro.lmk.kill_timeout_ms=100 \
ro.lmk.use_minfree_levels=true
# Media
PRODUCT_PROPERTY_OVERRIDES += \
debug.stagefright.omx_default_rank=0 \
debug.stagefright.ccodec=1
PRODUCT_SYSTEM_PROPERTIES += \
media.aac_51_output_enabled=true \
media.settings.xml=/vendor/etc/media_profiles_vendor.xml \
media.stagefright.audio.deep=false \
media.stagefright.enable-aac=true \
media.stagefright.enable-fma2dp=true \
media.stagefright.enable-http=true \
media.stagefright.enable-player=true \
media.stagefright.enable-qcp=true \
media.stagefright.enable-scan=true \
media.stagefright.thumbnail.prefer_hw_codecs=true \
mmp.enable.3g2=true \
persist.mm.enable.prefetch=true \
ro.media.recorder-max-base-layer-fps=60
# Netflix custom property
PRODUCT_SYSTEM_PROPERTIES += \
ro.netflix.bsp_rev=Q6150-17263-1
# Netmgr
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.data.iwlan.enable=true
# Perf
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=libqti-perfd-client.so
# Radio/RIL
PRODUCT_PROPERTY_OVERRIDES += \
persist.radio.multisim.config=dsds \
persist.sys.fflag.override.settings_provider_model=false \
persist.vendor.radio.apm_sim_not_pwdn=1 \
persist.vendor.radio.custom_ecc=1 \
persist.vendor.radio.data_con_rprt=1 \
persist.vendor.radio.data_ltd_sys_ind=1 \
persist.vendor.radio.dynamic_sar=1 \
persist.vendor.radio.enable_temp_dds=true \
persist.vendor.radio.enableadvancedscan=true \
persist.vendor.radio.force_ltd_sys_ind=1 \
persist.vendor.radio.force_on_dc=true \
persist.vendor.radio.manual_nw_rej_ct=1 \
persist.vendor.radio.procedure_bytes=SKIP \
persist.vendor.radio.rat_on=combine \
persist.vendor.radio.sib16_support=1 \
ro.telephony.default_cdma_sub=0
PRODUCT_SYSTEM_EXT_PROPERTIES += \
ro.telephony.sim_slots.count=2 \
telephony.active_modems.max_count=2
PRODUCT_SYSTEM_PROPERTIES += \
DEVICE_PROVISIONED=1 \
ril.subscription.types=NV,RUIM \
ro.telephony.default_network=22,22 \
telephony.lteOnCdmaDevice=1
# Radio (IMS)
PRODUCT_SYSTEM_PROPERTIES += \
persist.vendor.ims.disableADBLogs=1 \
persist.vendor.ims.disableDebugLogs=1 \
persist.vendor.ims.disableIMSLogs=1 \
persist.vendor.ims.disableQXDMLogs=1
# Sensors
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sensors.enable.mag_filter=true
# Shutdown
PRODUCT_PRODUCT_PROPERTIES += \
ro.build.shutdown_timeout=2
# Surfaceflinger
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
debug.sf.frame_rate_multiple_threshold=120 \
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true \
ro.surface_flinger.has_HDR_display=true \
ro.surface_flinger.has_wide_color_display=true \
ro.surface_flinger.max_frame_buffer_acquired_buffers=3 \
ro.surface_flinger.max_virtual_display_dimension=4096 \
ro.surface_flinger.protected_contents=true \
ro.surface_flinger.wcg_composition_dataspace=143261696
# System
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.binary_xml=false
# VoLTE/ViLTE/WFC
PRODUCT_PROPERTY_OVERRIDES += \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1
# WiFi
PRODUCT_PROPERTY_OVERRIDES += \
wifi.aware.interface=wifi-aware0
# Wireless display
PRODUCT_SYSTEM_PROPERTIES += \
persist.debug.wfd.enable=1 \
#persist.sys.wfd.virtual=0
# Zygote
PRODUCT_PROPERTY_OVERRIDES += \
zygote.critical_window.minute=10