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