device-lynx.mk 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. $(call inherit-product-if-exists, vendor/google_devices/lynx/proprietary/WallpapersLynx.mk)
  24. DEVICE_PACKAGE_OVERLAYS += device/google/lynx/lynx/overlay
  25. include device/google/lynx/audio/lynx/audio-tables.mk
  26. include device/google/gs201/device-shipping-common.mk
  27. include device/google/lynx/vibrator/cs40l26/device.mk
  28. # go/lyric-soong-variables
  29. $(call soong_config_set,lyric,camera_hardware,lynx)
  30. $(call soong_config_set,lyric,tuning_product,lynx)
  31. $(call soong_config_set,google3a_config,target_device,lynx)
  32. # Init files
  33. PRODUCT_COPY_FILES += \
  34. device/google/lynx/conf/init.lynx.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.lynx.rc
  35. # Recovery files
  36. PRODUCT_COPY_FILES += \
  37. device/google/lynx/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.lynx.rc
  38. # insmod files
  39. PRODUCT_COPY_FILES += \
  40. device/google/lynx/init.insmod.lynx.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.lynx.cfg
  41. # Camera
  42. PRODUCT_COPY_FILES += \
  43. device/google/lynx/media_profiles_lynx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
  44. # Media Performance Class 13
  45. PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=33
  46. # Display Config
  47. PRODUCT_COPY_FILES += \
  48. device/google/lynx/lynx/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
  49. # Display
  50. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
  51. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
  52. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.ignore_hdr_camera_layers=true
  53. #config of primary display frames to reach LHBM peak brightness
  54. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.primarydisplay.lhbm.frames_to_reach_peak_brightness=2
  55. # NFC
  56. PRODUCT_COPY_FILES += \
  57. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  58. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  59. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  60. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
  61. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  62. device/google/lynx/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
  63. device/google/lynx/nfc/libnfc-nci-lynx.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
  64. PRODUCT_PACKAGES += \
  65. NfcNci \
  66. Tag \
  67. android.hardware.nfc-service.st
  68. # SecureElement
  69. PRODUCT_PACKAGES += \
  70. [email protected] \
  71. [email protected]
  72. PRODUCT_COPY_FILES += \
  73. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  74. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
  75. device/google/lynx/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
  76. device/google/lynx/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
  77. DEVICE_MANIFEST_FILE += \
  78. device/google/lynx/nfc/manifest_se.xml
  79. # Thermal Config
  80. PRODUCT_COPY_FILES += \
  81. device/google/lynx/thermal_info_config_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \
  82. device/google/lynx/thermal_info_config_charge_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json
  83. # Power HAL config
  84. PRODUCT_COPY_FILES += \
  85. device/google/lynx/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
  86. # PowerStats HAL
  87. PRODUCT_SOONG_NAMESPACES += \
  88. device/google/lynx/powerstats \
  89. device/google/lynx
  90. # Bluetooth HAL and Pixel extension
  91. include device/google/lynx/bluetooth/qti_default.mk
  92. # Keymaster HAL
  93. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  94. # Gatekeeper HAL
  95. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  96. # Gatekeeper
  97. # PRODUCT_PACKAGES += \
  98. # [email protected]
  99. # Keymint replaces Keymaster
  100. # PRODUCT_PACKAGES += \
  101. # android.hardware.security.keymint-service
  102. # Keymaster
  103. #PRODUCT_PACKAGES += \
  104. # [email protected] \
  105. # [email protected]
  106. #PRODUCT_PACKAGES += [email protected]
  107. #PRODUCT_PACKAGES += [email protected]
  108. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  109. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  110. # PRODUCT_PROPERTY_OVERRIDES += \
  111. # ro.hardware.keystore_desede=true \
  112. # ro.hardware.keystore=software \
  113. # ro.hardware.gatekeeper=software
  114. # Fingerprint HAL
  115. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  116. include device/google/gs101/fingerprint/udfps_common.mk
  117. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  118. include device/google/gs101/fingerprint/udfps_shipping.mk
  119. else
  120. include device/google/gs101/fingerprint/udfps_factory.mk
  121. endif
  122. # Vibrator HAL
  123. PRODUCT_VENDOR_PROPERTIES += \
  124. ro.vendor.vibrator.hal.supported_primitives=243 \
  125. ro.vendor.vibrator.hal.f0.comp.enabled=1 \
  126. ro.vendor.vibrator.hal.redc.comp.enabled=0 \
  127. persist.vendor.vibrator.hal.context.enable=false \
  128. persist.vendor.vibrator.hal.context.scale=40 \
  129. persist.vendor.vibrator.hal.context.fade=true \
  130. persist.vendor.vibrator.hal.context.cooldowntime=1600 \
  131. persist.vendor.vibrator.hal.context.settlingtime=5000
  132. # Trusty liboemcrypto.so
  133. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts
  134. # GPS xml
  135. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  136. PRODUCT_COPY_FILES += \
  137. device/google/lynx/location/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
  138. device/google/lynx/location/lhd.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
  139. device/google/lynx/location/scd.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
  140. else
  141. PRODUCT_COPY_FILES += \
  142. device/google/lynx/location/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml \
  143. device/google/lynx/location/lhd_user.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/lhd.conf \
  144. device/google/lynx/location/scd_user.conf.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/scd.conf
  145. endif
  146. # DCK properties based on target
  147. PRODUCT_PROPERTY_OVERRIDES += \
  148. ro.gms.dck.eligible_wcc=2
  149. # WIFI COEX
  150. PRODUCT_COPY_FILES += \
  151. device/google/lynx/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml
  152. # WiFi Overlay
  153. PRODUCT_PACKAGES += \
  154. WifiOverlay2023Mid
  155. # Wifi Aware Interface
  156. PRODUCT_PROPERTY_OVERRIDES += \
  157. wifi.aware.interface=wifi-aware0
  158. # Set zram size
  159. PRODUCT_VENDOR_PROPERTIES += \
  160. vendor.zram.size=3g
  161. # Set support hide display cutout feature
  162. PRODUCT_PRODUCT_PROPERTIES += \
  163. ro.support_hide_display_cutout=true
  164. # Set support One-handed mode
  165. PRODUCT_PRODUCT_PROPERTIES += \
  166. ro.support_one_handed_mode=true
  167. # Fingerprint als feed forward
  168. PRODUCT_VENDOR_PROPERTIES += \
  169. persist.vendor.udfps.als_feed_forward_supported=true \
  170. persist.vendor.udfps.lhbm_controlled_in_hal_supported=true
  171. # Hide cutout overlays
  172. PRODUCT_PACKAGES += \
  173. NoCutoutOverlay \
  174. AvoidAppsInCutoutOverlay
  175. # MIPI Coex Configs
  176. PRODUCT_COPY_FILES += \
  177. device/google/lynx/lynx/radio/lynx_display_primary_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv
  178. # Camera
  179. PRODUCT_PROPERTY_OVERRIDES += \
  180. persist.vendor.camera.extended_launch_boost=1 \
  181. persist.vendor.camera.optimized_tnr_freq=1 \
  182. persist.vendor.camera.raise_buf_allocation_priority=1
  183. # Enable camera 1080P 60FPS binning mode
  184. PRODUCT_VENDOR_PROPERTIES += \
  185. persist.vendor.camera.1080P_60fps_binning=true
  186. # Increase thread priority for nodes stop
  187. PRODUCT_VENDOR_PROPERTIES += \
  188. persist.vendor.camera.increase_thread_priority_nodes_stop=true
  189. # OIS with system imu
  190. PRODUCT_VENDOR_PROPERTIES += \
  191. persist.vendor.camera.ois_with_system_imu=true
  192. # Enable camera exif model/make reporting
  193. PRODUCT_VENDOR_PROPERTIES += \
  194. persist.vendor.camera.exif_reveal_make_model=true
  195. # Use GmsCorePrebuilt y2022w28
  196. USE_GMSCORE_PREBUILT_Y2022W28 := true
  197. # Device features
  198. PRODUCT_COPY_FILES += \
  199. frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
  200. # Enable adpf cpu hint session for SurfaceFlinger
  201. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
  202. debug.sf.enable_adpf_cpu_hint=true
  203. # The default value of this variable is false and should only be set to true when
  204. # the device allows users to enable the seamless transfer feature.
  205. PRODUCT_PRODUCT_PROPERTIES += \
  206. euicc.seamless_transfer_enabled_in_non_qs=true
  207. ##Audio Vendor property
  208. PRODUCT_PROPERTY_OVERRIDES += \
  209. persist.vendor.audio.cca.enabled=true
  210. # userdebug specific
  211. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  212. PRODUCT_COPY_FILES += \
  213. device/google/gs201/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc
  214. endif
  215. # SKU specific RROs
  216. PRODUCT_PACKAGES += \
  217. SettingsOverlayG82U8 \
  218. SettingsOverlayG0DZQ \
  219. SettingsOverlayGHL1X \
  220. SettingsOverlayGWKK3