# # 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. # COMMON_PATH := device/motorola/exynos9610-common $(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk) # Get non-open-source specific aspects $(call inherit-product-if-exists, vendor/motorola/exynos9610-common/exynos9610-common-vendor.mk) DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay # A/B AB_OTA_UPDATER := true AB_OTA_PARTITIONS += \ boot \ dtbo \ system \ vbmeta \ vendor AB_OTA_POSTINSTALL_CONFIG += \ RUN_POSTINSTALL_system=true \ POSTINSTALL_PATH_system=system/bin/otapreopt_script \ FILESYSTEM_TYPE_system=ext4 \ POSTINSTALL_OPTIONAL_system=true # Update engine PRODUCT_PACKAGES += \ update_engine \ update_engine_sideload \ update_verifier PRODUCT_PACKAGES += \ otapreopt_script # Boot animation TARGET_BOOTANIMATION_PRELOAD := true TARGET_BOOTANIMATION_TEXTURE_CACHE := true TARGET_SCREEN_HEIGHT := 2520 TARGET_SCREEN_WIDTH := 1080 # FM radio PRODUCT_PACKAGES += \ FMRadio \ libfmjni # Graphics # Device uses high-density artwork where available PRODUCT_AAPT_CONFIG := xlarge PRODUCT_AAPT_PREF_CONFIG := xxxhdpi # A list of dpis to select prebuilt apk, in precedence order. PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi # HotwordEnrollement PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml # init PRODUCT_COPY_FILES += \ $(COMMON_PATH)/configs/init/init.recovery.exynos9610.rc:$(TARGET_COPY_OUT_ROOT)/init.recovery.exynos9610.rc # NFC PRODUCT_PACKAGES += \ NfcNci \ Tag \ SecureElement \ com.android.nfc_extras # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml \ frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hcef.xml