You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

166 lines
5.4 KiB

# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Platform path
PLATFORM_COMMON_PATH := device/sony/tama
SOMC_PLATFORM := tama
SOMC_KERNEL_VERSION := 4.14
KERNEL_PATH := kernel/sony/msm-$(SOMC_KERNEL_VERSION)
$(call inherit-product, device/sony/common/common.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
SONY_ROOT := $(PLATFORM_COMMON_PATH)/rootdir
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(PLATFORM_COMMON_PATH)/overlay
# A/B support
AB_OTA_UPDATER := true
PRODUCT_SHIPPING_API_LEVEL := 26
# A/B OTA dexopt package
PRODUCT_PACKAGES += \
otapreopt_script
# A/B OTA dexopt update_engine hookup
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
# A/B related packages
PRODUCT_PACKAGES += \
update_engine \
update_engine_client \
update_engine_sideload \
update_verifier \
bootctrl.sdm845 \
bootctrl.sdm845.recovery
AB_OTA_PARTITIONS += \
boot \
dtbo \
system \
vendor
# Treble
# Include vndk/vndk-sp/ll-ndk modules
PRODUCT_PACKAGES += \
vndk_package
# Device Specific Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.gyroscope.xml \
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml \
frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \
frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml
# Audio
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
$(SONY_ROOT)/vendor/etc/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
$(SONY_ROOT)/vendor/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml
# Media
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
$(SONY_ROOT)/vendor/etc/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(SONY_ROOT)/vendor/etc/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
# Qualcom WiFi Overlay
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
$(SONY_ROOT)/vendor/etc/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
# Qualcom WiFi Configuration
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini
# NFC Configuration
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf
# Touch IDC
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/usr/idc/clearpad.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/clearpad.idc \
$(SONY_ROOT)/vendor/usr/idc/synaptics_tcm_touch.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/synaptics_tcm_touch.idc
# Keylayout
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/usr/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl
# MSM IRQ Balancer configuration file
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/msm_irqbalance.conf:$(TARGET_COPY_OUT_VENDOR)/etc/msm_irqbalance.conf
# RQBalance-PowerHAL configuration
PRODUCT_COPY_FILES += \
$(SONY_ROOT)/vendor/etc/rqbalance_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/rqbalance_config.xml
# Platform specific init
PRODUCT_PACKAGES += \
init.tama \
init.tama.pwr \
ueventd
# Audio
PRODUCT_PACKAGES += \
sound_trigger.primary.sdm845 \
audio.primary.sdm845
# GFX
PRODUCT_PACKAGES += \
copybit.sdm845 \
gralloc.sdm845 \
hwcomposer.sdm845 \
memtrack.sdm845
# GPS
PRODUCT_PACKAGES += \
gps.sdm845
# CAMERA
TARGET_USES_64BIT_CAMERA := true
PRODUCT_PACKAGES += \
camera.sdm845
# Look for camera.qcom.so instead of camera.$(BOARD_TARGET_PLATFORM).so
PRODUCT_PROPERTY_OVERRIDES += \
ro.hardware.camera=qcom
# QCOM Bluetooth
PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0-impl-qti \
android.hardware.bluetooth@1.0-service-qti
PRODUCT_PROPERTY_OVERRIDES += \
vendor.qcom.bluetooth.soc=cherokee
# Fluence
PRODUCT_PROPERTY_OVERRIDES += \
ro.qc.sdk.audio.fluencetype=fluence
# USB controller setup
PRODUCT_PROPERTY_OVERRIDES += \
sys.usb.controller=a600000.dwc3 \
sys.usb.rndis.func.name=gsi
#WiFi MAC address path
PRODUCT_PROPERTY_OVERRIDES += \
ro.wifi.addr_path=/data/vendor/wifi/wlan_mac.bin