2020-03-20 10:54:24 -04:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
#
|
2018-10-02 07:51:03 -04:00
|
|
|
|
2020-02-15 15:49:40 -05:00
|
|
|
# Product launched with 9.0
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
|
|
|
|
|
2019-12-06 17:00:16 -05:00
|
|
|
# Setup dalvik vm configs
|
|
|
|
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
|
|
|
|
|
2020-03-23 16:26:56 -04:00
|
|
|
# Call the proprietary setup
|
|
|
|
$(call inherit-product, vendor/xiaomi/davinci/davinci-vendor.mk)
|
|
|
|
|
2020-04-06 12:18:01 -04:00
|
|
|
# AID/fs configs
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
fs_config_files
|
|
|
|
|
2020-03-23 16:39:07 -04:00
|
|
|
# Boot animation
|
|
|
|
TARGET_SCREEN_HEIGHT := 2340
|
|
|
|
TARGET_SCREEN_WIDTH := 1080
|
|
|
|
|
2020-04-15 07:16:40 -04:00
|
|
|
# Camera
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.camera.provider@2.4-impl \
|
2020-04-16 05:52:10 -04:00
|
|
|
android.hardware.camera.provider@2.4-service_64 \
|
|
|
|
libdng_sdk.vendor
|
2020-04-15 07:16:40 -04:00
|
|
|
|
2020-04-03 19:07:18 -04:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
Snap
|
|
|
|
|
2020-04-19 16:34:41 -04:00
|
|
|
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
|
|
|
|
|
2017-12-07 09:15:14 -05:00
|
|
|
# HIDL
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hidl.base@1.0 \
|
2018-06-23 01:22:18 -04:00
|
|
|
android.hidl.base@1.0_system \
|
|
|
|
android.hidl.manager@1.0 \
|
|
|
|
android.hidl.manager@1.0_system
|
2017-12-07 09:15:14 -05:00
|
|
|
|
2020-04-15 05:46:57 -04:00
|
|
|
# IRSC
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/security/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
|
|
|
|
|
|
|
|
# Media
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/security/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
|
|
|
|
|
2020-03-20 18:09:34 -04:00
|
|
|
# Overlay
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
2020-04-03 13:02:17 -04:00
|
|
|
$(LOCAL_PATH)/overlay \
|
|
|
|
$(LOCAL_PATH)/overlay-lineage
|
2020-03-20 18:09:34 -04:00
|
|
|
|
2020-04-20 04:27:33 -04:00
|
|
|
# QTI
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/permissions/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml
|
|
|
|
|
2020-04-22 07:15:43 -04:00
|
|
|
# Recovery
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
librecovery_updater_xiaomi
|
|
|
|
|
2020-03-23 16:39:07 -04:00
|
|
|
# Screen density
|
|
|
|
PRODUCT_AAPT_CONFIG := normal
|
|
|
|
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
|
|
|
TARGET_SCREEN_DENSITY := 440
|
|
|
|
|
2018-10-02 07:51:03 -04:00
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
|
|
|
$(LOCAL_PATH)
|