device-lynx.mk 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. #
  2. # Copyright (C) 2021 The Android Open-Source Project
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. #
  16. TARGET_KERNEL_DIR ?= device/google/lynx-kernel
  17. TARGET_BOARD_KERNEL_HEADERS := device/google/lynx-kernel/kernel-headers
  18. $(call inherit-product-if-exists, vendor/google_devices/lynx/prebuilts/device-vendor-lynx.mk)
  19. $(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk)
  20. $(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk)
  21. $(call inherit-product-if-exists, vendor/google_devices/lynx/proprietary/lynx/device-vendor-lynx.mk)
  22. $(call inherit-product-if-exists, vendor/google_devices/lynx/proprietary/device-vendor.mk)
  23. DEVICE_PACKAGE_OVERLAYS += device/google/lynx/lynx/overlay
  24. include device/google/lynx/audio/lynx/audio-tables.mk
  25. include device/google/gs201/device-shipping-common.mk
  26. include hardware/google/pixel/vibrator/cs40l26/device.mk
  27. $(call soong_config_set,lyric,tuning_product,lynx)
  28. $(call soong_config_set,google3a_config,target_device,lynx)
  29. # Init files
  30. PRODUCT_COPY_FILES += \
  31. device/google/lynx/conf/init.lynx.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.lynx.rc
  32. # Recovery files
  33. PRODUCT_COPY_FILES += \
  34. device/google/lynx/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.lynx.rc
  35. # insmod files
  36. PRODUCT_COPY_FILES += \
  37. device/google/lynx/init.insmod.lynx.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.lynx.cfg
  38. # Camera
  39. PRODUCT_COPY_FILES += \
  40. device/google/lynx/media_profiles_lynx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
  41. # Media Performance Class 13
  42. PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=33
  43. # Display Config
  44. PRODUCT_COPY_FILES += \
  45. device/google/lynx/lynx/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
  46. # Display
  47. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
  48. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
  49. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.ignore_hdr_camera_layers=true
  50. #config of primary display frames to reach LHBM peak brightness
  51. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.primarydisplay.lhbm.frames_to_reach_peak_brightness=2
  52. # NFC
  53. PRODUCT_COPY_FILES += \
  54. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  55. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  56. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  57. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
  58. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  59. device/google/lynx/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
  60. device/google/lynx/nfc/libnfc-nci-lynx.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
  61. PRODUCT_PACKAGES += \
  62. NfcNci \
  63. Tag \
  64. android.hardware.nfc-service.st
  65. # SecureElement
  66. PRODUCT_PACKAGES += \
  67. [email protected] \
  68. [email protected]
  69. PRODUCT_COPY_FILES += \
  70. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  71. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
  72. device/google/lynx/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
  73. device/google/lynx/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
  74. DEVICE_MANIFEST_FILE += \
  75. device/google/lynx/nfc/manifest_se.xml
  76. # Thermal Config
  77. PRODUCT_COPY_FILES += \
  78. device/google/lynx/thermal_info_config_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
  79. device/google/lynx/thermal_info_config_charge_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json
  80. # Power HAL config
  81. PRODUCT_COPY_FILES += \
  82. device/google/lynx/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
  83. # PowerStats HAL
  84. PRODUCT_SOONG_NAMESPACES += device/google/lynx/powerstats
  85. # Bluetooth HAL and Pixel extension
  86. include device/google/lynx/bluetooth/qti_default.mk
  87. # Keymaster HAL
  88. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  89. # Gatekeeper HAL
  90. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  91. # Gatekeeper
  92. # PRODUCT_PACKAGES += \
  93. # [email protected]
  94. # Keymint replaces Keymaster
  95. # PRODUCT_PACKAGES += \
  96. # android.hardware.security.keymint-service
  97. # Keymaster
  98. #PRODUCT_PACKAGES += \
  99. # [email protected] \
  100. # [email protected]
  101. #PRODUCT_PACKAGES += [email protected]
  102. #PRODUCT_PACKAGES += [email protected]
  103. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  104. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  105. # PRODUCT_PROPERTY_OVERRIDES += \
  106. # ro.hardware.keystore_desede=true \
  107. # ro.hardware.keystore=software \
  108. # ro.hardware.gatekeeper=software
  109. # Fingerprint HAL
  110. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  111. include device/google/gs101/fingerprint/udfps_common.mk
  112. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  113. include device/google/gs101/fingerprint/udfps_shipping.mk
  114. else
  115. include device/google/gs101/fingerprint/udfps_factory.mk
  116. endif
  117. # Vibrator HAL
  118. PRODUCT_VENDOR_PROPERTIES += \
  119. ro.vendor.vibrator.hal.supported_primitives=243 \
  120. ro.vendor.vibrator.hal.f0.comp.enabled=1 \
  121. ro.vendor.vibrator.hal.redc.comp.enabled=0
  122. # Trusty liboemcrypto.so
  123. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts
  124. # GPS xml
  125. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  126. PRODUCT_COPY_FILES += \
  127. device/google/lynx/location/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
  128. device/google/lynx/location/lhd.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
  129. device/google/lynx/location/scd.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
  130. else
  131. PRODUCT_COPY_FILES += \
  132. device/google/lynx/location/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
  133. device/google/lynx/location/lhd_user.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
  134. device/google/lynx/location/scd_user.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
  135. endif
  136. # DCK properties based on target
  137. PRODUCT_PROPERTY_OVERRIDES += \
  138. ro.gms.dck.eligible_wcc=2
  139. # WIFI COEX
  140. PRODUCT_COPY_FILES += \
  141. device/google/lynx/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml
  142. # WiFi Overlay
  143. PRODUCT_PACKAGES += \
  144. WifiOverlay2023Mid
  145. # Wifi Aware Interface
  146. PRODUCT_PROPERTY_OVERRIDES += \
  147. wifi.aware.interface=wifi-aware0
  148. # Set zram size
  149. PRODUCT_VENDOR_PROPERTIES += \
  150. vendor.zram.size=3g
  151. # Set support hide display cutout feature
  152. PRODUCT_PRODUCT_PROPERTIES += \
  153. ro.support_hide_display_cutout=true
  154. # Set support One-handed mode
  155. PRODUCT_PRODUCT_PROPERTIES += \
  156. ro.support_one_handed_mode=true
  157. # Fingerprint als feed forward
  158. PRODUCT_VENDOR_PROPERTIES += \
  159. persist.vendor.udfps.als_feed_forward_supported=true \
  160. persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
  161. # Hide cutout overlays
  162. PRODUCT_PACKAGES += \
  163. NoCutoutOverlay \
  164. AvoidAppsInCutoutOverlay
  165. # MIPI Coex Configs
  166. PRODUCT_COPY_FILES += \
  167. device/google/lynx/lynx/radio/lynx_display_primary_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv
  168. # Camera
  169. PRODUCT_PROPERTY_OVERRIDES += \
  170. persist.vendor.camera.extended_launch_boost=1 \
  171. persist.vendor.camera.raise_buf_allocation_priority=1
  172. # Enable camera 1080P 60FPS binning mode
  173. PRODUCT_VENDOR_PROPERTIES += \
  174. persist.vendor.camera.1080P_60fps_binning=true
  175. # Limit camera 1080P 60FPS binning mode to not rear main camera
  176. PRODUCT_VENDOR_PROPERTIES += \
  177. persist.vendor.camera.1080P_60fps_binning_except_rear_main=true
  178. # OIS with system imu
  179. PRODUCT_VENDOR_PROPERTIES += \
  180. persist.vendor.camera.ois_with_system_imu=true
  181. # Use GmsCorePrebuilt y2022w28
  182. USE_GMSCORE_PREBUILT_Y2022W28 := true
  183. # Device features
  184. PRODUCT_COPY_FILES += \
  185. frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
  186. # Enable adpf cpu hint session for SurfaceFlinger
  187. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  188. debug.sf.enable_adpf_cpu_hint=true
  189. # userdebug specific
  190. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  191. PRODUCT_COPY_FILES += \
  192. device/google/gs201/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
  193. endif