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 17# Keeps flexibility for kasan and ufs builds 18TARGET_KERNEL_DIR ?= $(RELEASE_KERNEL_ORIOLE_DIR) 19TARGET_BOARD_KERNEL_HEADERS ?= $(RELEASE_KERNEL_ORIOLE_DIR)/kernel-headers 20 21$(call inherit-product-if-exists, vendor/google_devices/raviole/prebuilts/device-vendor-slider.mk) 22$(call inherit-product-if-exists, vendor/google_devices/gs101/prebuilts/device-vendor.mk) 23$(call inherit-product-if-exists, vendor/google_devices/gs101/proprietary/device-vendor.mk) 24$(call inherit-product-if-exists, vendor/google_devices/raviole/proprietary/slider/device-vendor-slider.mk) 25 26DEVICE_PACKAGE_OVERLAYS += device/google/raviole/slider/overlay 27 28include device/google/gs101/device-common.mk 29include device/google/raviole/audio/slider/audio-tables.mk 30include hardware/google/pixel/vibrator/cs40l25/device.mk 31include device/google/gs-common/bcmbt/bluetooth.mk 32include device/google/gs-common/gps/brcm/cbd_gps.mk 33include device/google/gs-common/touch/stm/stm11.mk 34 35# go/lyric-soong-variables 36$(call soong_config_set,lyric,camera_hardware,slider) 37$(call soong_config_set,lyric,tuning_product,slider) 38$(call soong_config_set,google3a_config,target_device,slider) 39 40# Init files 41PRODUCT_COPY_FILES += \ 42 device/google/raviole/conf/init.slider.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.slider.rc 43 44# Recovery files 45PRODUCT_COPY_FILES += \ 46 device/google/gs101/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.slider.rc 47 48# insmod files 49PRODUCT_COPY_FILES += \ 50 device/google/raviole/init.insmod.slider.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.slider.cfg 51 52# Thermal Config 53PRODUCT_COPY_FILES += \ 54 device/google/raviole/thermal_info_config_slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json 55 56# Camera 57PRODUCT_COPY_FILES += \ 58 device/google/raviole/media_profiles_slider.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml 59 60# Bluetooth 61PRODUCT_PRODUCT_PROPERTIES += \ 62 persist.bluetooth.a2dp_aac.vbr_supported=true 63 64# Bluetooth default BDADDR for EVB only 65PRODUCT_PROPERTY_OVERRIDES += \ 66 ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55" 67 68# SecureElement 69PRODUCT_PACKAGES += \ 70 android.hardware.secure_element@1.2-service-gto 71 72PRODUCT_COPY_FILES += \ 73 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf 74 75# NFC 76PRODUCT_COPY_FILES += \ 77 frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \ 78 frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \ 79 frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \ 80 frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \ 81 frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \ 82 frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \ 83 device/google/raviole/nfc/libnfc-hal-st-disable.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \ 84 device/google/raviole/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf 85 86PRODUCT_PACKAGES += \ 87 $(RELEASE_PACKAGE_NFC_STACK) \ 88 Tag \ 89 android.hardware.nfc-service.st 90 91# SecureElement 92PRODUCT_PACKAGES += \ 93 android.hardware.secure_element@1.2-service-gto 94 95PRODUCT_COPY_FILES += \ 96 frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \ 97 frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \ 98 device/google/raviole/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \ 99 device/google/raviole/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf 100 101DEVICE_MANIFEST_FILE += \ 102 device/google/raviole/nfc/manifest_se.xml 103 104# PowerStats HAL 105PRODUCT_SOONG_NAMESPACES += device/google/raviole/powerstats/slider 106 107# Trusty liboemcrypto.so 108PRODUCT_SOONG_NAMESPACES += vendor/google_devices/raviole/prebuilts 109 110# tetheroffload HAL 111PRODUCT_PACKAGES += \ 112 vendor.samsung_slsi.hardware.tetheroffload@1.1-service 113 114# Power HAL config 115PRODUCT_COPY_FILES += \ 116 device/google/raviole/powerhint-slider.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json 117 118# This device is shipped with 31 (Android S) 119PRODUCT_SHIPPING_API_LEVEL := 31 120 121# Device features 122PRODUCT_COPY_FILES += \ 123 frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml 124 125# Location 126ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) 127 PRODUCT_COPY_FILES += \ 128 device/google/raviole/location/gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml 129else 130 PRODUCT_COPY_FILES += \ 131 device/google/raviole/location/gps_user.xml:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml 132endif 133 134# Disable AVF Remote Attestation 135PRODUCT_AVF_REMOTE_ATTESTATION_DISABLED := true 136