micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 1 | # Copyright (C) 2016 The CyanogenMod Project |
| 2 | # Copyright (C) 2019 The OmniRom Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | # |
| 17 | # This file is the build configuration for a full Android |
| 18 | # build for grouper hardware. This cleanly combines a set of |
| 19 | # device-specific aspects (drivers) with a device-agnostic |
| 20 | # product configuration (apps). |
| 21 | # |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 22 | |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 23 | # Overlays |
| 24 | DEVICE_PACKAGE_OVERLAYS += \ |
micky387 | 733b771 | 2020-08-11 04:10:19 +0200 | [diff] [blame] | 25 | $(LOCAL_PATH)/overlay |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 26 | |
micky387 | de2761a | 2022-06-21 16:32:51 +0200 | [diff] [blame] | 27 | PRODUCT_PACKAGES += \ |
| 28 | FrameworksResDeviceOverlay \ |
| 29 | FrameworksResVendorOverlay \ |
| 30 | SystemUIDeviceOverlay |
| 31 | |
micky387 | 981bc00 | 2022-06-21 21:57:01 +0200 | [diff] [blame] | 32 | ifeq ($(ROM_BUILDTYPE),$(filter $(ROM_BUILDTYPE),GAPPS)) |
| 33 | # Android Auto |
| 34 | PRODUCT_PACKAGES += \ |
| 35 | AndroidAutoStub |
| 36 | endif |
| 37 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 38 | # Api |
Chirayu Desai | 8f7517f | 2024-06-13 21:10:42 +0530 | [diff] [blame] | 39 | BOARD_SHIPPING_API_LEVEL := 29 |
| 40 | PRODUCT_SHIPPING_API_LEVEL := $(BOARD_SHIPPING_API_LEVEL) |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 41 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 42 | # audio |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 43 | PRODUCT_COPY_FILES += \ |
micky387 | 00aa32b | 2023-05-26 12:41:29 +0200 | [diff] [blame] | 44 | $(LOCAL_PATH)/audio/audio_effects_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \ |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 45 | $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/audio_policy_configuration.xml \ |
| 46 | $(LOCAL_PATH)/audio/audio_policy_configuration_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \ |
| 47 | $(LOCAL_PATH)/audio/audio_policy_volumes_ZS670KS.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes_ZS670KS.xml |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 48 | |
micky387 | be8bbfa | 2025-02-27 16:06:10 -0500 | [diff] [blame] | 49 | # Boot control |
| 50 | PRODUCT_PACKAGES += \ |
| 51 | android.hardware.boot@1.1-service |
| 52 | |
Luca Stefani | 498b0d7 | 2019-08-19 14:32:44 +0200 | [diff] [blame] | 53 | # Camera |
| 54 | PRODUCT_PACKAGES += \ |
| 55 | CameraTile |
| 56 | |
Alexander Koskovich | 190deb2 | 2020-12-03 10:26:15 +0000 | [diff] [blame] | 57 | # Configstore |
| 58 | PRODUCT_PACKAGES += \ |
| 59 | disable_configstore |
| 60 | |
micky387 | 33ff3eb | 2023-12-10 13:26:54 +0100 | [diff] [blame] | 61 | # Fingerprint |
| 62 | PRODUCT_PACKAGES += \ |
Cosmin Tanislav | 4c91c29 | 2025-02-27 11:24:48 -0500 | [diff] [blame] | 63 | android.hardware.biometrics.fingerprint@2.1-service |
micky387 | 33ff3eb | 2023-12-10 13:26:54 +0100 | [diff] [blame] | 64 | |
CLF BBN | ac0a2f3 | 2025-01-13 17:50:02 -0500 | [diff] [blame] | 65 | # Health for charing control |
| 66 | PRODUCT_PACKAGES += \ |
| 67 | vendor.lineage.health-service.default |
| 68 | |
micky387 | c802954 | 2020-08-16 05:36:29 +0200 | [diff] [blame] | 69 | # Input |
Sebastiano Barezzi | e78b6af | 2024-11-14 18:34:21 -0500 | [diff] [blame] | 70 | PRODUCT_PACKAGES += \ |
| 71 | fts_ts.idc |
| 72 | |
| 73 | PRODUCT_PACKAGES += \ |
micky387 | 490d476 | 2025-04-18 17:24:28 -0400 | [diff] [blame^] | 74 | keylayout_data_zenfone7.kl |
micky387 | c802954 | 2020-08-16 05:36:29 +0200 | [diff] [blame] | 75 | |
LuK1337 | 64a6b18 | 2025-01-17 17:06:51 +0100 | [diff] [blame] | 76 | # Lights |
| 77 | PRODUCT_PACKAGES += \ |
| 78 | android.hardware.light-service.lineage |
| 79 | |
LuK1337 | f3f4b51 | 2024-09-09 10:32:07 +0200 | [diff] [blame] | 80 | # Media |
| 81 | PRODUCT_COPY_FILES += \ |
dianlujitao | 5e5b631 | 2024-09-08 15:09:19 +0800 | [diff] [blame] | 82 | $(LOCAL_PATH)/media/media_codecs_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_c2.xml \ |
LuK1337 | f3f4b51 | 2024-09-09 10:32:07 +0200 | [diff] [blame] | 83 | $(LOCAL_PATH)/media/media_codecs_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_kona.xml \ |
dianlujitao | 5e5b631 | 2024-09-08 15:09:19 +0800 | [diff] [blame] | 84 | $(LOCAL_PATH)/media/media_codecs_performance_c2.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_c2.xml \ |
Michael Bestas | f464d45 | 2024-07-06 16:48:29 +0300 | [diff] [blame] | 85 | $(LOCAL_PATH)/media/media_codecs_performance_kona.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance_kona.xml |
LuK1337 | f3f4b51 | 2024-09-09 10:32:07 +0200 | [diff] [blame] | 86 | |
micky387 | ef18548 | 2025-02-26 19:47:27 -0500 | [diff] [blame] | 87 | # NFC |
| 88 | PRODUCT_PACKAGES += \ |
| 89 | android.hardware.nfc@1.2-service \ |
| 90 | android.hardware.secure_element@1.2 |
| 91 | |
micky387 | 4ca06d4 | 2022-12-26 15:50:52 +0100 | [diff] [blame] | 92 | # Perf |
| 93 | PRODUCT_PACKAGES += \ |
Cosmin Tanislav | 4c91c29 | 2025-02-27 11:24:48 -0500 | [diff] [blame] | 94 | vendor.qti.hardware.perf@2.3 |
micky387 | 4ca06d4 | 2022-12-26 15:50:52 +0100 | [diff] [blame] | 95 | |
micky387 | b9a91b3 | 2025-03-24 16:33:52 -0400 | [diff] [blame] | 96 | # Power |
| 97 | PRODUCT_PACKAGES += \ |
| 98 | android.hardware.power-service-qti |
| 99 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 100 | # Prebuilt |
| 101 | PRODUCT_COPY_FILES += \ |
micky387 | 6e30874 | 2020-09-20 02:54:09 +0200 | [diff] [blame] | 102 | $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/system,system) \ |
micky387 | b9e88d9 | 2022-10-27 12:12:50 +0200 | [diff] [blame] | 103 | $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/root,recovery/root) \ |
| 104 | $(call find-copy-subdir-files,*,device/asus/zenfone7/prebuilt/vendor,vendor) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 105 | |
micky387 | 4a9d784 | 2019-10-14 20:53:12 +0200 | [diff] [blame] | 106 | PRODUCT_AAPT_CONFIG := normal |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 107 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 108 | |
micky387 | 6e30874 | 2020-09-20 02:54:09 +0200 | [diff] [blame] | 109 | # Ramdisk |
| 110 | PRODUCT_COPY_FILES += \ |
| 111 | $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom |
| 112 | |
micky387 | 4e12394 | 2022-12-29 10:27:40 +0100 | [diff] [blame] | 113 | # Shims |
| 114 | PRODUCT_PACKAGES += \ |
| 115 | libgui_shim |
| 116 | |
micky387 | 1ab141b | 2025-02-26 22:31:15 -0500 | [diff] [blame] | 117 | # Soundtrigger |
| 118 | PRODUCT_PACKAGES += \ |
| 119 | android.hardware.soundtrigger@2.2-impl |
| 120 | |
micky387 | d2870a9 | 2025-02-27 15:32:50 -0500 | [diff] [blame] | 121 | # Sensors |
| 122 | PRODUCT_PACKAGES += \ |
| 123 | android.hardware.sensors-service.multihal |
| 124 | |
Bruno Martins | ff55cad | 2019-09-05 12:17:15 +0100 | [diff] [blame] | 125 | # Soong namespaces |
| 126 | PRODUCT_SOONG_NAMESPACES += \ |
micky387 | fa7d530 | 2025-04-13 09:20:34 -0400 | [diff] [blame] | 127 | $(LOCAL_PATH) |
Bruno Martins | ff55cad | 2019-09-05 12:17:15 +0100 | [diff] [blame] | 128 | |
Michael Bestas | 9ff4637 | 2025-04-10 19:40:55 -0400 | [diff] [blame] | 129 | # Thermal |
micky387 | 8d19d6b | 2025-04-10 19:44:55 -0400 | [diff] [blame] | 130 | PRODUCT_COPY_FILES += \ |
| 131 | $(LOCAL_PATH)/configs/thermal-engine.conf:$(TARGET_COPY_OUT_VENDOR)/etc/thermal-engine.conf |
| 132 | |
Michael Bestas | 9ff4637 | 2025-04-10 19:40:55 -0400 | [diff] [blame] | 133 | PRODUCT_PACKAGES += \ |
| 134 | android.hardware.thermal-service.qti |
| 135 | |
micky387 | d850896 | 2022-10-27 16:46:50 +0200 | [diff] [blame] | 136 | # Vibrator |
| 137 | PRODUCT_PACKAGES += \ |
| 138 | vendor.qti.hardware.vibrator.service |
| 139 | |
micky387 | 733b771 | 2020-08-11 04:10:19 +0200 | [diff] [blame] | 140 | # Inherit from asus sm8250-common |
| 141 | $(call inherit-product, device/asus/sm8250-common/common.mk) |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 142 | |
micky387 | 733b771 | 2020-08-11 04:10:19 +0200 | [diff] [blame] | 143 | # Inherit from vendor blobs |
micky387 | effa7b7 | 2022-06-23 17:34:01 +0200 | [diff] [blame] | 144 | $(call inherit-product, vendor/asus/zenfone7/zenfone7-vendor.mk) |