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. $(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. # Display Config
  42. PRODUCT_COPY_FILES += \
  43. device/google/lynx/lynx/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb
  44. # Display
  45. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1
  46. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500
  47. PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.ignore_hdr_camera_layers=true
  48. # NFC
  49. PRODUCT_COPY_FILES += \
  50. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  51. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  52. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  53. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
  54. frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
  55. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  56. device/google/lynx/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
  57. device/google/lynx/nfc/libnfc-nci-lynx.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
  58. PRODUCT_PACKAGES += \
  59. NfcNci \
  60. Tag \
  61. android.hardware.nfc-service.st
  62. # SecureElement
  63. PRODUCT_PACKAGES += \
  64. [email protected] \
  65. [email protected]
  66. PRODUCT_COPY_FILES += \
  67. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  68. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
  69. device/google/lynx/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
  70. device/google/lynx/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
  71. DEVICE_MANIFEST_FILE += \
  72. device/google/lynx/nfc/manifest_se.xml
  73. # Thermal Config
  74. PRODUCT_COPY_FILES += \
  75. device/google/lynx/thermal_info_config_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
  76. # Power HAL config
  77. PRODUCT_COPY_FILES += \
  78. device/google/lynx/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
  79. # PowerStats HAL
  80. PRODUCT_SOONG_NAMESPACES += device/google/lynx/powerstats
  81. # Bluetooth HAL and Pixel extension
  82. include device/google/lynx/bluetooth/qti_default.mk
  83. # Keymaster HAL
  84. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  85. # Gatekeeper HAL
  86. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  87. # Gatekeeper
  88. # PRODUCT_PACKAGES += \
  89. # [email protected]
  90. # Keymint replaces Keymaster
  91. # PRODUCT_PACKAGES += \
  92. # android.hardware.security.keymint-service
  93. # Keymaster
  94. #PRODUCT_PACKAGES += \
  95. # [email protected] \
  96. # [email protected]
  97. #PRODUCT_PACKAGES += [email protected]
  98. #PRODUCT_PACKAGES += [email protected]
  99. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  100. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  101. # PRODUCT_PROPERTY_OVERRIDES += \
  102. # ro.hardware.keystore_desede=true \
  103. # ro.hardware.keystore=software \
  104. # ro.hardware.gatekeeper=software
  105. # Fingerprint HAL
  106. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  107. include device/google/gs101/fingerprint/udfps_common.mk
  108. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  109. include device/google/gs101/fingerprint/udfps_shipping.mk
  110. else
  111. include device/google/gs101/fingerprint/udfps_factory.mk
  112. endif
  113. # Vibrator HAL
  114. PRODUCT_VENDOR_PROPERTIES += \
  115. ro.vendor.vibrator.hal.supported_primitives=243
  116. # Trusty liboemcrypto.so
  117. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts
  118. # GPS xml
  119. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  120. PRODUCT_COPY_FILES += \
  121. device/google/lynx/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  122. else
  123. PRODUCT_COPY_FILES += \
  124. device/google/lynx/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  125. endif
  126. # DCK properties based on target
  127. PRODUCT_PROPERTY_OVERRIDES += \
  128. ro.gms.dck.eligible_wcc=2
  129. # WIFI COEX
  130. PRODUCT_COPY_FILES += \
  131. device/google/lynx/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml
  132. # WiFi Overlay
  133. PRODUCT_PACKAGES += \
  134. WifiOverlay2023Mid
  135. # Wifi Aware Interface
  136. PRODUCT_PROPERTY_OVERRIDES += \
  137. wifi.aware.interface=wifi-aware0
  138. # Set zram size
  139. PRODUCT_VENDOR_PROPERTIES += \
  140. vendor.zram.size=3g
  141. # Set support hide display cutout feature
  142. PRODUCT_PRODUCT_PROPERTIES += \
  143. ro.support_hide_display_cutout=true
  144. # Set support One-handed mode
  145. PRODUCT_PRODUCT_PROPERTIES += \
  146. ro.support_one_handed_mode=true
  147. # Hide cutout overlays
  148. PRODUCT_PACKAGES += \
  149. NoCutoutOverlay \
  150. AvoidAppsInCutoutOverlay
  151. # Camera
  152. PRODUCT_PROPERTY_OVERRIDES += \
  153. persist.vendor.camera.extended_launch_boost=1 \
  154. persist.vendor.camera.raise_buf_allocation_priority=1
  155. # Enable camera 1080P 60FPS binning mode
  156. PRODUCT_VENDOR_PROPERTIES += \
  157. persist.vendor.camera.1080P_60fps_binning=true
  158. # Limit camera 1080P 60FPS binning mode to not rear main camera
  159. PRODUCT_VENDOR_PROPERTIES += \
  160. persist.vendor.camera.1080P_60fps_binning_except_rear_main=true
  161. # Use GmsCorePrebuilt y2022w28
  162. USE_GMSCORE_PREBUILT_Y2022W28 := true