66cf41247b
Change-Id: I2057e44919354d4cdf172dfbc85da432b32419f0
303 lines
13 KiB
Makefile
303 lines
13 KiB
Makefile
#
|
|
# Copyright (C) 2018-2019 The LineageOS Project
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
# Inherit from those products. Most specific first.
|
|
$(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/xiaomi/sdm845-common/sdm845-common-vendor.mk)
|
|
|
|
# Overlays
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(LOCAL_PATH)/overlay \
|
|
$(LOCAL_PATH)/overlay-lineage
|
|
|
|
# Permissions
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
|
|
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
|
|
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml \
|
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
|
|
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
|
|
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
|
|
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.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.light.xml \
|
|
frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.proximity.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 \
|
|
frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
|
|
frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.gsm.xml \
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
|
|
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
|
|
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute-0.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level-0.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version-1_1.xml \
|
|
frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.aware.xml \
|
|
frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
|
|
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
|
|
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml \
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
|
|
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
|
|
|
|
# Properties
|
|
-include $(LOCAL_PATH)/common-props.mk
|
|
|
|
# AID/fs configs
|
|
PRODUCT_PACKAGES += \
|
|
fs_config_files
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.audio@2.0-impl \
|
|
android.hardware.audio@2.0-service \
|
|
android.hardware.audio@4.0-impl \
|
|
android.hardware.audio.effect@2.0-impl \
|
|
android.hardware.audio.effect@4.0-impl \
|
|
android.hardware.soundtrigger@2.1-impl \
|
|
audio.a2dp.default \
|
|
audio.r_submix.default \
|
|
audio.usb.default \
|
|
tinymix
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/audio/audio_output_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_output_policy.conf \
|
|
$(LOCAL_PATH)/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
$(LOCAL_PATH)/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
|
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
$(LOCAL_PATH)/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
|
|
$(LOCAL_PATH)/audio/listen_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/listen_platform_info.xml \
|
|
$(LOCAL_PATH)/audio/mixer_paths_tavil.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_tavil.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
|
$(TOPDIR)frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
|
|
|
# Bluetooth
|
|
PRODUCT_PACKAGES += \
|
|
libbthost_if
|
|
|
|
# Camera
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.camera.provider@2.4-impl \
|
|
android.hardware.camera.provider@2.4-service \
|
|
Snap \
|
|
vendor.qti.hardware.camera.device@1.0.vendor
|
|
|
|
# Common init scripts
|
|
PRODUCT_PACKAGES += \
|
|
init.class_main.sh \
|
|
init.msm.usb.configfs.rc \
|
|
init.qcom.early_boot.sh \
|
|
init.qcom.post_boot.sh \
|
|
init.qcom.rc \
|
|
init.qcom.sensors.sh \
|
|
init.qcom.sh \
|
|
init.qcom.usb.rc \
|
|
init.qcom.usb.sh \
|
|
init.qti.qseecomd.sh \
|
|
init.recovery.qcom.rc \
|
|
ueventd.qcom.rc
|
|
|
|
# Context Hub
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.contexthub@1.0-impl.generic \
|
|
android.hardware.contexthub@1.0-service
|
|
|
|
# Device-specific settings
|
|
PRODUCT_PACKAGES += \
|
|
XiaomiParts
|
|
|
|
# Display
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.graphics.composer@2.1-impl \
|
|
android.hardware.graphics.composer@2.1-service \
|
|
android.hardware.memtrack@1.0-impl \
|
|
android.hardware.memtrack@1.0-service \
|
|
libdrm.vendor \
|
|
libgui_vendor \
|
|
libtinyxml \
|
|
libvulkan \
|
|
vendor.display.config@1.2.vendor
|
|
|
|
# DRM
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.drm@1.0-impl \
|
|
android.hardware.drm@1.0-service \
|
|
android.hardware.drm@1.1-service.clearkey
|
|
|
|
# Fingerprint
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/fingerprint/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm845.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.biometrics.fingerprint@2.1-service.xiaomi_sdm845.rc
|
|
|
|
# Health
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.health@2.0-impl \
|
|
android.hardware.health@2.0-service
|
|
|
|
# HIDL
|
|
PRODUCT_PACKAGES += \
|
|
android.hidl.base@1.0 \
|
|
android.hidl.base@1.0_system \
|
|
android.hidl.manager@1.0 \
|
|
android.hidl.manager@1.0_system
|
|
|
|
# HotwordEnrollement app permissions
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/permissions/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml
|
|
|
|
# IFAA manager
|
|
PRODUCT_PACKAGES += \
|
|
org.ifaa.android.manager
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
org.ifaa.android.manager
|
|
|
|
# IMS
|
|
PRODUCT_PACKAGES += \
|
|
ims-ext-common
|
|
|
|
# Input
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/keylayout/sdm845-tavil-snd-card_Button_Jack.kl:system/usr/keylayout/sdm845-tavil-snd-card_Button_Jack.kl
|
|
|
|
# IPA
|
|
PRODUCT_PACKAGES += \
|
|
libnetfilter_conntrack \
|
|
libnfnetlink
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.xiaomi_sdm845
|
|
|
|
# LiveDisplay
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.livedisplay@2.0-service-sdm
|
|
|
|
# Media
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
|
$(LOCAL_PATH)/configs/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
|
$(LOCAL_PATH)/configs/media_codecs_performance_qcom.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_qcom.xml \
|
|
$(LOCAL_PATH)/configs/media_codecs_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor.xml \
|
|
$(LOCAL_PATH)/configs/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
|
|
$(LOCAL_PATH)/configs/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \
|
|
$(LOCAL_PATH)/configs/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
|
|
$(LOCAL_PATH)/configs/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
|
|
$(LOCAL_PATH)/configs/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
|
|
frameworks/av/media/libstagefright/data/media_codecs_google_video_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video_le.xml
|
|
|
|
# Native libraries whitelist
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
|
|
|
|
# Net
|
|
PRODUCT_PACKAGES += \
|
|
netutils-wrapper-1.0
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.power@1.0-impl \
|
|
android.hardware.power@1.0-service \
|
|
power.sdm845
|
|
|
|
# QTI
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/qti_whitelist.xml:system/etc/sysconfig/qti_whitelist.xml \
|
|
$(LOCAL_PATH)/permissions/privapp-permissions-qti.xml:system/etc/permissions/privapp-permissions-qti.xml
|
|
|
|
# Radio
|
|
PRODUCT_PACKAGES += \
|
|
libjson \
|
|
librmnetctl
|
|
|
|
# RCS
|
|
PRODUCT_PACKAGES += \
|
|
rcs_service_aidl \
|
|
rcs_service_aidl.xml \
|
|
rcs_service_api \
|
|
rcs_service_api.xml
|
|
|
|
# Recovery
|
|
PRODUCT_PACKAGES += \
|
|
librecovery_updater_xiaomi
|
|
|
|
# RenderScript
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.renderscript@1.0-impl
|
|
|
|
# Seccomp policy
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/seccomp/mediacodec-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
|
|
$(LOCAL_PATH)/seccomp/mediaextractor-seccomp.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy
|
|
|
|
# Sensors
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.sensors@1.0-impl \
|
|
android.hardware.sensors@1.0-service \
|
|
libsensorndkbridge
|
|
|
|
# Telephony
|
|
PRODUCT_PACKAGES += \
|
|
telephony-ext
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
telephony-ext
|
|
|
|
# TextClassifier
|
|
PRODUCT_PACKAGES += \
|
|
textclassifier.bundle1
|
|
|
|
# Thermal
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.thermal@1.0-impl \
|
|
android.hardware.thermal@1.0-service
|
|
|
|
# Trust HAL
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.trust@1.0-service
|
|
|
|
# USB
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.usb@1.0-service
|
|
|
|
# Vibrator
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.vibrator@1.0-impl \
|
|
android.hardware.vibrator@1.0-service
|
|
|
|
# VNDK-SP
|
|
PRODUCT_PACKAGES += \
|
|
vndk-sp
|
|
|
|
# VR
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.vr@1.0-impl \
|
|
android.hardware.vr@1.0-service
|
|
|
|
# WiFi
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.wifi@1.0-service
|
|
|
|
# WiFi Display
|
|
PRODUCT_PACKAGES += \
|
|
libnl
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
WfdCommon
|