-
Notifications
You must be signed in to change notification settings - Fork 144
/
common-prop.mk
212 lines (176 loc) · 6.25 KB
/
common-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
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# librqbalance enablement
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.extension_library=/vendor/lib/librqbalance.so
# Limit dex2oat threads to improve thermals
PRODUCT_PROPERTY_OVERRIDES += \
dalvik.vm.dex2oat-threads=2 \
dalvik.vm.image-dex2oat-threads=4
# Platform specific default properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.data.qmi.adb_logmask=0
# configure adb over wifi only on the eng build
ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += \
service.adb.tcp.port=5555
endif
# Common property setup DS or SS devices.
ifeq ($(PRODUCT_DEVICE_DS),true)
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.radio.multisim.config=dsds
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.default_network=9
endif
# System props for the data modules
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.use_data_netmgrd=true \
persist.vendor.data.mode=concurrent \
persist.data.netmgrd.qos.enable=true \
ro.data.large_tcp_window_size=true
# Enable Power save functionality for modem
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.radio.add_power_save=1 \
persist.vendor.radio.apm_sim_not_pwdn=1
# Enable advanced power saving for data connectivity
# DPM: Data Port Mapper, with TCM (TCP Connection Manager)
# CnE: Connectivity Engine
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.dpm.feature=1 \
persist.vendor.dpm.tcm=1 \
persist.vendor.cne.feature=1
# IMS
# P.S.: va_{aosp,odm} is necessary to load imscmservice
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.qti.va_aosp.support=1 \
ro.vendor.qti.va_odm.support=1 \
persist.vendor.radio.vdp_on_ims_cap=1 \
persist.vendor.radio.report_codec=1
# VoLTE / VT / WFC
# These properties will force availability of the VoLTE,
# VideoTelephony and Wi-Fi Call, without needing carrier
# services provisioning sites hooked up: simplifies it.
PRODUCT_PROPERTY_OVERRIDES += \
persist.dbg.volte_avail_ovr=1 \
persist.dbg.vt_avail_ovr=1 \
persist.dbg.wfc_avail_ovr=1
# Modem properties
PRODUCT_PROPERTY_OVERRIDES += \
persist.vendor.radio.wait_for_pbm=1 \
persist.vendor.radio.mt_sms_ack=19 \
persist.vendor.radio.enableadvancedscan=true \
persist.vendor.radio.unicode_op_names=true \
persist.vendor.radio.sib16_support=1 \
persist.vendor.radio.oem_socket=true
# Ringer
PRODUCT_PROPERTY_OVERRIDES += \
ro.telephony.call_ring.multiple=false
# System props for telephony System prop to turn on CdmaLTEPhone always
PRODUCT_PROPERTY_OVERRIDES += \
telephony.lteOnCdmaDevice=0
# Stagefright
PRODUCT_PROPERTY_OVERRIDES += \
media.stagefright.thumbnail.prefer_hw_codecs=true
# Delay reduction
PRODUCT_PROPERTY_OVERRIDES += \
sdm.debug.rotator_downscale=1
# DRM service
PRODUCT_PROPERTY_OVERRIDES += \
drm.service.enabled=true
# VIDC: debug_levels 1:ERROR 2:HIGH 4:LOW 0:NOLOGS 7:AllLOGS
PRODUCT_PROPERTY_OVERRIDES += \
vidc.debug.level=1
# Audio
PRODUCT_PROPERTY_OVERRIDES += \
audio.deep_buffer.media=true \
ro.config.media_vol_steps=25 \
ro.config.vc_call_vol_steps=7
# AudioPolicy Manager
PRODUCT_PROPERTY_OVERRIDES += \
audio.offload.video=1
# AudioFlinger
PRODUCT_PROPERTY_OVERRIDES += \
ro.af.client_heap_size_kbyte=7168 \
af.fast_track_multiplier=1 \
ro.audio.flinger_standbytime_ms=2000
# AAudio MMAP/NOIRQ data path
PRODUCT_PROPERTY_OVERRIDES += \
aaudio.mmap_policy=2 \
aaudio.mmap_exclusive_policy=2 \
aaudio.hw_burst_min_usec=2000
# Enable stats logging in LMKD
TARGET_LMKD_STATS_LOG := true
PRODUCT_PROPERTY_OVERRIDES += \
ro.lmk.log_stats=true
# Set lmkd options
PRODUCT_PROPERTY_OVERRIDES += \
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 \
ro.lmk.kill_heaviest_task=true \
ro.lmk.kill_timeout_ms=100 \
ro.lmk.use_minfree_levels=true
# Property to enable user to access Google WFD settings.
PRODUCT_PROPERTY_OVERRIDES += \
persist.debug.wfd.enable=0
# Property to choose between virtual/external wfd display
PRODUCT_PROPERTY_OVERRIDES += \
persist.sys.wfd.virtual=0
# Wi-Fi interface name
PRODUCT_PROPERTY_OVERRIDES += \
wifi.interface=wlan0
# BT address
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.bt.bdaddr_path=/data/vendor/bluetooth/bluetooth_bdaddr
# BT address for devices with BCM BT
PRODUCT_PROPERTY_OVERRIDES += \
ro.bt.bdaddr_path=/data/vendor/bluetooth/bluetooth_bdaddr
# RILD
PRODUCT_PROPERTY_OVERRIDES += \
vendor.rild.libpath=/odm/lib64/libril-qc-hal-qmi.so \
persist.rild.nitz_plmn= \
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_short_ons_0= \
persist.rild.nitz_short_ons_1= \
persist.rild.nitz_short_ons_2= \
persist.rild.nitz_short_ons_3= \
ril.subscription.types=NV,RUIM \
# OpenGLES version
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196610
# Vendor version
PRODUCT_PROPERTY_OVERRIDES += \
ro.odm.expect.version=$(PLATFORM_VERSION)_$(SOMC_KERNEL_VERSION)_$(SOMC_PLATFORM)_$(TARGET_VENDOR_VERSION)
# Priv-app permisisons
PRODUCT_PROPERTY_OVERRIDES += \
ro.control_privapp_permissions=enforce
# Avoid Adoptable double encryption
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.allow_encrypt_override=true
# Reduce cost of scrypt for FBE CE decryption
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.scrypt_params=15:3:1
# Look for libGLES_adreno.so instead of libGLES_$(BOARD_TARGET_PLATFORM).so
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.egl=adreno
# Look for vulkan.qcom.so instead of vulkan.$(BOARD_TARGET_PLATFORM).so
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.vulkan=adreno