You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

184 lines
5.4KB

  1. # Copyright (C) 2014 The Android Open Source Project
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. # librqbalance enablement
  15. PRODUCT_PROPERTY_OVERRIDES += \
  16. ro.vendor.extension_library=/vendor/lib/librqbalance.so
  17. # Limit dex2oat threads to improve thermals
  18. PRODUCT_PROPERTY_OVERRIDES += \
  19. dalvik.vm.dex2oat-threads=2 \
  20. dalvik.vm.image-dex2oat-threads=4
  21. # Platform specific default properties
  22. PRODUCT_PROPERTY_OVERRIDES += \
  23. persist.data.qmi.adb_logmask=0
  24. # configure adb over wifi only on the eng build
  25. ifneq (,$(filter eng, $(TARGET_BUILD_VARIANT)))
  26. PRODUCT_PROPERTY_OVERRIDES += \
  27. service.adb.tcp.port=5555
  28. endif
  29. # Common property setup DS or SS devices.
  30. ifeq ($(PRODUCT_DEVICE_DS),true)
  31. PRODUCT_PROPERTY_OVERRIDES += \
  32. persist.vendor.radio.multisim.config=dsds
  33. else
  34. PRODUCT_PROPERTY_OVERRIDES += \
  35. ro.telephony.default_network=9
  36. endif
  37. # System props for the data modules
  38. PRODUCT_PROPERTY_OVERRIDES += \
  39. ro.vendor.use_data_netmgrd=true \
  40. persist.data.netmgrd.qos.enable=true \
  41. ro.data.large_tcp_window_size=true
  42. # Enable Power save functionality for modem
  43. PRODUCT_PROPERTY_OVERRIDES += \
  44. persist.vendor.radio.add_power_save=1 \
  45. persist.vendor.radio.apm_sim_not_pwdn=1 \
  46. persist.vendor.radio.oem_socket=false
  47. # Ringer
  48. PRODUCT_PROPERTY_OVERRIDES += \
  49. ro.telephony.call_ring.multiple=false
  50. # System props for telephony System prop to turn on CdmaLTEPhone always
  51. PRODUCT_PROPERTY_OVERRIDES += \
  52. telephony.lteOnCdmaDevice=0
  53. # debug.sf.latch_unsignaled
  54. # - This causes SurfaceFlinger to latch
  55. # buffers even if their fences haven't signaled
  56. PRODUCT_PROPERTY_OVERRIDES += \
  57. debug.sf.latch_unsignaled=1
  58. # Disable buffer age (b/74534157)
  59. PRODUCT_PROPERTY_OVERRIDES += \
  60. debug.hwui.use_buffer_age=false
  61. # Hardware User Interface parameters
  62. PRODUCT_PROPERTY_OVERRIDES += \
  63. ro.hwui.texture_cache_size=48 \
  64. ro.hwui.layer_cache_size=32 \
  65. ro.hwui.r_buffer_cache_size=4 \
  66. ro.hwui.path_cache_size=24 \
  67. ro.hwui.gradient_cache_size=1 \
  68. ro.hwui.drop_shadow_cache_size=5 \
  69. ro.hwui.texture_cache_flushrate=0.5 \
  70. ro.hwui.text_small_cache_width=1024 \
  71. ro.hwui.text_small_cache_height=1024 \
  72. ro.hwui.text_large_cache_width=2048 \
  73. ro.hwui.text_large_cache_height=1024
  74. # Delay reduction
  75. PRODUCT_PROPERTY_OVERRIDES += \
  76. sdm.debug.rotator_downscale=1
  77. # DRM service
  78. PRODUCT_PROPERTY_OVERRIDES += \
  79. drm.service.enabled=true
  80. # VIDC: debug_levels 1:ERROR 2:HIGH 4:LOW 0:NOLOGS 7:AllLOGS
  81. PRODUCT_PROPERTY_OVERRIDES += \
  82. vidc.debug.level=1
  83. # Audio
  84. PRODUCT_PROPERTY_OVERRIDES += \
  85. persist.audio.fluence.voicecall=true \
  86. persist.audio.fluence.voicecomm=true \
  87. persist.audio.fluence.voicerec=true \
  88. persist.audio.fluence.speaker=true \
  89. media.aac_51_output_enabled=true \
  90. audio.deep_buffer.media=1 \
  91. fmas.hdph_sgain=0 \
  92. ro.config.vc_call_vol_steps=7 \
  93. ro.config.media_vol_steps=25
  94. # Enable stats logging in LMKD
  95. TARGET_LMKD_STATS_LOG := true
  96. PRODUCT_PROPERTY_OVERRIDES += \
  97. ro.lmk.log_stats=true
  98. # Set lmkd options
  99. PRODUCT_PROPERTY_OVERRIDES += \
  100. ro.lmk.low=1001 \
  101. ro.lmk.medium=800 \
  102. ro.lmk.critical=0 \
  103. ro.lmk.critical_upgrade=false \
  104. ro.lmk.upgrade_pressure=100 \
  105. ro.lmk.downgrade_pressure=100 \
  106. ro.lmk.kill_heaviest_task=true \
  107. ro.lmk.kill_timeout_ms=100 \
  108. ro.lmk.use_minfree_levels=true
  109. # Property to enable user to access Google WFD settings.
  110. PRODUCT_PROPERTY_OVERRIDES += \
  111. persist.debug.wfd.enable=0
  112. # Property to choose between virtual/external wfd display
  113. PRODUCT_PROPERTY_OVERRIDES += \
  114. persist.sys.wfd.virtual=0
  115. # Wi-Fi interface name
  116. PRODUCT_PROPERTY_OVERRIDES += \
  117. wifi.interface=wlan0
  118. # BT address
  119. PRODUCT_PROPERTY_OVERRIDES += \
  120. ro.vendor.bt.bdaddr_path=/data/vendor/bluetooth/bluetooth_bdaddr
  121. # BT address for devices with BCM BT
  122. PRODUCT_PROPERTY_OVERRIDES += \
  123. ro.bt.bdaddr_path=/data/vendor/bluetooth/bluetooth_bdaddr
  124. # System prop for NFC DT
  125. PRODUCT_PROPERTY_OVERRIDES += \
  126. ro.nfc.port=I2C
  127. # RILD
  128. PRODUCT_PROPERTY_OVERRIDES += \
  129. vendor.rild.libpath=/odm/lib64/libril-qc-qmi-1.so \
  130. ril.subscription.types=NV,RUIM
  131. # OpenGLES version
  132. PRODUCT_PROPERTY_OVERRIDES += \
  133. ro.opengles.version=196610
  134. # Vendor version
  135. PRODUCT_PROPERTY_OVERRIDES += \
  136. ro.odm.expect.version=$(PLATFORM_VERSION)_$(SOMC_KERNEL_VERSION)_$(SOMC_PLATFORM)_$(TARGET_VENDOR_VERSION)
  137. # Priv-app permisisons
  138. PRODUCT_PROPERTY_OVERRIDES += \
  139. ro.control_privapp_permissions=enforce
  140. # Perform color transform on the client
  141. PRODUCT_PROPERTY_OVERRIDES += \
  142. persist.hwc2.skip_client_color_transform=false
  143. # Keymaster version to differentiate between legacy, v3 and v4
  144. ifeq ($(TARGET_LEGACY_KEYMASTER),true)
  145. PRODUCT_PROPERTY_OVERRIDES += \
  146. ro.vendor.keymaster.version=legacy
  147. else ifeq ($(TARGET_KEYMASTER_V4),true)
  148. PRODUCT_PROPERTY_OVERRIDES += \
  149. ro.vendor.keymaster.version=v4
  150. else
  151. PRODUCT_PROPERTY_OVERRIDES += \
  152. ro.vendor.keymaster.version=v3
  153. endif