forked from sonyxperiadev/device-sony-common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common-prop.mk
183 lines (153 loc) · 5.39 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
# 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.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 \
persist.vendor.radio.oem_socket=false
# 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
# debug.sf.latch_unsignaled
# - This causes SurfaceFlinger to latch
# buffers even if their fences haven't signaled
PRODUCT_PROPERTY_OVERRIDES += \
debug.sf.latch_unsignaled=1
# Disable buffer age (b/74534157)
PRODUCT_PROPERTY_OVERRIDES += \
debug.hwui.use_buffer_age=false
# Hardware User Interface parameters
PRODUCT_PROPERTY_OVERRIDES += \
ro.hwui.texture_cache_size=48 \
ro.hwui.layer_cache_size=32 \
ro.hwui.r_buffer_cache_size=4 \
ro.hwui.path_cache_size=24 \
ro.hwui.gradient_cache_size=1 \
ro.hwui.drop_shadow_cache_size=5 \
ro.hwui.texture_cache_flushrate=0.5 \
ro.hwui.text_small_cache_width=1024 \
ro.hwui.text_small_cache_height=1024 \
ro.hwui.text_large_cache_width=2048 \
ro.hwui.text_large_cache_height=1024
# 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 += \
persist.audio.fluence.voicecall=true \
persist.audio.fluence.voicecomm=true \
persist.audio.fluence.voicerec=true \
persist.audio.fluence.speaker=true \
media.aac_51_output_enabled=true \
audio.deep_buffer.media=1 \
fmas.hdph_sgain=0 \
ro.config.vc_call_vol_steps=7 \
ro.config.media_vol_steps=25
# 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-qmi-1.so \
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
# Perform color transform on the client
PRODUCT_PROPERTY_OVERRIDES += \
persist.hwc2.skip_client_color_transform=false
# Keymaster version to differentiate between legacy, v3 and v4
ifeq ($(TARGET_LEGACY_KEYMASTER),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.keymaster.version=legacy
else ifeq ($(TARGET_KEYMASTER_V4),true)
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.keymaster.version=v4
else
PRODUCT_PROPERTY_OVERRIDES += \
ro.vendor.keymaster.version=v3
endif
# Reduce cost of scrypt for FBE CE decryption
PRODUCT_PROPERTY_OVERRIDES += \
ro.crypto.scrypt_params=15:3:1