device-lynx.mk 12 KB

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