device-lynx.mk 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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. DEVICE_PACKAGE_OVERLAYS += device/google/lynx/lynx/overlay
  23. include device/google/lynx/audio/lynx/audio-tables.mk
  24. include device/google/gs201/device-shipping-common.mk
  25. include hardware/google/pixel/vibrator/cs40l26/device.mk
  26. $(call soong_config_set,lyric,tuning_product,cloudripper)
  27. $(call soong_config_set,google3a_config,target_device,cloudripper)
  28. # Init files
  29. PRODUCT_COPY_FILES += \
  30. device/google/lynx/conf/init.lynx.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.lynx.rc
  31. # Recovery files
  32. PRODUCT_COPY_FILES += \
  33. device/google/lynx/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.lynx.rc
  34. # insmod files
  35. PRODUCT_COPY_FILES += \
  36. device/google/lynx/init.insmod.lynx.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.lynx.cfg
  37. # Camera
  38. PRODUCT_COPY_FILES += \
  39. device/google/lynx/media_profiles_lynx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
  40. # Display Config
  41. PRODUCT_COPY_FILES += \
  42. device/google/lynx/lynx/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
  43. # NFC
  44. PRODUCT_COPY_FILES += \
  45. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  46. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  47. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  48. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
  49. frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
  50. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  51. device/google/lynx/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
  52. device/google/lynx/nfc/libnfc-nci-lynx.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
  53. PRODUCT_PACKAGES += \
  54. NfcNci \
  55. Tag \
  56. android.hardware.nfc-service.st
  57. # SecureElement
  58. PRODUCT_PACKAGES += \
  59. [email protected] \
  60. [email protected]
  61. PRODUCT_COPY_FILES += \
  62. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  63. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
  64. device/google/lynx/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
  65. device/google/lynx/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
  66. DEVICE_MANIFEST_FILE += \
  67. device/google/lynx/nfc/manifest_se.xml
  68. # Thermal Config
  69. PRODUCT_COPY_FILES += \
  70. device/google/lynx/thermal_info_config_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
  71. # Power HAL config
  72. PRODUCT_COPY_FILES += \
  73. device/google/lynx/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
  74. # PowerStats HAL
  75. PRODUCT_SOONG_NAMESPACES += device/google/lynx/powerstats
  76. # Bluetooth HAL and Pixel extension
  77. include device/google/lynx/bluetooth/qti_default.mk
  78. # Keymaster HAL
  79. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  80. # Gatekeeper HAL
  81. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  82. # Gatekeeper
  83. # PRODUCT_PACKAGES += \
  84. # [email protected]
  85. # Keymint replaces Keymaster
  86. # PRODUCT_PACKAGES += \
  87. # android.hardware.security.keymint-service
  88. # Keymaster
  89. #PRODUCT_PACKAGES += \
  90. # [email protected] \
  91. # [email protected]
  92. #PRODUCT_PACKAGES += [email protected]
  93. #PRODUCT_PACKAGES += [email protected]
  94. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  95. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  96. # PRODUCT_PROPERTY_OVERRIDES += \
  97. # ro.hardware.keystore_desede=true \
  98. # ro.hardware.keystore=software \
  99. # ro.hardware.gatekeeper=software
  100. # Fingerprint HAL
  101. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  102. include device/google/gs101/fingerprint/udfps_common.mk
  103. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  104. include device/google/gs101/fingerprint/udfps_shipping.mk
  105. else
  106. include device/google/gs101/fingerprint/udfps_factory.mk
  107. endif
  108. # Vibrator HAL
  109. PRODUCT_VENDOR_PROPERTIES += \
  110. ro.vendor.vibrator.hal.supported_primitives=243
  111. # Trusty liboemcrypto.so
  112. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts
  113. # GPS xml
  114. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  115. PRODUCT_COPY_FILES += \
  116. device/google/lynx/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  117. else
  118. PRODUCT_COPY_FILES += \
  119. device/google/lynx/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  120. endif
  121. # DCK properties based on target
  122. PRODUCT_PROPERTY_OVERRIDES += \
  123. ro.gms.dck.eligible_wcc=2
  124. # WIFI COEX
  125. PRODUCT_COPY_FILES += \
  126. device/google/lynx/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml
  127. # WiFi Overlay
  128. PRODUCT_PACKAGES += \
  129. WifiOverlay2023Mid
  130. # Wifi Aware Interface
  131. PRODUCT_PROPERTY_OVERRIDES += \
  132. wifi.aware.interface=wifi-aware0
  133. # Set zram size
  134. PRODUCT_VENDOR_PROPERTIES += \
  135. vendor.zram.size=3g
  136. # Set support hide display cutout feature
  137. PRODUCT_PRODUCT_PROPERTIES += \
  138. ro.support_hide_display_cutout=true
  139. # Hide cutout overlays
  140. PRODUCT_PACKAGES += \
  141. NoCutoutOverlay \
  142. AvoidAppsInCutoutOverlay
  143. # Camera
  144. PRODUCT_PROPERTY_OVERRIDES += \
  145. persist.vendor.camera.extended_launch_boost=1 \
  146. persist.vendor.camera.raise_buf_allocation_priority=1
  147. # Enable camera 1080P 60FPS binning mode
  148. PRODUCT_VENDOR_PROPERTIES += \
  149. persist.vendor.camera.1080P_60fps_binning=true
  150. # Limit camera 1080P 60FPS binning mode to not rear main camera
  151. PRODUCT_VENDOR_PROPERTIES += \
  152. persist.vendor.camera.1080P_60fps_binning_except_rear_main=true
  153. # Bluetooth LE Audio
  154. PRODUCT_PRODUCT_PROPERTIES += \
  155. ro.bluetooth.leaudio_switcher.supported=true \
  156. bluetooth.profile.bap.broadcast.source.enabled=true \
  157. bluetooth.profile.bap.broadcast.assist.enabled=true \
  158. bluetooth.profile.bap.unicast.client.enabled=true \
  159. bluetooth.profile.csip.set_coordinator.enabled=true \
  160. bluetooth.profile.hap.client.enabled=true \
  161. bluetooth.profile.mcp.server.enabled=true \
  162. bluetooth.profile.ccp.server.enabled=true \
  163. bluetooth.profile.vcp.controller.enabled=true