| # 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). |
| # |
| |
| # Overlays |
| DEVICE_PACKAGE_OVERLAYS += \ |
| $(LOCAL_PATH)/overlay |
| |
| PRODUCT_PACKAGES += \ |
| FrameworksResDeviceOverlay \ |
| FrameworksResVendorOverlay \ |
| SystemUIDeviceOverlay |
| |
| ifeq ($(ROM_BUILDTYPE),$(filter $(ROM_BUILDTYPE),GAPPS)) |
| # Android Auto |
| PRODUCT_PACKAGES += \ |
| AndroidAutoStub |
| endif |
| |
| # Api |
| BOARD_SHIPPING_API_LEVEL := 29 |
| PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL) |
| |
| # audio |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/audio/audio_effects_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
| $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \ |
| $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| $(LOCAL_PATH)/audio/audio_policy_volumes_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes_ZS670KS.xml |
| |
| # Boot control |
| PRODUCT_PACKAGES += \ |
| android.hardware.boot@1.1-service |
| |
| # Camera |
| PRODUCT_PACKAGES += \ |
| CameraTile |
| |
| # Configstore |
| PRODUCT_PACKAGES += \ |
| disable_configstore |
| |
| # Fingerprint |
| PRODUCT_PACKAGES += \ |
| android.hardware.biometrics.fingerprint@2.1-service |
| |
| # Health for charing control |
| PRODUCT_PACKAGES += \ |
| vendor.lineage.health-service.default |
| |
| # Input |
| PRODUCT_PACKAGES += \ |
| fts_ts.idc |
| |
| PRODUCT_PACKAGES += \ |
| fts_ts.kl \ |
| goodixfp.kl |
| |
| # Lights |
| PRODUCT_PACKAGES += \ |
| android.hardware.light-service.lineage |
| |
| # Media |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/media/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ |
| $(LOCAL_PATH)/media/media_codecs_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_kona.xml \ |
| $(LOCAL_PATH)/media/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \ |
| $(LOCAL_PATH)/media/media_codecs_performance_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_kona.xml |
| |
| # NFC |
| PRODUCT_PACKAGES += \ |
| android.hardware.nfc@1.2-service \ |
| android.hardware.secure_element@1.2 |
| |
| # Perf |
| PRODUCT_PACKAGES += \ |
| vendor.qti.hardware.perf@2.3 |
| |
| # Power |
| PRODUCT_PACKAGES += \ |
| android.hardware.power-service.lineage-libperfmgr |
| |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/configs/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json |
| |
| # Prebuilt |
| PRODUCT_COPY_FILES += \ |
| $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/system,system) \ |
| $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/root,recovery/root) \ |
| $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/vendor,vendor) |
| |
| PRODUCT_AAPT_CONFIG := normal |
| PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| |
| # Ramdisk |
| PRODUCT_COPY_FILES += \ |
| $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom |
| |
| # Shims |
| PRODUCT_PACKAGES += \ |
| libgui_shim |
| |
| # Soundtrigger |
| PRODUCT_PACKAGES += \ |
| android.hardware.soundtrigger@2.2-impl |
| |
| # Sensors |
| PRODUCT_PACKAGES += \ |
| android.hardware.sensors-service.multihal |
| |
| # Soong namespaces |
| PRODUCT_SOONG_NAMESPACES += \ |
| $(LOCAL_PATH) \ |
| hardware/omni/interfaces/power-libperfmgr \ |
| hardware/google/interfaces \ |
| hardware/google/pixel |
| |
| # Vibrator |
| PRODUCT_PACKAGES += \ |
| vendor.qti.hardware.vibrator.service |
| |
| # Inherit from asus sm8250-common |
| $(call inherit-product, device/asus/sm8250-common/common.mk) |
| |
| # Inherit from vendor blobs |
| $(call inherit-product, vendor/asus/zenfone7/zenfone7-vendor.mk) |