blob: 6406afaa37449cb1af97d464b4928cc6cdcd8351 [file] [log] [blame]
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2019 The OmniRom 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.
#
# This file is the build configuration for a full Android
# build for grouper hardware. This cleanly combines a set of
# device-specific aspects (drivers) with a device-agnostic
# product configuration (apps).
#
$(call inherit-product, vendor/asus/zenfone8/zenfone8-vendor.mk)
# fusefs / disable sdcardfs usage
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
# Include GSI keys
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
vendor/omni/overlay/CarrierConfig
# VNDK
PRODUCT_TARGET_VNDK_VERSION := 30
# A/B
ENABLE_VIRTUAL_AB := true
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/omnipreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
PRODUCT_PACKAGES += \
omnipreopt_script
# tell update_engine to not change dynamic partition table during updates
# needed since our qti_dynamic_partitions does not include
# vendor and odm and we also dont want to AB update them
TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
# ANT+
PRODUCT_PACKAGES += \
AntHalService
# Api
PRODUCT_SHIPPING_API_LEVEL := 30
# audio
PRODUCT_COPY_FILES += \
$(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/ZS590KS/audio_policy_configuration_ZS590KS.xml \
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/ZS590KS/audio_policy_volumes_ZS590KS.xml \
$(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes.xml
# Bluetooth
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
PRODUCT_PACKAGES += BluetoothExt
PRODUCT_PACKAGES += libbluetooth_qti
PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
# Boot control
PRODUCT_PACKAGES += \
android.hardware.boot@1.1-impl.recovery \
bootctrl.lahaina.recovery
PRODUCT_PACKAGES_DEBUG += \
bootctl
# Charger images
PRODUCT_PACKAGES += \
omni_charger_res_images \
animation.txt \
font_charger.png
# DeviceParts
PRODUCT_PACKAGES += \
DeviceParts
# Display
PRODUCT_PACKAGES += \
libion \
libtinyxml2
PRODUCT_PACKAGES += \
libtinyalsa
# fastbootd
PRODUCT_PACKAGES += \
android.hardware.fastboot@1.0-impl-mock \
fastbootd
# FM
PRODUCT_PACKAGES += \
FM2 \
libqcomfm_jni \
qcom.fmradio
PRODUCT_BOOT_JARS += qcom.fmradio
# Frameworks
PRODUCT_PACKAGES += \
FrameworksResOverlay
# HIDL
PRODUCT_PACKAGES += \
android.hidl.base@1.0 \
android.hidl.manager@1.0 \
libhidltransport \
libhwbinder
# Input
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
$(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
$(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
$(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
# Live Wallpapers
PRODUCT_PACKAGES += \
LiveWallpapers \
LiveWallpapersPicker \
VisualizationWallpapers \
librs_jni
# NFC
PRODUCT_PACKAGES += \
NfcNci \
Tag \
SecureElement \
com.android.nfc_extras
# Prebuilt
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
$(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
$(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
$(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Properties
BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
# Netutils
PRODUCT_PACKAGES += \
netutils-wrapper-1.0 \
libandroid_net
PRODUCT_PACKAGES += \
vndk_package
# Ramdisk
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
# Remove unwanted packages
PRODUCT_PACKAGES += \
RemovePackages
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Systemhelper
PRODUCT_PACKAGES += \
vendor.qti.hardware.systemhelper@1.0
# 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 \
tcmiface
# Update engine
PRODUCT_PACKAGES += \
otapreopt_script \
update_engine \
update_engine_sideload \
update_verifier
PRODUCT_HOST_PACKAGES += \
brillo_update_payload
PRODUCT_PACKAGES_DEBUG += \
update_engine_client
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# WiFi
PRODUCT_PACKAGES += \
TetheringOverlay \
WifiOverlay
# Wifi Display
PRODUCT_PACKAGES += \
libavservices_minijail \
libnl \
PRODUCT_BOOT_JARS += \
WfdCommon
include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk