144 lines
4.2 KiB
Makefile
144 lines
4.2 KiB
Makefile
#
|
|
# SPDX-FileCopyrightText: The LineageOS Project
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Vendor blobs
|
|
$(call inherit-product, vendor/motorola/payton/payton-vendor.mk)
|
|
|
|
# A/B updater
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
RUN_POSTINSTALL_system=true \
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
|
FILESYSTEM_TYPE_system=ext4 \
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
# AAPT
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
audio.primary.sdm660 \
|
|
libqcompostprocbundle
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
$(LOCAL_PATH)/audio/audio_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info.xml \
|
|
$(LOCAL_PATH)/audio/audio_ext_spkr.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_ext_spkr.conf \
|
|
$(LOCAL_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 1920
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Boot control HAL
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.boot@1.0-impl \
|
|
android.hardware.boot@1.0-service \
|
|
android.hardware.boot@1.0-impl.recovery \
|
|
bootctrl.qcom \
|
|
bootctrl.qcom.recovery
|
|
|
|
# Dex-pre-opt exclusions
|
|
$(call add-product-dex-preopt-module-config,MotoSignatureApp,disable)
|
|
|
|
# Fingerprint
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/idc/uinput-fpc.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-fpc.idc \
|
|
$(LOCAL_PATH)/configs/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl
|
|
|
|
# FM
|
|
PRODUCT_PACKAGES += \
|
|
FM2
|
|
|
|
# Gatekeeper
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.gatekeeper@1.0-impl \
|
|
android.hardware.gatekeeper@1.0-service
|
|
|
|
# Init
|
|
PRODUCT_PACKAGES += \
|
|
init.payton.rc \
|
|
init.recovery.payton.rc
|
|
|
|
# Keymaster
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.keymaster@3.0-impl \
|
|
android.hardware.keymaster@3.0-service
|
|
|
|
# Lineage Touch HAL
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.touch@1.0-service.msm8998
|
|
|
|
# LiveDisplay
|
|
$(call soong_config_set,livedisplay_sdm,enable_dm,false)
|
|
$(call soong_config_set,livedisplay_sysfs,enable_ab,true)
|
|
$(call soong_config_set,livedisplay_sysfs,enable_se,true)
|
|
|
|
# Moto Camera 2
|
|
TARGET_MOTCAMERA2 := primary
|
|
TARGET_USES_MOTCAMERA2 := true
|
|
|
|
$(call inherit-product, vendor/motorola/MotCamera2/motcamera2.mk)
|
|
|
|
# NFC
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.nfc@1.2-service \
|
|
com.android.nfc_extras \
|
|
Tag
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
|
|
$(LOCAL_PATH)/configs/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
|
|
|
|
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/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \
|
|
|
|
# Overlay
|
|
PRODUCT_PACKAGES += \
|
|
FrameworksResDevice \
|
|
LineagePlatformDevice \
|
|
SettingsResDevice \
|
|
SettingsProviderResDevice \
|
|
SystemUIResDevice
|
|
|
|
# PocketMode
|
|
PRODUCT_PACKAGES += \
|
|
MotoPocketMode
|
|
|
|
# Sensors
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf \
|
|
$(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
|
|
|
# Shipping API
|
|
PRODUCT_SHIPPING_API_LEVEL := 25
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH)
|
|
|
|
# Thermal
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf
|
|
|
|
# Update Engine
|
|
PRODUCT_PACKAGES += \
|
|
otapreopt_script \
|
|
update_engine \
|
|
update_engine_sideload \
|
|
update_verifier
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
bootctl \
|
|
update_engine_client
|
|
|
|
# Inherit from motorola msm8998-common
|
|
TARGET_MOTO_PLATFORM := sdm660
|
|
TARGET_USES_OEM_AS_VENDOR := true
|
|
$(call inherit-product, device/motorola/msm8998-common/common.mk)
|