# # 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. # # Enable updating of APEXes $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) # Include GSI keys $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk) # Get non-open-source specific aspects $(call inherit-product, vendor/asus/sm8250-common/sm8250-common-vendor.mk) # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay \ $(LOCAL_PATH)/overlay-lineage PRODUCT_ENFORCE_RRO_TARGETS := * # Properties PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE := true # Permissions PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.telephony.ims.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.ims.xml \ frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/handheld_core_hardware.xml # A/B AB_OTA_UPDATER := true AB_OTA_PARTITIONS += \ boot \ dtbo \ odm \ product \ recovery \ system \ system_ext \ vbmeta \ vbmeta_system \ vendor 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 AB_OTA_POSTINSTALL_CONFIG += \ RUN_POSTINSTALL_vendor=true \ POSTINSTALL_PATH_vendor=bin/checkpoint_gc \ FILESYSTEM_TYPE_vendor=ext4 \ POSTINSTALL_OPTIONAL_vendor=true # ANT+ PRODUCT_PACKAGES += \ AntHalService-Soong \ com.dsi.ant@1.0.vendor # Atrace PRODUCT_PACKAGES += \ android.hardware.atrace@1.0-service # Audio PRODUCT_PACKAGES += \ android.hardware.audio@6.0-impl \ android.hardware.audio.effect@6.0-impl \ android.hardware.audio.service \ android.hardware.bluetooth.audio@2.0-impl \ android.hardware.soundtrigger@2.2-impl \ audio.a2dp.default \ audio.bluetooth.default \ audio.primary.kona \ audio.r_submix.default \ audio.usb.default \ audio_amplifier.kona \ liba2dpoffload \ libaudiopreprocessing \ libbatterylistener \ libbundlewrapper \ libcirrusspkrprot \ libcomprcapture \ libdownmix \ libdynproc \ libeffectproxy \ libexthwplugin \ libhdmiedid \ libhfp \ libldnhncr \ libqcompostprocbundle \ libqcomvisualizer \ libqcomvoiceprocessing \ libreverbwrapper \ libsndmonitor \ libspkrprot \ libvisualizer \ libvolumelistener \ sound_trigger.primary.kona # Bluetooth PRODUCT_PACKAGES += \ com.qualcomm.qti.bluetooth_audio@1.0.vendor \ vendor.qti.hardware.bluetooth_audio@2.0.vendor \ vendor.qti.hardware.btconfigstore@1.0.vendor # Boot control PRODUCT_PACKAGES += \ android.hardware.boot@1.1-impl-qti \ android.hardware.boot@1.1-impl-qti.recovery \ android.hardware.boot@1.1-service \ bootctrl.kona.recovery \ bootctrl.kona PRODUCT_PACKAGES_DEBUG += \ bootctl # Camera PRODUCT_PACKAGES += \ android.hardware.camera.provider@2.4-impl \ android.hardware.camera.provider@2.4-service_64 \ vendor.qti.hardware.camera.device@1.0.vendor \ vendor.qti.hardware.camera.postproc@1.0.vendor # Common init scripts PRODUCT_PACKAGES += \ init.asus.usb.rc \ init.qcom.rc \ init.qcom.factory.rc \ init.recovery.qcom.rc \ init.target.rc \ fstab.qcom PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom # Display PRODUCT_PACKAGES += \ android.hardware.graphics.mapper@3.0-impl-qti-display \ android.hardware.graphics.mapper@4.0-impl-qti-display \ android.hardware.memtrack@1.0-impl \ android.hardware.memtrack@1.0-service \ android.hardware.renderscript@1.0-impl \ gralloc.kona \ libdisplayconfig.qti.vendor \ libqdMetaData \ libqdutils \ libqservice \ libsdmcore \ libsdmutils \ libtinyxml \ libvulkan \ lights.kona \ memtrack.kona \ vendor.display.config@1.0.vendor \ vendor.display.config@1.1.vendor \ vendor.display.config@1.2.vendor \ vendor.display.config@1.3.vendor \ vendor.display.config@1.4.vendor \ vendor.display.config@1.5.vendor \ vendor.display.config@1.6.vendor \ vendor.display.config@1.7.vendor \ vendor.display.config@1.8.vendor \ vendor.display.config@1.9.vendor \ vendor.display.config@1.10.vendor \ vendor.display.config@1.11.vendor \ vendor.display.config@2.0.vendor \ vendor.qti.hardware.display.allocator-service \ vendor.qti.hardware.display.composer-service \ vendor.qti.hardware.display.mapper@1.0.vendor \ vendor.qti.hardware.display.mapper@1.1.vendor \ vendor.qti.hardware.display.mapper@2.0.vendor \ vendor.qti.hardware.display.mapper@3.0.vendor \ vendor.qti.hardware.display.mapper@4.0.vendor PRODUCT_PACKAGES += \ libdisplayconfig.qti \ vendor.display.config@1.0 \ vendor.display.config@2.0 # DRM PRODUCT_PACKAGES += \ android.hardware.drm@1.3-service.clearkey # Health PRODUCT_PACKAGES += \ android.hardware.health@2.1-impl \ android.hardware.health@2.1-service # HIDL PRODUCT_PACKAGES += \ libhidltransport \ libhidltransport.vendor \ libhwbinder \ libhwbinder.vendor # fastbootd PRODUCT_PACKAGES += \ fastbootd # Fingerprint PRODUCT_PACKAGES += \ android.hardware.biometrics.fingerprint@2.1-service # Hotword Enrollement PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/hotword-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/sysconfig/hotword-hiddenapi-package-whitelist.xml \ $(LOCAL_PATH)/configs/privapp-permissions-hotword.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/permissions/privapp-permissions-hotword.xml # IPACM PRODUCT_PACKAGES += \ ipacm \ IPACM_cfg.xml \ libipanat:64 \ liboffloadhal:64 # NFC PRODUCT_PACKAGES += \ NfcNci \ Tag \ SecureElement \ com.android.nfc_extras \ libchrome.vendor \ ese_spi_nxp \ vendor.nxp.hardware.nfc@2.0.vendor \ vendor.nxp.nxpese@1.0.vendor \ vendor.nxp.nxpnfc@1.0.vendor \ vendor.nxp.nxpnfclegacy@1.0.vendor # Net PRODUCT_PACKAGES += \ netutils-wrapper-1.0 # Omx PRODUCT_PACKAGES += \ init.qti.media.sh \ libc2dcolorconvert \ libcodec2_hidl@1.0.vendor \ libcodec2_vndk.vendor \ libmm-omxcore \ libOmxCore \ libOmxAacEnc \ libOmxAmrEnc \ libOmxEvrcEnc \ libOmxG711Enc \ libOmxQcelp13Enc \ libOmxVdec \ libOmxVenc \ libOmxVidcCommon \ libstagefrighthw \ libwfdaac_vendor PRODUCT_PACKAGES += \ libavservices_minijail \ libavservices_minijail.vendor \ libavservices_minijail_vendor:32 # PartsBin PRODUCT_PACKAGES += \ PartsBin # Power PRODUCT_PACKAGES += \ android.hardware.power-service-qti \ vendor.qti.hardware.perf@2.0.vendor # QMI PRODUCT_PACKAGES += \ libjson \ libqti_vndfwk_detect \ libqti_vndfwk_detect.vendor \ libvndfwk_detect_jni.qti \ libvndfwk_detect_jni.qti.vendor \ vendor.qti.hardware.systemhelper@1.0 \ vendor.qti.hardware.systemhelper@1.0.vendor # RIL PRODUCT_PACKAGES += \ libprotobuf-cpp-full \ librmnetctl # Sensors PRODUCT_PACKAGES += \ android.hardware.sensors@2.0-service.multihal \ android.hardware.sensors@2.0-ScopedWakelock.vendor \ libsensorndkbridge:64 # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) # Telephony PRODUCT_PACKAGES += \ CarrierConfigResCommon \ ims-ext-common \ ims_ext_common.xml \ qti-telephony-hidl-wrapper \ qti_telephony_hidl_wrapper.xml \ qti-telephony-utils \ qti_telephony_utils.xml # Thermal PRODUCT_PACKAGES += \ android.hardware.thermal@2.0-service.qti # Trust HAL #PRODUCT_PACKAGES += \ # vendor.lineage.trust@1.0-service # Update engine PRODUCT_PACKAGES += \ update_engine \ update_engine_sideload \ update_verifier PRODUCT_PACKAGES_DEBUG += \ update_engine_client # USB PRODUCT_PACKAGES += \ android.hardware.usb@1.2-service-qti \ libusb.vendor:64 PRODUCT_BUILD_SUPER_PARTITION := false PRODUCT_USE_DYNAMIC_PARTITIONS := true # Vibrator PRODUCT_PACKAGES += \ vendor.qti.hardware.vibrator.service PRODUCT_COPY_FILES += \ vendor/qcom/opensource/vibrator/excluded-input-devices.xml:$(TARGET_COPY_OUT_VENDOR)/etc/excluded-input-devices.xml # Wifi PRODUCT_PACKAGES += \ android.hardware.wifi@1.0-service \ hostapd \ libwpa_client \ libwifi-hal-ctrl \ libwifi-hal-qcom \ vendor.qti.hardware.fstman@1.0.vendor:64 \ vendor.qti.hardware.wifi.hostapd@1.0.vendor \ vendor.qti.hardware.wifi.hostapd@1.1.vendor \ vendor.qti.hardware.wifi.hostapd@1.2.vendor \ vendor.qti.hardware.wifi.supplicant@2.0.vendor \ vendor.qti.hardware.wifi.supplicant@2.1.vendor \ wpa_supplicant \ wpa_supplicant.conf \ WifiOverlay \ TetheringOverlay