This repository has been archived by the owner on May 17, 2022. It is now read-only.
forked from LineageOS/android_device_lge_g4-common
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathsystem_prop.mk
246 lines (222 loc) · 7.5 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
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
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.audio.sdk.fluencetype=fluencepro \
persist.vendor.audio.fluence.audiorec=false \
persist.vendor.audio.fluence.speaker=false \
persist.vendor.audio.fluence.voicecall=true \
persist.vendor.audio.fluence.voicecomm=true \
persist.vendor.audio.fluence.voicerec=false \
persist.speaker.prot.enable=true \
ro.config.vc_call_vol_steps=7 \
persist.vendor.audio.calfile0=/etc/acdbdata/Bluetooth_cal.acdb \
persist.vendor.audio.calfile1=/etc/acdbdata/General_cal.acdb \
persist.vendor.audio.calfile2=/etc/acdbdata/Global_cal.acdb \
persist.vendor.audio.calfile3=/etc/acdbdata/Handset_cal.acdb \
persist.vendor.audio.calfile4=/etc/acdbdata/Hdmi_cal.acdb \
persist.vendor.audio.calfile5=/etc/acdbdata/Headset_cal.acdb \
persist.vendor.audio.calfile6=/etc/acdbdata/Speaker_cal.acdb \
persist.spkr.cal.duration=0 \
ro.qc.sdk.audio.ssr=false \
persist.audio.ssr.3mic=true \
av.offload.enable=false \
audio.offload.buffer.size.kb=32 \
audio.offload.pcm.16bit.enable=false \
audio.offload.gapless.enabled=false \
audio.offload.passthrough=false \
audio.offload.pcm.24bit.enable=true \
audio.offload.multiple.enabled=false \
audio.deep_buffer.media=true \
tunnel.audio.encode=false \
use.dedicated.device.for.voip=true \
af.fast_track_multiplier=1 \
audio_hal.period_size=192 \
ro.audio.flinger_standbytime_ms=300 \
use.voice.path.for.pcm.voip=false \
ro.config.media_vol_steps=25 \
ro.config.vc_call_vol_steps=7
# Bluetooth
PRODUCT_PROPERTY_OVERRIDES += \
bluetooth.chip.vendor=brcm \
qcom.bluetooth.soc=rome \
ro.bt.bdaddr_path="/data/misc/bluetooth/bdaddr" \
persist.bt.enableAptXHD=true
# Boot animation
TARGET_SCREEN_HEIGHT := 2560
TARGET_SCREEN_WIDTH := 1440
TARGET_BOOT_ANIMATION_RES := 1440
# Camera
PRODUCT_PROPERTY_OVERRIDES += \
camera.hal1.packagelist=com.skype.raider,com.whatsapp,com.instagram.android \
ro.qc.sdk.camera.facialproc=false \
ro.qc.sdk.gestures.camera=false \
camera2.portability.force_api=1 \
persist.camera.video.ubwc=0 \
persist.camera.HAL3.enabled=1 \
persist.ts.postmakeup=false \
persist.ts.rtmakeup=false \
camera.no_navigation_bar=true \
ro.factorytest=0 \
# Enable low power video mode for 4K encode
vidc.debug.perf.mode=2 \
vidc.enc.dcvs.extra-buff-count=2
# DRM
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true
# Dalvik
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.heapstartsize=8m \
dalvik.vm.heapgrowthlimit=256m \
dalvik.vm.heapsize=512m \
dalvik.vm.heaptargetutilization=0.50 \
dalvik.vm.heapminfree=1m \
dalvik.vm.heapmaxfree=8m
# Dexopt (try not to use big cores during dexopt)
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.boot-dex2oat-threads=4 \
dalvik.vm.dex2oat-threads=4 \
dalvik.vm.image-dex2oat-threads=4 \
dalvik.vm.image-dex2oat-filter=speed \
ro.vendor.qti.am.reschedule_service=true
# Display
PRODUCT_PROPERTY_OVERRIDES += \
ro.sf.lcd_density=560 \
qemu.hw.mainkeys=0 \
ro.qualcomm.cabl=2
# Properties to improve rendering
debug.composition.type=gpu \
debug.cpurend.vsync=false \
debug.enable.sglscale=1 \
debug.enabletr=true \
debug.egl.profiler=1 \
debug.egl.hw=1 \
debug.overlayui.enable=1 \
debug.performance.tuning=1 \
debug.sf.hw=1 \
debug.sf.disable_hwc=0 \
debug.sf.recomputecrop=0 \
debug.sf.disable_backpressure=1 \
debug.sf.latch_unsignaled=1 \
hw3d.force=1 \
persist.hwc.ptor.enable=true \
video.accelerate.hw=1
# MSM8992 HAL settings
# 196610 is decimal for 0x30002 to report major/minor versions as 3/2
PRODUCT_PROPERTY_OVERRIDES += \
debug.mdpcomp.logs=0 \
persist.debug.wfd.enable=1 \
persist.demo.hdmirotationlock=false \
persist.hwc.enable_vds=1 \
persist.hwc.mdpcomp.enable=true \
persist.mdpcomp.4k2kSplit=1 \
persist.mdpcomp_perfhint=50 \
persist.metadata_dynfps.disable=true \
persist.sys.ui.hw=1 \
persist.sys.wfd.virtual=0 \
ro.opengles.version=196610 \
ro.sf.compbypass.enable=0
# FIFO: enable scheduling for UI and Render threads by default
PRODUCT_PROPERTY_OVERRIDES += \
sys.use_fifo_ui=1
# Fling Velocity
PRODUCT_PROPERTY_OVERRIDES += \
ro.min.fling_velocity=8000 \
ro.max.fling_velocity=12000 \
ro.min_pointer_dur=8 \
persist.sys.scrollingcache=3 \
touch.presure.scale=0.001 \
windowsmgr.max_events_per_sec=150
# FRP
PRODUCT_PROPERTY_OVERRIDES += \
ro.frp.pst=/dev/block/bootdevice/by-name/persistent
# GPS
PRODUCT_PROPERTY_OVERRIDES += \
persist.gps.qc_nlp_in_use=1 \
persist.loc.nlp_name=com.qualcomm.services.location \
ro.gps.agps_provider=1 \
ro.qc.sdk.izat.premium_enabled=0 \
ro.qc.sdk.izat.service_mask=0x0
# LMKD
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.low=1001 \
ro.lmk.medium=80 \
ro.lmk.critical=0 \
ro.lmk.critical_upgrade=false \
ro.lmk.upgrade_pressure=100 \
ro.lmk.downgrade_pressure=100 \
ro.lmk.kill_heaviest_task=true \
ro.lmk.kill_timeout_ms=100
# Media
PRODUCT_PROPERTY_OVERRIDES += \
persist.media.treble_omx=false \
mm.enable.qcom_parser=3379827 \
mm.enable.smoothstreaming=true \
media.aac_51_output_enabled=true \
media.stagefright.legacyencoder=true
media.stagefright.less-secure=true
vidc.debug.level=1 \
vidc.debug.perf.mode=2 \
vidc.enc.dcvs.extra-buff-count=2 \
persist.camera.cpp.duplication=false \
ro.config.avoid_gfx_accel=true
# Memory Optimizations
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.sys.fw.bg_apps_limit=10 \
ro.vendor.qti.am.reschedule_service=true \
ro.vendor.qti.sys.fw.bservice_enable=true \
ro.vendor.qti.sys.fw.bservice_age=5000 \
ro.vendor.qti.sys.fw.bservice_limit=5
# Perf
PRODUCT_PROPERTY_OVERRIDES += \
persist.dpm.feature=1 \
persist.timed.enable=true \
ro.qualcomm.cabl=2 \
ro.qualcomm.perf.cores_online=2 \
ro.vendor.extension_library=libqti-perfd-client.so \
ro.min_freq_0=384000 \
ro.min_freq_4=384000 \
ro.vold.umsdirtyratio=50
# RIL
PRODUCT_PROPERTY_OVERRIDES += \
rild.libpath=/vendor/lib64/libril-qc-qmi-1.so \
ril.subscription.types=NV,RUIM \
persist.data.mode=concurrent \
persist.data.netmgrd.qos.enable=true \
persist.data.qmi.adb_logmask=0 \
persist.qcril.disable_retry=true \
persist.radio.apm_sim_not_pwdn=1 \
persist.radio.custom_ecc=1 \
persist.radio.sib16_support=1 \
ro.data.large_tcp_window_size=true \
ro.use_data_netmgrd=true \
ro.telephony.default_network=12 \
ro.ril.svlte1x=false \
ro.ril.svdo=false \
persist.telephony.oosisdc=false \
#Improve Speech Quality
ro.ril.enable.amr.wideband=1
# RIL Powersaving
persist.radio.add_power_save=1 \
pm.sleep_mode=1 \
ro.ril.disable.power.collapse=0 \
ro.ril.fast.dormancy.rule=1 \
ro.ril.fast.dormancy.timeout=3 \
ro.mot.eri.losalert.delay=1000
# Security patch level
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.build.security_patch=2017-07-01
# Sensors
PRODUCT_PROPERTY_OVERRIDES += \
ro.qc.sdk.sensors.gestures=true \
persist.debug.sensors.hal=e \
debug.qualcomm.sns.daemon=e \
debug.qualcomm.sns.hal=e \
debug.qualcomm.sns.libsensor1=e
# Storage
PRODUCT_PROPERTY_OVERRIDES += \
ro.sys.sdcardfs=true
# Fix graphical glitches on skiagl
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.renderer=opengl
# OTA server
PRODUCT_PROPERTY_OVERRIDES += \
lineage.updater.uri=https://sfxota.binbash.rocks:8010/lineage/16.0/api/v1/{device}/{type}/{incr}