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