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 | 619d912 | 2019-09-01 23:51:31 +0200 | [diff] [blame] | 22 | $(call inherit-product, vendor/asus/zenfone6/zenfone6-vendor.mk) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 23 | $(call inherit-product-if-exists, vendor/gapps/arm64/arm64-vendor.mk) |
| 24 | |
Luca Stefani | 9629b32 | 2019-09-12 23:47:56 +0200 | [diff] [blame] | 25 | # Enable updating of APEXes |
| 26 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 27 | |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 28 | # Overlays |
| 29 | DEVICE_PACKAGE_OVERLAYS += \ |
micky387 | 68ec999 | 2019-12-28 13:35:00 +0100 | [diff] [blame^] | 30 | $(LOCAL_PATH)/overlay \ |
| 31 | vendor/omni/overlay/CarrierConfig |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 32 | |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 33 | # A/B |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 34 | AB_OTA_UPDATER := true |
| 35 | |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 36 | AB_OTA_PARTITIONS += \ |
| 37 | boot \ |
| 38 | dtbo \ |
| 39 | system \ |
| 40 | vbmeta |
| 41 | |
| 42 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 43 | RUN_POSTINSTALL_system=true \ |
| 44 | POSTINSTALL_PATH_system=system/bin/otapreopt_script \ |
| 45 | FILESYSTEM_TYPE_system=ext4 \ |
| 46 | POSTINSTALL_OPTIONAL_system=true |
| 47 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 48 | # ANT+ |
| 49 | PRODUCT_PACKAGES += \ |
| 50 | AntHalService |
| 51 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 52 | # Api |
| 53 | PRODUCT_SHIPPING_API_LEVEL := 28 |
| 54 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 55 | # audio |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 56 | PRODUCT_COPY_FILES += \ |
micky387 | 31fa76b | 2019-11-15 21:52:01 +0100 | [diff] [blame] | 57 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio/audio_policy_configuration.xml \ |
| 58 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_configuration.xml \ |
| 59 | $(LOCAL_PATH)/audio/audio_policy_volumes_ZS630KL.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_volumes_ZS630KL.xml |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 60 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 61 | # Boot control |
Hridya Valsaraju | 9bf1814 | 2018-08-21 21:22:37 -0700 | [diff] [blame] | 62 | PRODUCT_PACKAGES += \ |
| 63 | android.hardware.boot@1.0-impl.recovery \ |
| 64 | bootctrl.msmnile.recovery |
| 65 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 66 | PRODUCT_PACKAGES_DEBUG += \ |
| 67 | bootctl |
| 68 | |
micky387 | 95b3a99 | 2019-06-11 03:21:49 +0200 | [diff] [blame] | 69 | # Charger images |
| 70 | PRODUCT_PACKAGES += \ |
| 71 | omni_charger_res_images \ |
| 72 | animation.txt \ |
| 73 | font_charger.png |
| 74 | |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 75 | # DeviceParts |
| 76 | PRODUCT_PACKAGES += \ |
Marko Man | 015b678 | 2019-09-26 03:22:20 +0200 | [diff] [blame] | 77 | DeviceParts \ |
micky387 | 9844ec5 | 2019-08-07 20:16:37 +0200 | [diff] [blame] | 78 | OmniDisplayManager |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 79 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 80 | # Display |
| 81 | PRODUCT_PACKAGES += \ |
| 82 | libion \ |
| 83 | libtinyxml2 |
| 84 | |
| 85 | PRODUCT_PACKAGES += \ |
| 86 | libtinyalsa |
| 87 | |
Fenglin Wu | c1f19de | 2018-07-10 10:51:08 +0800 | [diff] [blame] | 88 | # Exclude vibrator from InputManager |
| 89 | PRODUCT_COPY_FILES += \ |
| 90 | $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml |
| 91 | |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 92 | # FM |
micky387 | fb82cc7 | 2019-12-03 13:45:53 +0100 | [diff] [blame] | 93 | PRODUCT_PACKAGES += \ |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 94 | FM2 \ |
| 95 | libqcomfm_jni \ |
| 96 | qcom.fmradio |
| 97 | |
micky387 | fb82cc7 | 2019-12-03 13:45:53 +0100 | [diff] [blame] | 98 | PRODUCT_BOOT_JARS += qcom.fmradio |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 99 | |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 100 | # Input |
| 101 | PRODUCT_COPY_FILES += \ |
| 102 | $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \ |
Demon000 | b9538f1 | 2019-05-23 21:11:03 +0200 | [diff] [blame] | 103 | $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \ |
| 104 | $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 105 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 106 | # Live Wallpapers |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | LiveWallpapers \ |
| 109 | LiveWallpapersPicker \ |
| 110 | VisualizationWallpapers \ |
| 111 | librs_jni |
| 112 | |
OrdenKrieger | bb6abee | 2019-08-05 23:51:15 +0200 | [diff] [blame] | 113 | # Lights |
| 114 | PRODUCT_PACKAGES += \ |
| 115 | android.hardware.light@2.0-service.asus_msmnile |
| 116 | |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 117 | # NFC - NQ (NXP) |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 118 | #PRODUCT_PACKAGES += \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 119 | Tag \ |
| 120 | com.android.nfc_extras |
| 121 | |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 122 | #PRODUCT_PACKAGES += \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 123 | android.hardware.nfc@1.1 \ |
| 124 | android.hardware.nfc@1.0 |
| 125 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 126 | # Prebuilt |
| 127 | PRODUCT_COPY_FILES += \ |
| 128 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \ |
| 129 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root) |
| 130 | |
micky387 | 4a9d784 | 2019-10-14 20:53:12 +0200 | [diff] [blame] | 131 | PRODUCT_AAPT_CONFIG := normal |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 132 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 133 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 134 | # Properties |
| 135 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 136 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 137 | # Netutils |
| 138 | PRODUCT_PACKAGES += \ |
| 139 | netutils-wrapper-1.0 \ |
| 140 | libandroid_net |
| 141 | |
| 142 | PRODUCT_PACKAGES += \ |
| 143 | vndk_package |
| 144 | |
| 145 | PRODUCT_PACKAGES += \ |
| 146 | android.hidl.base@1.0 |
| 147 | |
| 148 | PRODUCT_PACKAGES += \ |
micky387 | 9a5e6fb | 2019-08-07 20:26:13 +0200 | [diff] [blame] | 149 | vendor.display.config@1.5 |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 150 | |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 151 | # Remove unwanted packages |
| 152 | PRODUCT_PACKAGES += \ |
micky387 | e568a8a | 2019-12-05 20:38:19 +0100 | [diff] [blame] | 153 | RemovePackages |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 154 | |
Bruno Martins | ff55cad | 2019-09-05 12:17:15 +0100 | [diff] [blame] | 155 | # Soong namespaces |
| 156 | PRODUCT_SOONG_NAMESPACES += \ |
| 157 | $(LOCAL_PATH) |
| 158 | |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 159 | # Telephony |
| 160 | PRODUCT_PACKAGES += \ |
| 161 | ims-ext-common \ |
| 162 | ims_ext_common.xml \ |
| 163 | qti-telephony-hidl-wrapper \ |
| 164 | qti_telephony_hidl_wrapper.xml \ |
| 165 | qti-telephony-utils \ |
| 166 | qti_telephony_utils.xml |
| 167 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 168 | # Update engine |
| 169 | PRODUCT_PACKAGES += \ |
| 170 | otapreopt_script \ |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 171 | update_engine \ |
| 172 | update_engine_sideload \ |
| 173 | update_verifier |
| 174 | |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 175 | PRODUCT_HOST_PACKAGES += \ |
| 176 | brillo_update_payload |
| 177 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 178 | PRODUCT_PACKAGES_DEBUG += \ |
| 179 | update_engine_client |
| 180 | |
Ćukasz Patron | 357f196 | 2019-11-08 11:01:46 +0100 | [diff] [blame] | 181 | # VNDK |
| 182 | PRODUCT_TARGET_VNDK_VERSION := 29 |
| 183 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 184 | # WiFi Display |
| 185 | PRODUCT_PACKAGES += \ |
| 186 | libnl |