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