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 17TARGET_KERNEL_DIR ?= device/google/tangorpro-kernel 18TARGET_BOARD_KERNEL_HEADERS := device/google/tangorpro-kernel/kernel-headers 19TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_LEFT 20 21BOARD_WITHOUT_RADIO := true 22 23$(call inherit-product-if-exists, vendor/google_devices/tangorpro/prebuilts/device-vendor-tangorpro.mk) 24$(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk) 25$(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk) 26$(call inherit-product-if-exists, vendor/google_devices/tangorpro/proprietary/tangorpro/device-vendor-tangorpro.mk) 27$(call inherit-product-if-exists, vendor/google_devices/tangorpro/proprietary/WallpapersTangorpro.mk) 28$(call inherit-product-if-exists, vendor/google_devices/tangorpro/proprietary/device-vendor.mk) 29 30DEVICE_PACKAGE_OVERLAYS += device/google/tangorpro/tangorpro/overlay 31PRODUCT_SOONG_NAMESPACES += device/google/tangorpro 32PRODUCT_PACKAGES += WifiOverlayT6pro 33 34# Disable camera flash and autofocus related xml with a disable flag. 35# This flag need to be set before device/google/gs201/device.mk 36DISABLE_CAMERA_FS_AF := true 37 38# Disable baro, prox, hifi sensor related xml with a disable flag. 39DISABLE_SENSOR_BARO_PROX_HIFI := true 40 41# Identify the device type. 42# This flag need to be set before device/google/gs201/device.mk 43# to have tablet COD setting 44USE_TABLET_BT_COD := true 45 46# Disable telephony euicc related xml with a disable flag. 47# This flag need to be set before device/google/gs201/device.mk 48DISABLE_TELEPHONY_EUICC := true 49 50include device/google/tangorpro/audio/tangorpro/audio-tables.mk 51include device/google/gs201/device-shipping-common.mk 52 53# go/lyric-soong-variables 54$(call soong_config_set,lyric,camera_hardware,tangorpro) 55$(call soong_config_set,lyric,tuning_product,tangorpro) 56$(call soong_config_set,google3a_config,target_device,tangorpro) 57 58ifeq ($(filter factory_tangorpro, $(TARGET_PRODUCT)),) 59include device/google/tangorpro/uwb/uwb_calibration.mk 60endif 61 62# Preopt SystemUI 63PRODUCT_DEXPREOPT_SPEED_APPS += SystemUITitan # For tablet 64 65# Touch files 66PRODUCT_COPY_FILES += \ 67 device/google/tangorpro/NVTCapacitiveTouchScreen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/NVTCapacitiveTouchScreen.idc \ 68 device/google/tangorpro/NVTCapacitivePen.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/NVTCapacitivePen.idc 69 70# Init files 71PRODUCT_COPY_FILES += \ 72 device/google/tangorpro/conf/init.tangorpro.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.tangorpro.rc 73 74# Recovery files 75PRODUCT_COPY_FILES += \ 76 device/google/tangorpro/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.tangorpro.rc 77 78# insmod files 79PRODUCT_COPY_FILES += \ 80 device/google/tangorpro/init.insmod.tangorpro.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.tangorpro.cfg 81 82# Camera 83PRODUCT_COPY_FILES += \ 84 device/google/tangorpro/media_profiles_tangorpro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml 85 86# Thermal Config 87PRODUCT_COPY_FILES += \ 88 device/google/tangorpro/thermal_info_config_tangorpro.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ 89 device/google/tangorpro/thermal_info_config_charge_tangorpro.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \ 90 91# Power HAL config 92PRODUCT_COPY_FILES += \ 93 device/google/tangorpro/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 94 95# PowerStats HAL 96PRODUCT_SOONG_NAMESPACES += device/google/tangorpro/powerstats 97 98# Bluetooth HAL and Pixel extension 99include device/google/tangorpro/bluetooth/syna_default.mk 100 101# Keymaster HAL 102#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service 103 104# Gatekeeper HAL 105#LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= android.hardware.gatekeeper@1.0-service.software 106 107 108# Gatekeeper 109# PRODUCT_PACKAGES += \ 110# android.hardware.gatekeeper@1.0-service.software 111 112# Keymint replaces Keymaster 113# PRODUCT_PACKAGES += \ 114# android.hardware.security.keymint-service 115 116# Keymaster 117#PRODUCT_PACKAGES += \ 118# android.hardware.keymaster@4.0-impl \ 119# android.hardware.keymaster@4.0-service 120 121#PRODUCT_PACKAGES += android.hardware.keymaster@4.0-service.remote 122#PRODUCT_PACKAGES += android.hardware.keymaster@4.1-service.remote 123#LOCAL_KEYMASTER_PRODUCT_PACKAGE := android.hardware.keymaster@4.1-service 124#LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= android.hardware.keymaster@4.1-service 125 126# PRODUCT_PROPERTY_OVERRIDES += \ 127# ro.hardware.keystore_desede=true \ 128# ro.hardware.keystore=software \ 129# ro.hardware.gatekeeper=software 130 131# Fingerprint 132include device/google/gs101/fingerprint/fpc1540/sw42/fpc1540.mk 133FPC_MODULE_TYPE=1542_S 134$(call soong_config_set,fp_hal_feature,pixel_product, product_b) 135# Fingerprint config 136include device/google/tangorpro/fingerprint_config.mk 137 138# Trusty liboemcrypto.so 139PRODUCT_SOONG_NAMESPACES += vendor/google_devices/tangorpro/prebuilts 140 141# Wifi SAP Interface Name 142PRODUCT_PROPERTY_OVERRIDES += \ 143 ro.vendor.wifi.sap.interface=wlan1 144 145# Set ro.crypto.metadata_init_delete_all_keys.enabled to false to unblock boot 146PRODUCT_PROPERTY_OVERRIDES += ro.crypto.metadata_init_delete_all_keys.enabled=false 147 148# Temporary override to synchronise changes in pa/ and ag/. See b/246793311 for context. 149PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.primary_display_orientation=ORIENTATION_0 150PRODUCT_DEFAULT_PROPERTY_OVERRIDES += debug.sf.ignore_hwc_physical_display_orientation=true 151 152# Set boot animation orientation and default display rotation to be landscape since Tangor 153# natural orientation is portrait. Id at the end corresponds to the display id on the device. 154# See b/246793311 for context. 155PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.bootanim.set_orientation_4619827677550801152=ORIENTATION_270 156 157# Display white balance 158PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 159 ro.surface_flinger.display_primary_red=0.5128,0.2413,0.0000 \ 160 ro.surface_flinger.display_primary_green=0.2598,0.6764,0.0441 \ 161 ro.surface_flinger.display_primary_blue=0.2057,0.0823,1.0832 \ 162 ro.surface_flinger.display_primary_white=0.9783,1.0000,1.1273 163 164# Enable Telecom feature 165# b/227692870 166PRODUCT_COPY_FILES += \ 167 frameworks/native/data/etc/android.software.telecom.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.telecom.xml 168 169# Trusty libbinder_trusty_paidl.so and libcast_auth.so 170PRODUCT_SOONG_NAMESPACES += \ 171 vendor/google/trusty/common 172 173# Cast auth 174PRODUCT_COPY_FILES += \ 175 device/google/tangorpro/cast_auth/tangor_ica.crt:$(TARGET_COPY_OUT_VENDOR)/etc/cert-chain.crt 176 177PRODUCT_PACKAGES += \ 178 libcast_auth 179 180PRODUCT_PACKAGES_DEBUG += \ 181 test_cast_auth 182 183# USI stylus test tool 184PRODUCT_PACKAGES_DEBUG += \ 185 usi_test 186 187# Lights HAL 188PRODUCT_PACKAGES += \ 189 android.hardware.lights-service.tangorpro 190 191# LED Golden Config 192PRODUCT_COPY_FILES += \ 193 device/google/tangorpro/lights/led_golden_calibration_LUT_white_CG.txt:$(TARGET_COPY_OUT_VENDOR)/etc/led_golden_calibration_LUT_white_CG.txt \ 194 device/google/tangorpro/lights/led_golden_calibration_LUT_black_CG.txt:$(TARGET_COPY_OUT_VENDOR)/etc/led_golden_calibration_LUT_black_CG.txt 195 196# Use GmsCorePrebuilt y2023w06 197USE_GMSCORE_PREBUILT_Y2023W06 := true 198 199# Device features 200PRODUCT_COPY_FILES += \ 201 frameworks/native/data/etc/tablet_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/tablet_core_hardware.xml 202 203# Display Config 204PRODUCT_COPY_FILES += \ 205 device/google/tangorpro/tangorpro/display_golden_boe-ts110f5mlg0-rt4_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_boe-ts110f5mlg0-rt4_cal0.pb \ 206 device/google/tangorpro/tangorpro/display_golden_csot-ppa957db2d-rt4_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_csot-ppa957db2d-rt4_cal0.pb 207 208# Enable HWC dynamic recomposition for display with index 0 209PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.dynamic_recomposition=1 210 211# Display LBE 212PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 213 214# Display CABC 215PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.cabc.supported?=1 216 217# Enable adpf cpu hint session for SurfaceFlinger 218PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 219 debug.sf.enable_adpf_cpu_hint=true 220 221# Set zram size 222PRODUCT_VENDOR_PROPERTIES += \ 223 vendor.zram.size=3g 224 225# Increase thread priority for nodes stop 226PRODUCT_VENDOR_PROPERTIES += \ 227 persist.vendor.camera.increase_thread_priority_nodes_stop=true \ 228 persist.vendor.camera.debug.bypass_csi_link_crc_error=true 229 230# Trusty libbinder_trusty_paidl.so and libcast_auth.so 231PRODUCT_SOONG_NAMESPACES += \ 232 vendor/lib64 233 234# CastKey Drm plugin modules 235PRODUCT_PACKAGES += \ 236 android.hardware.drm-service.castkey 237 238# MIPI Coex Configs 239PRODUCT_COPY_FILES += \ 240 device/google/tangorpro/radio/tangor_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \ 241 device/google/tangorpro/radio/tangor_camera_rear_main_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_rear_main_mipi_coex_table.csv 242 243# Cast ssid suffix go/gna-oem-device-support 244PRODUCT_PRODUCT_PROPERTIES += ro.odm.cast.ssid_suffix=ynn 245 246# Camera 247PRODUCT_PROPERTY_OVERRIDES += \ 248 persist.vendor.camera.bypass_sensor_binning_resolution_condition=1 \ 249 persist.vendor.camera.extended_launch_boost=1 \ 250 persist.vendor.camera.raise_buf_allocation_priority=1 251 252# Enable camera exif model/make reporting 253PRODUCT_VENDOR_PROPERTIES += \ 254 persist.vendor.camera.exif_reveal_make_model=true 255 256# AudioProxy 257PRODUCT_PACKAGES += \ 258 libaudio_proxy.google \ 259 device.google.atv.audio_proxy@7.1-service 260 261DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := device/google/tangorpro/device_framework_matrix_product_tangorpro.xml 262 263PRODUCT_COPY_FILES += \ 264 device/google/tangorpro/public.libraries-google-tangorpro.txt:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/public.libraries-google.txt 265 266# SKU specific RROs 267PRODUCT_PACKAGES += \ 268 SettingsOverlayGTU8P 269