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 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 22 | $(call inherit-product, vendor/asus/zenfone8/zenfone8-vendor.mk) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 23 | |
David Ng | 3a95e4b | 2020-06-16 18:07:14 -0700 | [diff] [blame] | 24 | # fusefs / disable sdcardfs usage |
| 25 | $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) |
| 26 | |
micky387 | daa4c6b | 2021-05-28 14:44:38 +0200 | [diff] [blame] | 27 | # Include GSI keys |
| 28 | $(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk) |
| 29 | |
micky387 | 536715a | 2021-05-30 02:32:41 +0200 | [diff] [blame^] | 30 | # Enable updating of APEXes |
| 31 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 32 | |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 33 | # Overlays |
| 34 | DEVICE_PACKAGE_OVERLAYS += \ |
micky387 | 68ec999 | 2019-12-28 13:35:00 +0100 | [diff] [blame] | 35 | $(LOCAL_PATH)/overlay \ |
| 36 | vendor/omni/overlay/CarrierConfig |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 37 | |
micky387 | 7564a9b | 2020-12-30 22:14:37 +0100 | [diff] [blame] | 38 | # VNDK |
| 39 | PRODUCT_TARGET_VNDK_VERSION := 30 |
| 40 | |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 41 | # A/B |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 42 | ENABLE_VIRTUAL_AB := true |
micky387 | f24bf3b | 2021-05-28 08:01:58 +0200 | [diff] [blame] | 43 | $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk) |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 44 | |
| 45 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 46 | RUN_POSTINSTALL_system=true \ |
Marko Man | ac93137 | 2020-03-14 21:02:38 +0100 | [diff] [blame] | 47 | POSTINSTALL_PATH_system=system/bin/omnipreopt_script \ |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 48 | FILESYSTEM_TYPE_system=ext4 \ |
| 49 | POSTINSTALL_OPTIONAL_system=true |
| 50 | |
Marko Man | ac93137 | 2020-03-14 21:02:38 +0100 | [diff] [blame] | 51 | PRODUCT_PACKAGES += \ |
| 52 | omnipreopt_script |
| 53 | |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 54 | # tell update_engine to not change dynamic partition table during updates |
| 55 | # needed since our qti_dynamic_partitions does not include |
| 56 | # vendor and odm and we also dont want to AB update them |
| 57 | TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true |
| 58 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 59 | # ANT+ |
| 60 | PRODUCT_PACKAGES += \ |
| 61 | AntHalService |
| 62 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 63 | # Api |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 64 | PRODUCT_SHIPPING_API_LEVEL := 30 |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 65 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 66 | # audio |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 67 | PRODUCT_COPY_FILES += \ |
micky387 | 7564a9b | 2020-12-30 22:14:37 +0100 | [diff] [blame] | 68 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 69 | $(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 \ |
| 70 | $(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 \ |
| 71 | $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes.xml |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 72 | |
micky387 | 1f4e8bf | 2020-12-30 22:02:51 +0100 | [diff] [blame] | 73 | # Bluetooth |
| 74 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth |
| 75 | PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf |
| 76 | |
| 77 | PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva |
| 78 | |
| 79 | PRODUCT_PACKAGES += BluetoothExt |
| 80 | PRODUCT_PACKAGES += libbluetooth_qti |
| 81 | PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java |
| 82 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 83 | # Boot control |
Hridya Valsaraju | 9bf1814 | 2018-08-21 21:22:37 -0700 | [diff] [blame] | 84 | PRODUCT_PACKAGES += \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 85 | android.hardware.boot@1.1-impl.recovery \ |
| 86 | bootctrl.lahaina.recovery |
Hridya Valsaraju | 9bf1814 | 2018-08-21 21:22:37 -0700 | [diff] [blame] | 87 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 88 | PRODUCT_PACKAGES_DEBUG += \ |
| 89 | bootctl |
| 90 | |
micky387 | 95b3a99 | 2019-06-11 03:21:49 +0200 | [diff] [blame] | 91 | # Charger images |
| 92 | PRODUCT_PACKAGES += \ |
| 93 | omni_charger_res_images \ |
| 94 | animation.txt \ |
| 95 | font_charger.png |
| 96 | |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 97 | # DeviceParts |
| 98 | PRODUCT_PACKAGES += \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 99 | DeviceParts |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 100 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 101 | # Display |
| 102 | PRODUCT_PACKAGES += \ |
| 103 | libion \ |
| 104 | libtinyxml2 |
| 105 | |
| 106 | PRODUCT_PACKAGES += \ |
| 107 | libtinyalsa |
| 108 | |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 109 | # fastbootd |
| 110 | PRODUCT_PACKAGES += \ |
micky387 | 4b8cbf5 | 2021-05-27 02:46:55 +0200 | [diff] [blame] | 111 | android.hardware.fastboot@1.0-impl-mock \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 112 | fastbootd |
Fenglin Wu | c1f19de | 2018-07-10 10:51:08 +0800 | [diff] [blame] | 113 | |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 114 | # FM |
mickael saibi | a701b82 | 2021-02-13 15:43:55 +0100 | [diff] [blame] | 115 | PRODUCT_PACKAGES += \ |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 116 | FM2 \ |
| 117 | libqcomfm_jni \ |
| 118 | qcom.fmradio |
| 119 | |
mickael saibi | a701b82 | 2021-02-13 15:43:55 +0100 | [diff] [blame] | 120 | PRODUCT_BOOT_JARS += qcom.fmradio |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 121 | |
micky387 | 22c3b45 | 2020-01-04 07:59:01 +0100 | [diff] [blame] | 122 | # Frameworks |
| 123 | PRODUCT_PACKAGES += \ |
| 124 | FrameworksResOverlay |
| 125 | |
micky387 | d8e31eb | 2021-02-19 21:23:59 +0100 | [diff] [blame] | 126 | # HIDL |
| 127 | PRODUCT_PACKAGES += \ |
Vachounet | 726ab21 | 2021-01-27 15:32:48 +0100 | [diff] [blame] | 128 | android.hidl.base@1.0 \ |
| 129 | android.hidl.manager@1.0 \ |
micky387 | d8e31eb | 2021-02-19 21:23:59 +0100 | [diff] [blame] | 130 | libhidltransport \ |
| 131 | libhwbinder |
| 132 | |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 133 | # Input |
| 134 | PRODUCT_COPY_FILES += \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 135 | $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \ |
| 136 | $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \ |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 137 | $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 138 | $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 139 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 140 | # Live Wallpapers |
| 141 | PRODUCT_PACKAGES += \ |
| 142 | LiveWallpapers \ |
| 143 | LiveWallpapersPicker \ |
| 144 | VisualizationWallpapers \ |
| 145 | librs_jni |
| 146 | |
micky387 | 6254031 | 2021-03-12 22:43:56 +0100 | [diff] [blame] | 147 | # NFC |
| 148 | PRODUCT_PACKAGES += \ |
| 149 | NfcNci \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 150 | Tag \ |
micky387 | 6254031 | 2021-03-12 22:43:56 +0100 | [diff] [blame] | 151 | SecureElement \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 152 | com.android.nfc_extras |
| 153 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 154 | # Prebuilt |
| 155 | PRODUCT_COPY_FILES += \ |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 156 | $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \ |
| 157 | $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \ |
| 158 | $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \ |
| 159 | $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 160 | |
micky387 | 4a9d784 | 2019-10-14 20:53:12 +0200 | [diff] [blame] | 161 | PRODUCT_AAPT_CONFIG := normal |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 162 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 163 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 164 | # Properties |
| 165 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 166 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 167 | # Netutils |
| 168 | PRODUCT_PACKAGES += \ |
| 169 | netutils-wrapper-1.0 \ |
| 170 | libandroid_net |
| 171 | |
| 172 | PRODUCT_PACKAGES += \ |
| 173 | vndk_package |
| 174 | |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 175 | # Ramdisk |
| 176 | PRODUCT_COPY_FILES += \ |
micky387 | ff65b63 | 2021-05-26 19:58:54 +0200 | [diff] [blame] | 177 | $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 178 | |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 179 | # Remove unwanted packages |
| 180 | PRODUCT_PACKAGES += \ |
micky387 | e568a8a | 2019-12-05 20:38:19 +0100 | [diff] [blame] | 181 | RemovePackages |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 182 | |
Bruno Martins | ff55cad | 2019-09-05 12:17:15 +0100 | [diff] [blame] | 183 | # Soong namespaces |
| 184 | PRODUCT_SOONG_NAMESPACES += \ |
| 185 | $(LOCAL_PATH) |
| 186 | |
micky387 | 97fff40 | 2020-12-30 23:10:35 +0100 | [diff] [blame] | 187 | # Systemhelper |
| 188 | PRODUCT_PACKAGES += \ |
| 189 | vendor.qti.hardware.systemhelper@1.0 |
| 190 | |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 191 | # Telephony |
| 192 | PRODUCT_PACKAGES += \ |
| 193 | ims-ext-common \ |
| 194 | ims_ext_common.xml \ |
| 195 | qti-telephony-hidl-wrapper \ |
| 196 | qti_telephony_hidl_wrapper.xml \ |
| 197 | qti-telephony-utils \ |
micky387 | 8459a0c | 2020-05-01 18:24:34 +0200 | [diff] [blame] | 198 | qti_telephony_utils.xml \ |
| 199 | tcmiface |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 200 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 201 | # Update engine |
| 202 | PRODUCT_PACKAGES += \ |
| 203 | otapreopt_script \ |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 204 | update_engine \ |
| 205 | update_engine_sideload \ |
| 206 | update_verifier |
| 207 | |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 208 | PRODUCT_HOST_PACKAGES += \ |
| 209 | brillo_update_payload |
| 210 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 211 | PRODUCT_PACKAGES_DEBUG += \ |
| 212 | update_engine_client |
| 213 | |
micky387 | 81c15c8 | 2021-05-21 12:59:35 +0200 | [diff] [blame] | 214 | PRODUCT_BUILD_SUPER_PARTITION := false |
| 215 | PRODUCT_USE_DYNAMIC_PARTITIONS := true |
| 216 | |
Roshan Pius | a72d5ee | 2020-04-24 14:33:28 -0700 | [diff] [blame] | 217 | # WiFi |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 218 | PRODUCT_PACKAGES += \ |
Weilun Du | 7a3891c | 2020-08-21 14:45:14 -0700 | [diff] [blame] | 219 | TetheringOverlay \ |
Roshan Pius | a72d5ee | 2020-04-24 14:33:28 -0700 | [diff] [blame] | 220 | WifiOverlay |
micky387 | d58b643 | 2020-10-09 04:09:07 +0200 | [diff] [blame] | 221 | |
micky387 | d8e31eb | 2021-02-19 21:23:59 +0100 | [diff] [blame] | 222 | # Wifi Display |
| 223 | PRODUCT_PACKAGES += \ |
| 224 | libavservices_minijail \ |
| 225 | libnl \ |
| 226 | |
| 227 | PRODUCT_BOOT_JARS += \ |
| 228 | WfdCommon |
| 229 | |
micky387 | d58b643 | 2020-10-09 04:09:07 +0200 | [diff] [blame] | 230 | include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk |