mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_polaris
synced 2026-01-27 14:27:18 +00:00
90 lines
3.4 KiB
Makefile
90 lines
3.4 KiB
Makefile
#
|
|
# Copyright (C) 2018 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o.mk)
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product-if-exists, vendor/xiaomi/polaris/polaris-vendor.mk)
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 2160
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Overlays
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(LOCAL_PATH)/overlay \
|
|
$(LOCAL_PATH)/overlay-lineage
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
|
|
frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.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.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \
|
|
frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
|
|
frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml
|
|
|
|
# Properties
|
|
-include $(LOCAL_PATH)/device-props.mk
|
|
|
|
# Screen density
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
|
|
# Inherit from sdm845-common
|
|
$(call inherit-product, device/xiaomi/sdm845-common/sdm845.mk)
|
|
|
|
# Audio
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
|
|
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
$(LOCAL_PATH)/audio/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
$(LOCAL_PATH)/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \
|
|
$(LOCAL_PATH)/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml \
|
|
$(LOCAL_PATH)/audio/sound_trigger_mixer_paths_wcd9340.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths_wcd9340.xml \
|
|
$(LOCAL_PATH)/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
|
|
|
# Device fstab
|
|
PRODUCT_PACKAGES += \
|
|
fstab.qcom
|
|
|
|
# Device init scripts
|
|
PRODUCT_PACKAGES += \
|
|
init.target.rc
|
|
|
|
# Input
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/idc/uinput-fpc.idc:system/usr/idc/uinput-fpc.idc \
|
|
$(LOCAL_PATH)/idc/uinput-goodix.idc:system/usr/idc/uinput-goodix.idc
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/keylayout/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \
|
|
$(LOCAL_PATH)/keylayout/uinput-fpc.kl:system/usr/keylayout/uinput-fpc.kl \
|
|
$(LOCAL_PATH)/keylayout/uinput-goodix.kl:system/usr/keylayout/uinput-goodix.kl
|
|
|
|
# NFC
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.nfc@1.0-impl \
|
|
com.android.nfc_extras \
|
|
com.nxp.nfc.nq \
|
|
com.nxp.nfc.nq.xml \
|
|
libnqnfc-nci \
|
|
libnqp61-jcop-kit \
|
|
nfc_nci.nqx.default \
|
|
NQNfcNci \
|
|
nqnfcee_access.xml \
|
|
nqnfcse_access.xml \
|
|
Tag \
|
|
vendor.nxp.hardware.nfc@1.1-service
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf \
|
|
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
|
|
|
# Secure element
|
|
PRODUCT_PACKAGES += \
|
|
SecureElement
|