147 lines
3.5 KiB
Makefile
147 lines
3.5 KiB
Makefile
# Inherit from those products. Most specific first.
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
|
|
|
|
# Get non-open-source specific aspects
|
|
$(call inherit-product-if-exists, vendor/lenovo/kunlun2/kunlun2-vendor.mk)
|
|
|
|
# Enable updating of APEXes
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
# VNDK
|
|
PRODUCT_TARGET_VNDK_VERSION := 29
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 2244
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Device uses high-density artwork where available
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
|
|
# Overlays
|
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay
|
|
DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay-pe
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
audio.a2dp.default
|
|
|
|
# Camera
|
|
PRODUCT_PACKAGES += \
|
|
Snap
|
|
|
|
# Common init scripts
|
|
PRODUCT_PACKAGES += \
|
|
init.qcom.rc
|
|
|
|
# Device-specific settings
|
|
PRODUCT_PACKAGES += \
|
|
LenovoParts
|
|
|
|
# Dex preopt
|
|
PRODUCT_DEXPREOPT_SPEED_APPS += \
|
|
SystemUI \
|
|
NexusLauncherRelease
|
|
|
|
# Display
|
|
PRODUCT_PACKAGES += \
|
|
libvulkan \
|
|
vendor.display.config@1.0
|
|
|
|
# Fingerprint
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml
|
|
|
|
# FM
|
|
PRODUCT_PACKAGES += \
|
|
FM2 \
|
|
libqcomfm_jni \
|
|
qcom.fmradio
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
qcom.fmradio
|
|
|
|
# HIDL
|
|
PRODUCT_PACKAGES += \
|
|
android.hidl.base@1.0
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/manifest.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/vintf/manifest.xml
|
|
|
|
# IMS
|
|
PRODUCT_PACKAGES += \
|
|
ims-ext-common \
|
|
ims_ext_common.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.lenovo_kunlun2
|
|
|
|
# Net
|
|
PRODUCT_PACKAGES += \
|
|
netutils-wrapper-1.0
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.power@1.2-service-qti
|
|
|
|
# QTI Performance
|
|
PRODUCT_BOOT_JARS += \
|
|
QPerformance \
|
|
UxPerformance
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/perfconfigstore.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/perf/perfconfigstore.xml
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH)
|
|
|
|
# System properties
|
|
-include $(LOCAL_PATH)/product_prop.mk
|
|
|
|
# Sensors
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml
|
|
|
|
# Telephony
|
|
PRODUCT_PACKAGES += \
|
|
telephony-ext
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
telephony-ext
|
|
|
|
PRODUCT_PACKAGES += \
|
|
qti-telephony-hidl-wrapper \
|
|
qti_telephony_hidl_wrapper.xml \
|
|
qti-telephony-utils \
|
|
qti_telephony_utils.xml
|
|
|
|
# USB
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.usb@1.0-service.lenovo_kunlun2
|
|
|
|
# WiFi
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/wifi/WCNSS_qcom_cfg.ini
|
|
|
|
# WiFi Display
|
|
PRODUCT_PACKAGES += \
|
|
libnl
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
WfdCommon
|
|
|
|
# Wallpapers
|
|
PRODUCT_PACKAGES += \
|
|
PixelLiveWallpaperPrebuilt
|