aebb9e2226
Change-Id: I0b7f476fb0ce49bb8bd958378e0e546c7c09edc8
256 lines
11 KiB
Makefile
256 lines
11 KiB
Makefile
#
|
|
# Copyright (C) 2020 The LineageOS Project
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
# Product launched with 9.0
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
|
|
|
|
# Setup dalvik vm configs
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
# Call the proprietary setup
|
|
$(call inherit-product, vendor/xiaomi/davinci/davinci-vendor.mk)
|
|
|
|
# AID/fs configs
|
|
PRODUCT_PACKAGES += \
|
|
fs_config_files
|
|
|
|
# Audio
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.audio@2.0-service \
|
|
android.hardware.audio@5.0-impl \
|
|
android.hardware.audio.effect@5.0-impl \
|
|
android.hardware.bluetooth.audio@2.0-impl \
|
|
android.hardware.soundtrigger@2.2-impl
|
|
|
|
PRODUCT_PACKAGES += \
|
|
audio.a2dp.default \
|
|
audio.bluetooth.default \
|
|
audio.usb.default \
|
|
audio.r_submix.default
|
|
|
|
PRODUCT_PACKAGES += \
|
|
libqcompostprocbundle \
|
|
libqcomvisualizer \
|
|
libqcomvoiceprocessing \
|
|
libvolumelistener
|
|
|
|
PRODUCT_PACKAGES += \
|
|
libaudio-resampler \
|
|
tinymix
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/audio/audio_configs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_configs_stock.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_configs_stock.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
|
|
$(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
|
|
$(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \
|
|
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/audio/graphite_ipc_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/graphite_ipc_platform_info.xml \
|
|
$(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
|
|
$(LOCAL_PATH)/configs/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
|
|
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
|
|
frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
|
|
frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.low_latency.xml \
|
|
frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.audio.pro.xml \
|
|
frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.midi.xml
|
|
|
|
# Bluetooth
|
|
PRODUCT_COPY_FILES += \
|
|
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.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml
|
|
|
|
# Boot animation
|
|
TARGET_SCREEN_HEIGHT := 2340
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
# Camera
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.camera.provider@2.4-impl \
|
|
android.hardware.camera.provider@2.4-service_64 \
|
|
libdng_sdk.vendor
|
|
|
|
PRODUCT_PACKAGES += \
|
|
Snap
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
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
|
|
|
|
# Device-specific settings
|
|
PRODUCT_PACKAGES += \
|
|
XiaomiParts
|
|
|
|
# Display
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.graphics.composer@2.3-service \
|
|
android.hardware.graphics.mapper@2.0-impl-qti-display \
|
|
android.hardware.memtrack@1.0-impl \
|
|
android.hardware.memtrack@1.0-service \
|
|
vendor.qti.hardware.display.allocator-service
|
|
|
|
PRODUCT_PACKAGES += \
|
|
gralloc.sm6150 \
|
|
hwcomposer.sm6150 \
|
|
memtrack.sm6150
|
|
|
|
PRODUCT_PACKAGES += \
|
|
libtinyxml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml
|
|
|
|
# Fingerprint
|
|
PRODUCT_PACKAGES += \
|
|
vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
|
|
vendor/lineage/config/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml
|
|
|
|
# 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
|
|
|
|
# IRSC
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/security/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
|
|
|
|
# Lights
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.light@2.0-service.davinci
|
|
|
|
# Media
|
|
PRODUCT_PACKAGES += \
|
|
libOmxAacEnc \
|
|
libOmxAmrEnc \
|
|
libOmxCore \
|
|
libOmxEvrcEnc \
|
|
libOmxG711Enc \
|
|
libOmxQcelp13Enc \
|
|
libOmxVdec \
|
|
libOmxVenc \
|
|
libstagefrighthw
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_vendor_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_vendor_audio.xml \
|
|
$(LOCAL_PATH)/configs/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
|
|
$(LOCAL_PATH)/configs/media/media_profiles_vendor.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_vendor.xml \
|
|
$(LOCAL_PATH)/configs/media/system_properties.xml:$(TARGET_COPY_OUT_VENDOR)/etc/system_properties.xml
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/security/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
|
|
|
|
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
|
|
|
|
# Overlay
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
$(LOCAL_PATH)/overlay \
|
|
$(LOCAL_PATH)/overlay-lineage
|
|
|
|
# Power
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.power@1.2-service-qti
|
|
|
|
# QTI
|
|
PRODUCT_COPY_FILES += \
|
|
$(LOCAL_PATH)/configs/permissions/product_privapp-permissions-qti.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/product_privapp-permissions-qti.xml \
|
|
$(LOCAL_PATH)/configs/permissions/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
|
|
|
|
# RCS
|
|
PRODUCT_PACKAGES += \
|
|
rcs_service_aidl \
|
|
rcs_service_aidl.xml \
|
|
rcs_service_api \
|
|
rcs_service_api.xml
|
|
|
|
# RIL
|
|
PRODUCT_PACKAGES += \
|
|
libjson \
|
|
libril \
|
|
librilutils
|
|
|
|
# Recovery
|
|
PRODUCT_PACKAGES += \
|
|
librecovery_updater_xiaomi
|
|
|
|
# RenderScript
|
|
PRODUCT_PACKAGES += \
|
|
android.hardware.renderscript@1.0-impl
|
|
|
|
# Screen density
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
TARGET_SCREEN_DENSITY := 440
|
|
|
|
# Soong namespaces
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
$(LOCAL_PATH) \
|
|
hardware/xiaomi
|
|
|
|
# Telephony
|
|
PRODUCT_PACKAGES += \
|
|
ims-ext-common \
|
|
ims_ext_common.xml \
|
|
qti-telephony-hidl-wrapper \
|
|
qti_telephony_hidl_wrapper.xml \
|
|
qti-telephony-utils \
|
|
qti_telephony_utils.xml \
|
|
telephony-ext
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
telephony-ext
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.ims.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.telephony.cdma.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.telephony.cdma.xml \
|
|
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml
|
|
|
|
# Touchscreen
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml
|
|
|
|
# Vulkan
|
|
PRODUCT_PACKAGES += \
|
|
libvulkan
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.compute.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.level-1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.level.xml \
|
|
frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.vulkan.version.xml
|