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/bluejay-kernel 18TARGET_BOARD_KERNEL_HEADERS := device/google/bluejay-kernel/kernel-headers 19 20$(call inherit-product-if-exists, vendor/google_devices/bluejay/prebuilts/device-vendor-bluejay.mk) 21$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk) 22$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk) 23$(call inherit-product-if-exists, vendor/google_devices/bluejay/proprietary/device-vendor.mk) 24$(call inherit-product-if-exists, vendor/google_devices/bluejay/proprietary/bluejay/device-vendor-bluejay.mk) 25$(call inherit-product-if-exists, vendor/google_devices/bluejay/proprietary/WallpapersBluejay.mk) 26 27GOODIX_CONFIG_BUILD_VERSION := g7_trusty 28DEVICE_PACKAGE_OVERLAYS += device/google/bluejay/bluejay/overlay 29 30include device/google/gs101/fingerprint/extension/fingerprint.extension.mk 31include device/google/bluejay-sepolicy/bluejay-sepolicy.mk 32include device/google/bluejay/audio/bluejay/audio-tables.mk 33include device/google/gs101/device-shipping-common.mk 34include device/google/gs101/fingerprint/udfps_common.mk 35include device/google/gs101/telephony/pktrouter.mk 36include device/google/bluejay/vibrator/cs40l26/device.mk 37include device/google/gs101/bluetooth/bluetooth.mk 38 39ifeq ($(filter factory_bluejay, $(TARGET_PRODUCT)),) 40include device/google/gs101/fingerprint/udfps_shipping.mk 41else 42include device/google/gs101/fingerprint/udfps_factory.mk 43endif 44 45# go/lyric-soong-variables 46$(call soong_config_set,lyric,camera_hardware,bluejay) 47$(call soong_config_set,lyric,tuning_product,bluejay) 48$(call soong_config_set,google3a_config,target_device,bluejay) 49 50# Init files 51PRODUCT_COPY_FILES += \ 52 device/google/bluejay/conf/init.blueport.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.blueport.rc \ 53 device/google/bluejay/conf/init.bluejay.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.bluejay.rc 54 55# Recovery files 56PRODUCT_COPY_FILES += \ 57 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.bluejay.rc 58 59# insmod files 60PRODUCT_COPY_FILES += \ 61 device/google/bluejay/init.insmod.bluejay.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.bluejay.cfg 62 63# Thermal Config 64PRODUCT_COPY_FILES += \ 65 device/google/bluejay/thermal_info_config_bluejay.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ 66 device/google/bluejay/thermal_info_config_charge_bluejay.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json 67 68# Power HAL config 69PRODUCT_COPY_FILES += \ 70 device/google/bluejay/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 71 72# Camera 73PRODUCT_COPY_FILES += \ 74 device/google/bluejay/media_profiles_bluejay.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml 75 76PRODUCT_PROPERTY_OVERRIDES += \ 77 persist.vendor.camera.extended_launch_boost=1 \ 78 persist.vendor.camera.raise_buf_allocation_priority=1 \ 79 persist.vendor.camera.fixed_fps_range_boost=1 80 81# Display Config 82PRODUCT_COPY_FILES += \ 83 device/google/bluejay/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb \ 84 device/google/bluejay/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb 85 86# Media Performance Class 12 87PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31 88 89# NFC 90PRODUCT_COPY_FILES += \ 91 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 92 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 93 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 94 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ 95 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ 96 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ 97 device/google/bluejay/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ 98 device/google/bluejay/nfc/libnfc-hal-st-GB17L.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st-GB17L.conf \ 99 device/google/bluejay/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf 100 101PRODUCT_PACKAGES += \ 102 NfcNci \ 103 Tag \ 104 android.hardware.nfc-service.st 105 106# SecureElement 107PRODUCT_PACKAGES += \ 108 android.hardware.secure_element@1.2-service-gto 109 110PRODUCT_COPY_FILES += \ 111 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ 112 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ 113 device/google/bluejay/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf 114 115DEVICE_MANIFEST_FILE += \ 116 device/google/bluejay/nfc/manifest_se_bluejay.xml 117 118# PowerStats HAL 119PRODUCT_SOONG_NAMESPACES += \ 120 device/google/bluejay/powerstats/bluejay \ 121 device/google/bluejay 122 123# Increment the SVN for any official public releases 124PRODUCT_VENDOR_PROPERTIES += \ 125 ro.vendor.build.svn=39 126 127# DCK properties based on target 128PRODUCT_PROPERTY_OVERRIDES += \ 129 ro.gms.dck.eligible_wcc=2 130 131# Trusty liboemcrypto.so 132PRODUCT_SOONG_NAMESPACES += vendor/google_devices/bluejay/prebuilts 133 134# Display LBE 135PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 136 137# Bluetooth Hal Extension test tools 138PRODUCT_PACKAGES_DEBUG += \ 139 sar_test \ 140 hci_inject 141 142# Config of primary display frames to reach LHBM peak brightness 143PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.primarydisplay.lhbm.frames_to_reach_peak_brightness=2 144 145# Bluetooth Tx power caps for bluejay 146PRODUCT_COPY_FILES += \ 147 $(LOCAL_PATH)/bluetooth_power_limits.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ 148 $(LOCAL_PATH)/bluetooth_power_limits_GB17L_JP.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \ 149 $(LOCAL_PATH)/bluetooth_power_limits_GX7AS_CA.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_CA.csv \ 150 $(LOCAL_PATH)/bluetooth_power_limits_GB62Z_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB62Z_US.csv \ 151 $(LOCAL_PATH)/bluetooth_power_limits_GX7AS_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GX7AS_US.csv \ 152 $(LOCAL_PATH)/bluetooth_power_limits_G1AZG_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G1AZG_EU.csv \ 153 $(LOCAL_PATH)/bluetooth_power_limits_GB62Z_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB62Z_EU.csv 154 155# Bluetooth 156PRODUCT_PRODUCT_PROPERTIES += \ 157 persist.bluetooth.a2dp_aac.vbr_supported=true \ 158 persist.bluetooth.firmware.selection=BCM.hcd 159 160# Bluetooth HAL 161PRODUCT_PACKAGES += \ 162 bt_vendor.conf 163 164# Set zram size 165PRODUCT_VENDOR_PROPERTIES += \ 166 vendor.zram.size=3g 167 168# Enable camera 1080P 60FPS binning mode 169PRODUCT_VENDOR_PROPERTIES += \ 170 persist.vendor.camera.1080P_60fps_binning=true 171 172# Enable camera exif model/make reporting 173PRODUCT_VENDOR_PROPERTIES += \ 174 persist.vendor.camera.exif_reveal_make_model=true 175 176# Disable rear light sensor probing explicitly 177PRODUCT_VENDOR_PROPERTIES += \ 178 persist.vendor.camera.rls_supported=false 179 180# Fingerprint antispoof property 181PRODUCT_PRODUCT_PROPERTIES +=\ 182 persist.vendor.fingerprint.disable.fake.override=none 183 184# Fingerprint als feed forward 185PRODUCT_VENDOR_PROPERTIES += \ 186 persist.vendor.udfps.als_feed_forward_supported=true \ 187 persist.vendor.udfps.lhbm_controlled_in_hal_supported=true 188 189# Fingerprint MAX auth latency 190PRODUCT_VENDOR_PROPERTIES += \ 191 vendor.gf.debug.timer.threshold=1,400,400,400,600,600,600 192 193# Hide cutout overlays 194PRODUCT_PACKAGES += \ 195 NoCutoutOverlay \ 196 AvoidAppsInCutoutOverlay 197 198# SKU specific RROs 199PRODUCT_PACKAGES += \ 200 SettingsOverlayGB17L \ 201 SettingsOverlayG1AZG \ 202 SettingsOverlayGB62Z \ 203 SettingsOverlayGX7AS 204 205# Set support hide display cutout feature 206PRODUCT_PRODUCT_PROPERTIES += \ 207 ro.support_hide_display_cutout=true 208 209# Set support one-handed mode 210PRODUCT_PRODUCT_PROPERTIES += \ 211 ro.support_one_handed_mode=true 212 213# GPS xml 214ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 215 PRODUCT_COPY_FILES += \ 216 device/google/bluejay/gps.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml 217else 218 PRODUCT_COPY_FILES += \ 219 device/google/bluejay/gps_user.xml.b3:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml 220endif 221 222# This device is shipped with 32 (Android S V2) 223PRODUCT_SHIPPING_API_LEVEL := 32 224 225# Vibrator HAL 226PRODUCT_VENDOR_PROPERTIES += \ 227 ro.vendor.vibrator.hal.supported_primitives=243 \ 228 ro.vendor.vibrator.hal.f0.comp.enabled=0 \ 229 ro.vendor.vibrator.hal.redc.comp.enabled=0 \ 230 persist.vendor.vibrator.hal.context.enable=false \ 231 persist.vendor.vibrator.hal.context.scale=40 \ 232 persist.vendor.vibrator.hal.context.fade=true \ 233 persist.vendor.vibrator.hal.context.cooldowntime=1600 \ 234 persist.vendor.vibrator.hal.context.settlingtime=5000 235 236# Device features 237PRODUCT_COPY_FILES += \ 238 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 239 240# Keyboard bottom padding in dp for portrait mode and height ratio 241PRODUCT_PRODUCT_PROPERTIES += \ 242 ro.com.google.ime.kb_pad_port_b=6.4 \ 243 ro.com.google.ime.height_ratio=1.05 244 245# Enable adpf cpu hint session for SurfaceFlinger 246PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 247 debug.sf.enable_adpf_cpu_hint=true 248