Files
android_device_Unihertz_Jelly2/deviceCommon.mk
Ihor Ivanov 889ab8118c Fix HOME button
There is no fingerprint key on Jelly2.

Signed-off-by: Ihor Ivanov <toulmee@gmail.com>
Change-Id: I5b4ccc3ae4076b802c416df8d5563771f662132f
2021-05-21 18:06:56 +03:00

159 lines
4.9 KiB
Makefile

# Copyright (C) 2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/Unihertz/Jelly2
#Include GAPPS if applicable
-include $(DEVICE_PATH)/gapps_prop.mk
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Define Dynamic Partition support
PRODUCT_TARGET_VNDK_VERSION := 29
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_BUILD_PRODUCT_IMAGE := true
# Properties
PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true
# A/B
AB_OTA_UPDATER := false
# Audio
PRODUCT_PACKAGES += \
audio.a2dp.default \
libaacwrapper
# Camera
PRODUCT_PACKAGES += \
Snap
## FMRadio
#PRODUCT_PACKAGES += \
# FMRadio \
# libfmcust
# fastbootd
PRODUCT_PACKAGES += \
fastbootd
# fstab
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/rootdir/etc/fstab.mt6771:$(TARGET_COPY_OUT_RAMDISK)/fstab.mt6771
# NFC stack (AOSP)
PRODUCT_PACKAGES += \
NfcNci
# ImsInit hack
PRODUCT_PACKAGES += \
ImsInit
# Init
PRODUCT_PACKAGES += \
init.mt6771.rc \
fstab.mt6771
# Magisk
PRODUCT_PACKAGES += \
99-magisk
PRODUCT_COPY_FILES += \
frameworks/av/services/audiopolicy/config/audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/a2dp_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_configuration_stub.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/audio_policy_configuration_stub.xml \
frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/bluetooth_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/usb_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/hearing_aid_audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/hearing_aid_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/r_submix_audio_policy_configuration.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default_volume_tables.xml
PRODUCT_PACKAGES += \
libGLES_android \
libaudioprocessing \
libaudioflinger \
libaudio-resampler \
libcameraservice \
libsuspend \
libstatssocket \
libsparse \
libdrm \
libpcap \
libprotobuf-cpp-full \
libbrotli \
libext2_blkid \
libext2_com_err \
libext2_e2p \
libext2_profile \
libext2_uuid \
libext2fs \
libmetricslogger \
com.android.nfc_extras \
android.frameworks.sensorservice@1.0 \
android.hardware.audio.common-util \
android.hardware.audio.common@2.0-util \
android.hardware.audio.common@4.0 \
android.hardware.audio.common@4.0-util \
android.hardware.audio.common@5.0-util \
android.hardware.audio.effect@2.0 \
android.hardware.audio.effect@4.0 \
android.hardware.audio.effect@5.0 \
android.hardware.audio@2.0 \
android.hardware.audio@4.0 \
android.hardware.audio@5.0 \
android.hardware.biometrics.fingerprint@2.1 \
android.hardware.health@1.0 \
android.hardware.health@2.0 \
android.hardware.nfc@1.0 \
android.hardware.nfc@1.1 \
android.hardware.nfc@1.2 \
android.hardware.thermal@1.0 \
android.hardware.radio@1.1 \
android.hardware.radio@1.2 \
android.hardware.radio@1.3 \
android.hardware.radio@1.4 \
android.hardware.vibrator@1.0 \
android.hardware.vibrator@1.3
# Additional tools
PRODUCT_HOST_PACKAGES += \
unpack_bootimg \
lpmake
# Keylayouts
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/idc/mtk-kpd.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/mtk-kpd.idc \
$(DEVICE_PATH)/keylayout/mtk-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-kpd.kl \
$(DEVICE_PATH)/keylayout/mtk-tpd-kpd.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/mtk-tpd-kpd.kl
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay \
$(DEVICE_PATH)/overlay-lineage
# Overlays -- replace official
PRODUCT_PACKAGES += \
FrameworkResOverlay
# Telephony Jars
PRODUCT_BOOT_JARS += \
mediatek-common \
mediatek-framework \
mediatek-ims-base \
mediatek-ims-common \
mediatek-telecom-common \
mediatek-telephony-base \
mediatek-telephony-common
#Include GAPPS if applicable
$(call inherit-product-if-exists, vendor/opengapps/build/opengapps-packages.mk)