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