2018-07-01 07:20:03 -04:00
|
|
|
#
|
|
|
|
# Copyright (C) 2018 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.
|
|
|
|
#
|
|
|
|
|
2019-09-12 17:47:56 -04:00
|
|
|
# Enable updating of APEXes
|
|
|
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
|
|
|
|
|
2018-07-01 07:20:03 -04:00
|
|
|
# Get non-open-source specific aspects
|
2020-06-22 04:35:37 -04:00
|
|
|
$(call inherit-product, vendor/oneplus/sm8250-common/sm8250-common-vendor.mk)
|
2018-07-01 07:20:03 -04:00
|
|
|
|
|
|
|
# Overlays
|
|
|
|
DEVICE_PACKAGE_OVERLAYS += \
|
|
|
|
$(LOCAL_PATH)/overlay \
|
|
|
|
$(LOCAL_PATH)/overlay-lineage
|
|
|
|
|
2020-02-07 06:40:24 -05:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
OnePlusIconShapeCircleOverlay \
|
|
|
|
OnePlusIconShapeRoundedRectOverlay \
|
|
|
|
OnePlusIconShapeSquareOverlay \
|
|
|
|
OnePlusIconShapeSquircleOverlay \
|
|
|
|
OnePlusIconShapeTeardropOverlay
|
|
|
|
|
2019-09-20 10:18:41 -04:00
|
|
|
# VNDK
|
2019-12-20 09:38:32 -05:00
|
|
|
PRODUCT_TARGET_VNDK_VERSION := 29
|
2019-09-20 10:18:41 -04:00
|
|
|
|
2019-09-10 13:02:00 -04:00
|
|
|
# Permissions
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-07 14:41:55 -04:00
|
|
|
frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.ims.xml \
|
2020-06-22 14:00:06 -04:00
|
|
|
frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/handheld_core_hardware.xml \
|
|
|
|
vendor/lineage/config/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml
|
2019-09-10 13:02:00 -04:00
|
|
|
|
2018-07-09 15:25:14 -04:00
|
|
|
# A/B
|
|
|
|
AB_OTA_UPDATER := true
|
|
|
|
|
|
|
|
AB_OTA_PARTITIONS += \
|
|
|
|
boot \
|
2018-07-12 11:24:58 -04:00
|
|
|
dtbo \
|
2020-06-22 04:35:37 -04:00
|
|
|
odm \
|
|
|
|
product \
|
|
|
|
recovery \
|
2018-07-09 15:25:14 -04:00
|
|
|
system \
|
2020-06-22 04:35:37 -04:00
|
|
|
vbmeta \
|
|
|
|
vbmeta_system
|
2018-07-09 15:25:14 -04:00
|
|
|
|
|
|
|
AB_OTA_POSTINSTALL_CONFIG += \
|
|
|
|
RUN_POSTINSTALL_system=true \
|
|
|
|
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
|
|
|
|
FILESYSTEM_TYPE_system=ext4 \
|
|
|
|
POSTINSTALL_OPTIONAL_system=true
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
otapreopt_script
|
|
|
|
|
2018-07-16 07:22:31 -04:00
|
|
|
# ANT+
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
AntHalService
|
|
|
|
|
2018-07-01 07:20:03 -04:00
|
|
|
# Audio
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-12-24 06:25:51 -05:00
|
|
|
audio.a2dp.default \
|
|
|
|
libaacwrapper
|
2018-07-01 07:20:03 -04:00
|
|
|
|
2018-09-09 11:39:16 -04:00
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-20 10:18:41 -04:00
|
|
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
|
|
|
|
$(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml
|
2018-09-09 11:39:16 -04:00
|
|
|
|
2018-07-09 15:25:14 -04:00
|
|
|
# Boot control
|
2018-08-22 00:22:37 -04:00
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.boot@1.0-impl.recovery \
|
2020-06-22 04:35:37 -04:00
|
|
|
bootctrl.kona.recovery
|
2018-08-22 00:22:37 -04:00
|
|
|
|
2018-07-09 15:25:14 -04:00
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
|
|
bootctl
|
|
|
|
|
2018-07-02 10:35:51 -04:00
|
|
|
# Camera
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
Snap
|
|
|
|
|
2018-07-02 08:15:39 -04:00
|
|
|
# Common init scripts
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-07-02 14:26:20 -04:00
|
|
|
init.qcom.rc \
|
2019-09-09 22:18:46 -04:00
|
|
|
init.recovery.qcom.rc \
|
|
|
|
ueventd.qcom.rc
|
2018-07-02 08:15:39 -04:00
|
|
|
|
2018-07-01 07:20:03 -04:00
|
|
|
# Display
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-08-06 10:57:29 -04:00
|
|
|
libdisplayconfig \
|
2019-09-09 14:58:33 -04:00
|
|
|
libqdMetaData \
|
2019-08-06 10:57:29 -04:00
|
|
|
libqdMetaData.system \
|
2018-12-24 06:25:51 -05:00
|
|
|
libvulkan \
|
|
|
|
vendor.display.config@1.0
|
2018-07-01 07:20:03 -04:00
|
|
|
|
2018-07-13 08:38:39 -04:00
|
|
|
# Doze
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
OnePlusDoze
|
|
|
|
|
2020-06-22 20:11:09 -04:00
|
|
|
# fastbootd
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
fastbootd
|
|
|
|
|
2020-06-22 14:00:06 -04:00
|
|
|
# Fingerprint
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
android.hardware.biometrics.fingerprint@2.1-service.oneplus_kona \
|
|
|
|
lineage.biometrics.fingerprint.inscreen@1.0-service.oneplus_kona \
|
|
|
|
vendor.oneplus.fingerprint.extension@1.0 \
|
|
|
|
vendor.oneplus.hardware.display@1.0
|
|
|
|
|
2018-07-15 15:31:07 -04:00
|
|
|
# HotwordEnrollement app permissions
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-07 14:41:55 -04:00
|
|
|
$(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-hotword.xml
|
2018-07-15 15:31:07 -04:00
|
|
|
|
2018-07-03 14:39:30 -04:00
|
|
|
# Input
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-07 14:41:55 -04:00
|
|
|
$(LOCAL_PATH)/idc/gf_input.idc:$(TARGET_COPY_OUT_SYSTEM)/usr/idc/gf_input.idc \
|
|
|
|
$(LOCAL_PATH)/keylayout/gf_input.kl:$(TARGET_COPY_OUT_SYSTEM)/usr/keylayout/gf_input.kl
|
2018-07-03 14:39:30 -04:00
|
|
|
|
2018-07-02 09:46:30 -04:00
|
|
|
# Lights
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-06-22 04:35:37 -04:00
|
|
|
android.hardware.light@2.0-service.oneplus_kona
|
2018-07-02 09:46:30 -04:00
|
|
|
|
2019-01-22 08:15:40 -05:00
|
|
|
# LiveDisplay
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-06-22 04:35:37 -04:00
|
|
|
lineage.livedisplay@2.0-service.oneplus_kona
|
2019-01-22 08:15:40 -05:00
|
|
|
|
2018-07-09 14:16:42 -04:00
|
|
|
# Media
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-07 14:41:55 -04:00
|
|
|
$(LOCAL_PATH)/configs/media_profiles_vendor.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_profiles_vendor.xml
|
2018-07-09 14:16:42 -04:00
|
|
|
|
2018-07-01 07:20:03 -04:00
|
|
|
# Net
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
netutils-wrapper-1.0
|
|
|
|
|
|
|
|
# NFC
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-02-13 09:57:08 -05:00
|
|
|
android.hardware.nfc@1.0:64 \
|
|
|
|
android.hardware.nfc@1.1:64 \
|
2019-09-09 14:58:33 -04:00
|
|
|
android.hardware.nfc@1.2:64 \
|
2019-02-13 09:57:08 -05:00
|
|
|
android.hardware.secure_element@1.0:64 \
|
|
|
|
com.android.nfc_extras \
|
2020-06-23 13:05:35 -04:00
|
|
|
NfcNci \
|
2018-07-01 07:20:03 -04:00
|
|
|
Tag \
|
|
|
|
|
2018-07-14 18:11:17 -04:00
|
|
|
# Power
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-06-23 08:43:35 -04:00
|
|
|
android.hardware.power@1.2-service.oneplus_kona
|
2018-07-14 18:11:17 -04:00
|
|
|
|
2019-11-21 19:14:07 -05:00
|
|
|
# Ramdisk
|
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
|
|
|
|
|
2019-09-09 10:52:33 -04:00
|
|
|
# Soong namespaces
|
|
|
|
PRODUCT_SOONG_NAMESPACES += \
|
2020-06-22 14:00:06 -04:00
|
|
|
$(LOCAL_PATH) \
|
|
|
|
device/oneplus/common
|
2019-09-09 10:52:33 -04:00
|
|
|
|
2018-07-20 19:06:14 -04:00
|
|
|
# Telephony
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-12-28 04:14:41 -05:00
|
|
|
ims-ext-common \
|
|
|
|
ims_ext_common.xml \
|
2018-11-26 15:08:55 -05:00
|
|
|
qti-telephony-hidl-wrapper \
|
|
|
|
qti_telephony_hidl_wrapper.xml \
|
2018-11-26 18:01:19 -05:00
|
|
|
qti-telephony-utils \
|
|
|
|
qti_telephony_utils.xml \
|
2018-07-20 19:06:14 -04:00
|
|
|
telephony-ext
|
|
|
|
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
|
|
telephony-ext
|
|
|
|
|
2020-06-23 13:05:35 -04:00
|
|
|
PRODUCT_COPY_FILES += \
|
|
|
|
$(LOCAL_PATH)/configs/privapp-permissions-qti.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-qti.xml
|
|
|
|
|
2019-01-22 08:15:40 -05:00
|
|
|
# Touch
|
|
|
|
PRODUCT_PACKAGES += \
|
2020-06-22 04:35:37 -04:00
|
|
|
lineage.touch@1.0-service.oneplus_kona
|
2019-01-22 08:15:40 -05:00
|
|
|
|
2018-07-07 18:32:31 -04:00
|
|
|
# tri-state-key
|
|
|
|
PRODUCT_PACKAGES += \
|
2018-07-14 14:29:40 -04:00
|
|
|
KeyHandler \
|
2018-07-07 18:32:31 -04:00
|
|
|
tri-state-key_daemon
|
|
|
|
|
2019-02-04 13:37:06 -05:00
|
|
|
# Trust HAL
|
|
|
|
PRODUCT_PACKAGES += \
|
2019-06-17 20:26:16 -04:00
|
|
|
lineage.trust@1.0-service
|
2019-02-04 13:37:06 -05:00
|
|
|
|
2018-07-09 15:25:14 -04:00
|
|
|
# Update engine
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
update_engine \
|
|
|
|
update_engine_sideload \
|
|
|
|
update_verifier
|
|
|
|
|
|
|
|
PRODUCT_PACKAGES_DEBUG += \
|
|
|
|
update_engine_client
|
2018-12-24 06:25:51 -05:00
|
|
|
|
|
|
|
# WiFi Display
|
|
|
|
PRODUCT_PACKAGES += \
|
|
|
|
libnl
|
|
|
|
|
|
|
|
PRODUCT_BOOT_JARS += \
|
|
|
|
WfdCommon
|
2019-07-25 13:01:23 -04:00
|
|
|
|
|
|
|
PRODUCT_COPY_FILES += \
|
2019-09-07 14:41:55 -04:00
|
|
|
$(LOCAL_PATH)/configs/privapp-permissions-wfd.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-wfd.xml
|
2020-06-22 04:35:37 -04:00
|
|
|
|
|
|
|
PRODUCT_BUILD_SUPER_PARTITION := false
|
|
|
|
PRODUCT_USE_DYNAMIC_PARTITIONS := true
|