device-lynx.mk 11 KB

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