device-lynx.mk 11 KB

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