-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsystem_prop.mk
197 lines (173 loc) · 6.42 KB
/
system_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
# Bluetooth
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.btstack.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aptxadaptive-aac-ldac \
persist.vendor.btstack.enable.splita2dp=true \
vendor.bluetooth.soc=cherokee \
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac \
persist.bluetooth.a2dp_offload.disabled=false \
persist.bt.enableAptXHD=true \
persist.service.btui.use_aptx=1 \
persist.vendor.bt.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aptxadaptive-aac-ldac \
persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac-aptxadaptive
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
persist.camera.sat.fallback.dist=40 \
persist.camera.sat.fallback.dist.d=10 \
persist.camera.sat.fallback.luxindex=310 \
persist.camera.sat.fallback.lux.d=50 \
persist.vendor.camera.enableNCSService=TRUE \
persist.vendor.camera.enableTOFInterface=TRUE \
vendor.camera.aux.packagelist=org.codeaurora.snapcam,com.android.camera,org.lineageos.snap
# CNE and DPM
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.cne.feature=1 \
persist.vendor.dpm.feature=1 \
persist.vendor.dpm.nsrm.bkg.evt=3955
# Data Modules
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.data.mode=concurrent \
ro.vendor.use_data_netmgrd=true
# Disable priv-app permissions whitelist
PRODUCT_PROPERTY_OVERRIDES += \
ro.control_privapp_permissions=log
# Display
PRODUCT_PROPERTY_OVERRIDES += \
ro.eyecare.brightness.threshold=11 \
ro.eyecare.brightness.level=5 \
ro.displayfeature.histogram.enable \
ro.hist.brightness.threshold=7 \
ro.sf.lcd_density=440 \
ro.vendor.display.ad=1 \
ro.vendor.display.ad.hdr_calib_data=/vendor/etc/hdr_config.cfg \
ro.vendor.display.ad.sdr_calib_data=/vendor/etc/sdr_config.cfg \
ro.vendor.display.sensortype=2 \
ro.xiaomi.bl.poll=true \
persist.displayfeature.dc_backlight.threshold=610 \
persist.displayfeature.dc_backlight.enable=false \
persist.fod.modified.dc_status=false \
sys.displayfeature.hbm.enable=true
# Graphics
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.disable_backpressure=1 \
debug.sf.enable_gl_backpressure=1 \
debug.sf.enable_hwc_vds=1
PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
persist.vendor.display.enable_kernel_idle_timer=true \
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=2 \
ro.surface_flinger.max_virtual_display_dimension=4096 \
ro.surface_flinger.set_idle_timer_ms=80 \
ro.surface_flinger.set_touch_timer_ms=200 \
ro.surface_flinger.set_display_power_timer_ms=1000 \
ro.surface_flinger.support_kernel_idle_timer=true \
ro.surface_flinger.use_color_management=true \
ro.surface_flinger.use_smart_90_for_video=true \
ro.surface_flinger.vsync_event_phase_offset_ns=2000000 \
ro.surface_flinger.vsync_sf_event_phase_offset_ns=6000000 \
ro.surface_flinger.wcg_composition_dataspace=143261696
# Early phase offset configuration for SurfaceFlinger (b/75985430)
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.early_phase_offset_ns=500000 \
debug.sf.early_app_phase_offset_ns=500000 \
debug.sf.early_gl_phase_offset_ns=3000000 \
debug.sf.early_gl_app_phase_offset_ns=15000000
# Enable EGL image tracking on SF for b/137514000
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.enable_egl_image_tracker=1
# GPS
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.overlay.izat.optin=rro
# Haptic feedback
PRODUCT_PROPERTY_OVERRIDES += \
sys.haptic.down.weak=20 \
sys.haptic.down.normal=40 \
sys.haptic.down.strong=80 \
sys.haptic.runin=13
# IOP
PRODUCT_PROPERTY_OVERRIDES += \
vendor.iop.enable_prefetch_ofr=0 \
vendor.iop.enable_uxe=0
# Media
PRODUCT_PROPERTY_OVERRIDES += \
media.stagefright.enable-player=true \
media.stagefright.enable-http=true \
media.stagefright.enable-aac=true \
media.stagefright.enable-qcp=true \
media.stagefright.enable-fma2dp=true \
media.stagefright.enable-scan=true \
media.stagefright.thumbnail.prefer_hw_codecs=true \
mmp.enable.3g2=true \
media.aac_51_output_enabled=true \
mm.enable.smoothstreaming=true \
media.settings.xml=/system/etc/media_profiles_vendor.xml \
vendor.mm.enable.qcom_parser=63963135
# set lmkd options
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.use_psi=true \
ro.lmk.low_ram=false \
ro.lmk.kill_heaviest_task=true \
ro.lmk.kill_timeout_ms=100 \
ro.lmk.use_minfree_levels=true \
ro.lmk.low=1001 \
ro.lmk.medium=800 \
ro.lmk.critical=0 \
ro.lmk.critical_upgrade=false \
ro.lmk.upgrade_pressure=100 \
ro.lmk.downgrade_pressure=100 \
# Memory optimizations
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.sys.fw.bservice_enable=true
# Netflix
PRODUCT_PROPERTY_OVERRIDES += \
ro.netflix.bsp_rev=Q855-16947-1
# OTG
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.isUsbOtgEnabled=true
# system prop for NFC DT
PRODUCT_PROPERTY_OVERRIDES += \
ro.nfc.port=I2C
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
DEVICE_PROVISIONED=1 \
rild.libpath=/vendor/lib64/libril-qc-hal-qmi.so \
ril.subscription.types=RUIM \
ro.telephony.default_cdma_sub=0 \
ro.telephony.default_network=22,22 \
persist.data.iwlan=1 \
persist.data.iwlan.ipsec.ap=1 \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1 \
persist.radio.NO_STAPA=1 \
persist.sys.cust.lte_config=true \
persist.sys.fflag.override.settings_network_and_internet_v2=true \
persist.radio.VT_CAM_INTERFACE=1 \
persist.radio.VT_ENABLE=1 \
persist.radio.volte.dan_support=true \
persist.vendor.data.iwlan.enable=true \
persist.vendor.radio.data_con_rprt=1 \
persist.vendor.radio.enable_temp_dds=true \
persist.vendor.radio.force_on_dc=true \
persist.vendor.radio.redir_party_num=1 \
persist.vendor.radio.report_codec=1 \
telephony.lteOnCdmaDevice=1
# RCS
PRODUCT_PROPERTY_OVERRIDES += \
persist.rcs.supported=1
# Sensors
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.sensors.enable.mag_filter=true
# Subsystem ramdump
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.ssr.restart_level=ALL_ENABLE
# USB debugging
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.usb.config=mtp,adb \
ro.adb.secure=0 \
ro.secure=0 \
ro.debuggable=1
# Vendor
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.va_aosp.support=1