1# 2# Copyright (C) 2020 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/raviole-kernel 18TARGET_BOARD_KERNEL_HEADERS := device/google/raviole-kernel/kernel-headers 19 20$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-oriole.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/oriole/proprietary/device-vendor.mk) 24$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/oriole/device-vendor-oriole.mk) 25$(call inherit-product-if-exists, vendor/google/camera/devices/raviole/oriole/device-vendor.mk) 26$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/WallpapersOriole.mk) 27 28GOODIX_CONFIG_BUILD_VERSION := g6_trusty 29DEVICE_PACKAGE_OVERLAYS += device/google/raviole/oriole/overlay 30 31include device/google/raviole/audio/oriole/audio-tables.mk 32include device/google/gs101/device-shipping-common.mk 33include device/google/gs101/fingerprint/udfps_common.mk 34include device/google/gs101/telephony/pktrouter.mk 35include hardware/google/pixel/vibrator/cs40l25/device.mk 36include device/google/gs101/bluetooth/bluetooth.mk 37 38ifeq ($(filter factory_oriole, $(TARGET_PRODUCT)),) 39include device/google/gs101/fingerprint/udfps_shipping.mk 40else 41include device/google/gs101/fingerprint/udfps_factory.mk 42endif 43 44# go/lyric-soong-variables 45$(call soong_config_set,lyric,camera_hardware,oriole) 46$(call soong_config_set,lyric,tuning_product,oriole) 47$(call soong_config_set,google3a_config,target_device,oriole) 48 49# Init files 50PRODUCT_COPY_FILES += \ 51 device/google/raviole/conf/init.raviole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.raviole.rc \ 52 device/google/raviole/conf/init.oriole.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.oriole.rc 53 54# Recovery files 55PRODUCT_COPY_FILES += \ 56 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.oriole.rc 57 58# insmod files 59PRODUCT_COPY_FILES += \ 60 device/google/raviole/init.insmod.oriole.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.oriole.cfg 61 62# Thermal Config 63PRODUCT_COPY_FILES += \ 64 device/google/raviole/thermal_info_config_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json \ 65 device/google/raviole/thermal_info_config_charge_oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_charge.json \ 66 device/google/raviole/thermal_info_config_oriole_WHI_A.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config_WHI_A.json 67 68# Power HAL config 69PRODUCT_COPY_FILES += \ 70 device/google/raviole/powerhint-oriole.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 71 72# Bluetooth 73PRODUCT_PRODUCT_PROPERTIES += \ 74 persist.bluetooth.a2dp_aac.vbr_supported=true \ 75 persist.bluetooth.firmware.selection=BCM.hcd 76 77# Bluetooth Tx power caps for oriole 78PRODUCT_COPY_FILES += \ 79 $(LOCAL_PATH)/bluetooth_power_limits_oriole.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits.csv \ 80 $(LOCAL_PATH)/bluetooth_power_limits_oriole_jp.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_JP.csv \ 81 $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_US.csv \ 82 $(LOCAL_PATH)/bluetooth_power_limits_GB7N6_US.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_US.csv \ 83 $(LOCAL_PATH)/bluetooth_power_limits_G9S9B_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_G9S9B_EU.csv \ 84 $(LOCAL_PATH)/bluetooth_power_limits_GB7N6_EU.csv:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_power_limits_GB7N6_EU.csv 85 86 87# Bluetooth Hal Extension test tools 88PRODUCT_PACKAGES_DEBUG += \ 89 sar_test \ 90 hci_inject 91 92# WirelessCharger 93DEVICE_PRODUCT_COMPATIBILITY_MATRIX_FILE += device/google/gs101/device_framework_matrix_product_wireless.xml 94 95# MIPI Coex Configs 96PRODUCT_COPY_FILES += \ 97 device/google/raviole/radio/oriole_display_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/display_primary_mipi_coex_table.csv \ 98 device/google/raviole/radio/oriole_camera_front_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_front_mipi_coex_table.csv \ 99 device/google/raviole/radio/oriole_camera_rear_wide_mipi_coex_table.csv:$(TARGET_COPY_OUT_VENDOR)/etc/modem/camera_rear_wide_mipi_coex_table.csv 100 101# Camera 102PRODUCT_COPY_FILES += \ 103 device/google/raviole/media_profiles_oriole.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml 104 105PRODUCT_PROPERTY_OVERRIDES += \ 106 persist.vendor.camera.fixed_fps_range_boost=1 107 108# Display Config 109PRODUCT_COPY_FILES += \ 110 device/google/raviole/oriole/display_golden_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_golden_cal0.pb \ 111 device/google/raviole/oriole/display_colordata_dev_cal0.pb:$(TARGET_COPY_OUT_VENDOR)/etc/display_colordata_dev_cal0.pb 112 113# NFC 114PRODUCT_COPY_FILES += \ 115 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 116 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 117 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 118 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ 119 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ 120 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ 121 device/google/raviole/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ 122 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf 123 124PRODUCT_PACKAGES += \ 125 NfcNci \ 126 Tag \ 127 android.hardware.nfc-service.st 128 129# SecureElement 130PRODUCT_PACKAGES += \ 131 android.hardware.secure_element@1.2-service-gto \ 132 android.hardware.secure_element@1.2-service-gto-ese2 133 134PRODUCT_COPY_FILES += \ 135 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ 136 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ 137 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ 138 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf 139 140DEVICE_MANIFEST_FILE += \ 141 device/google/raviole/nfc/manifest_se.xml 142 143# Vibrator HAL 144PRODUCT_PRODUCT_PROPERTIES +=\ 145 ro.vendor.vibrator.hal.long.frequency.shift=15 \ 146 ro.vendor.vibrator.hal.device.mass=0.205 \ 147 ro.vendor.vibrator.hal.loc.coeff=2.25 148 149ACTUATOR_MODEL := luxshare_ict_081545 150 151# PowerStats HAL 152PRODUCT_SOONG_NAMESPACES += \ 153 device/google/raviole/powerstats/oriole \ 154 device/google/raviole 155 156# Keyboard bottom padding in dp for portrait mode 157PRODUCT_PRODUCT_PROPERTIES += ro.com.google.ime.kb_pad_port_b=10 158 159# Display 160PRODUCT_DEFAULT_PROPERTY_OVERRIDES += vendor.display.lbe.supported=1 161PRODUCT_DEFAULT_PROPERTY_OVERRIDES += ro.surface_flinger.set_idle_timer_ms=1500 162 163# Media Performance Class 12 164PRODUCT_PROPERTY_OVERRIDES += ro.odm.build.media_performance_class=31 165 166# userdebug specific 167ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 168 PRODUCT_COPY_FILES += \ 169 device/google/gs101/init.hardware.wlc.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.wlc.rc 170endif 171 172# Increment the SVN for any official public releases 173PRODUCT_VENDOR_PROPERTIES += \ 174 ro.vendor.build.svn=60 175 176# Set support hide display cutout feature 177PRODUCT_PRODUCT_PROPERTIES += \ 178 ro.support_hide_display_cutout=true 179 180# Hide cutout overlays 181PRODUCT_PACKAGES += \ 182 NoCutoutOverlay \ 183 AvoidAppsInCutoutOverlay 184 185# SKU specific RROs 186PRODUCT_PACKAGES += \ 187 SettingsOverlayGR1YH \ 188 SettingsOverlayGB7N6 \ 189 SettingsOverlayG9S9B 190 191# Fingerprint antispoof property 192PRODUCT_PRODUCT_PROPERTIES +=\ 193 persist.vendor.fingerprint.disable.fake.override=none 194 195# Fingerprint HAL 196PRODUCT_VENDOR_PROPERTIES += \ 197 persist.vendor.udfps.lhbm_controlled_in_hal_supported=true \ 198 persist.vendor.udfps.als_feed_forward_supported=true 199 200 201# DCK properties based on target 202PRODUCT_PROPERTY_OVERRIDES += \ 203 ro.gms.dck.eligible_wcc=2 204 205# Trusty liboemcrypto.so 206PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts 207 208# Set support one-handed mode 209PRODUCT_PRODUCT_PROPERTIES += \ 210 ro.support_one_handed_mode=true 211 212# Enable camera exif model/make reporting 213PRODUCT_VENDOR_PROPERTIES += \ 214 persist.vendor.camera.exif_reveal_make_model=true 215 216# Bluetooth HAL 217PRODUCT_PACKAGES += \ 218 bt_vendor.conf 219PRODUCT_COPY_FILES += \ 220 device/google/raviole/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf 221 222# tetheroffload HAL 223PRODUCT_PACKAGES += \ 224 vendor.samsung_slsi.hardware.tetheroffload@1.1-service 225 226# Override default distortion output gain according to UX experiments 227PRODUCT_PRODUCT_PROPERTIES += \ 228 vendor.audio.hapticgenerator.distortion.output.gain=0.5 229 230# Set zram size 231PRODUCT_VENDOR_PROPERTIES += \ 232 vendor.zram.size=3g 233 234# This device is shipped with 31 (Android S) 235PRODUCT_SHIPPING_API_LEVEL := 31 236 237# userdebug specific 238ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 239# Bluetooth LE Audio Hardware offload 240PRODUCT_PRODUCT_PROPERTIES += \ 241 ro.bluetooth.leaudio_offload.supported=true \ 242 persist.bluetooth.leaudio_offload.disabled=true \ 243 persist.bluetooth.le_audio_test=false 244endif 245 246# declare use of spatial audio 247PRODUCT_PROPERTY_OVERRIDES += \ 248 ro.audio.spatializer_enabled=true 249 250# optimize spatializer effect 251PRODUCT_PROPERTY_OVERRIDES += \ 252 audio.spatializer.effect.util_clamp_min=300 253 254PRODUCT_PACKAGES += \ 255 libspatialaudio 256 257# Device features 258PRODUCT_COPY_FILES += \ 259 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 260 261# Dolby integration 262-include vendor/dolby/ds/dolby-buildspec.mk 263$(call inherit-product-if-exists, vendor/dolby/ds/dolby-product.mk) 264# overwrite file coming from device/google/gs101/media_codecs_bo_c2.xml 265PRODUCT_COPY_FILES := \ 266 device/google/raviole/media_codecs_dolby_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ 267 $(PRODUCT_COPY_FILES) 268 269PRODUCT_RESTRICT_VENDOR_FILES := false 270 271# Enable adpf cpu hint session for SurfaceFlinger 272PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ 273 debug.sf.enable_adpf_cpu_hint=true 274 275# Bluetooth OPUS codec 276PRODUCT_PRODUCT_PROPERTIES += \ 277 persist.bluetooth.opus.enabled=true 278