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