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 | # |
| 22 | $(call inherit-product, vendor/asus/zenfone6/device-vendor.mk) |
| 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 += \ |
| 56 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml |
| 57 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 58 | # Boot control |
| 59 | PRODUCT_PACKAGES_DEBUG += \ |
| 60 | bootctl |
| 61 | |
| 62 | PRODUCT_STATIC_BOOT_CONTROL_HAL := \ |
micky387 | 03cfada | 2019-07-27 07:43:19 +0200 | [diff] [blame] | 63 | bootctrl.msmnile \ |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 64 | libcutils \ |
| 65 | libgptutils \ |
| 66 | libz |
| 67 | |
micky387 | 52076e8 | 2019-06-11 02:23:57 +0200 | [diff] [blame] | 68 | # Camera |
| 69 | PRODUCT_PACKAGES += \ |
| 70 | SnapdragonCamera2 |
| 71 | |
micky387 | 95b3a99 | 2019-06-11 03:21:49 +0200 | [diff] [blame] | 72 | # Charger images |
| 73 | PRODUCT_PACKAGES += \ |
| 74 | omni_charger_res_images \ |
| 75 | animation.txt \ |
| 76 | font_charger.png |
| 77 | |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 78 | # DeviceParts |
| 79 | PRODUCT_PACKAGES += \ |
| 80 | DeviceParts |
| 81 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 82 | # Display |
| 83 | PRODUCT_PACKAGES += \ |
| 84 | libion \ |
| 85 | libtinyxml2 |
| 86 | |
| 87 | PRODUCT_PACKAGES += \ |
| 88 | libtinyalsa |
| 89 | |
| 90 | PRODUCT_PACKAGES += \ |
| 91 | ld.config.txt |
| 92 | |
Fenglin Wu | c1f19de | 2018-07-10 10:51:08 +0800 | [diff] [blame] | 93 | # Exclude vibrator from InputManager |
| 94 | PRODUCT_COPY_FILES += \ |
| 95 | $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml |
| 96 | |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 97 | # Input |
| 98 | PRODUCT_COPY_FILES += \ |
| 99 | $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \ |
| 100 | $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl |
| 101 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 102 | # Live Wallpapers |
| 103 | PRODUCT_PACKAGES += \ |
| 104 | LiveWallpapers \ |
| 105 | LiveWallpapersPicker \ |
| 106 | VisualizationWallpapers \ |
| 107 | librs_jni |
| 108 | |
Luca Stefani | 63bdfc1 | 2019-07-14 18:44:22 +0200 | [diff] [blame^] | 109 | # Lights |
| 110 | PRODUCT_PACKAGES += \ |
| 111 | lights.msmnile:64 |
| 112 | |
Luca Stefani | 13643de | 2019-07-10 18:52:13 +0200 | [diff] [blame] | 113 | # Media |
| 114 | PRODUCT_COPY_FILES += \ |
| 115 | $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml |
| 116 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 117 | # Prebuilt |
| 118 | PRODUCT_COPY_FILES += \ |
| 119 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \ |
| 120 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root) |
| 121 | |
| 122 | PRODUCT_AAPT_CONFIG := xxhdpi |
| 123 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 124 | |
Peter Cai | 926c1ef | 2019-08-05 10:47:16 +0200 | [diff] [blame] | 125 | # Rootdir |
| 126 | PRODUCT_COPY_FILES += \ |
| 127 | $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom |
| 128 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 129 | # Netutils |
| 130 | PRODUCT_PACKAGES += \ |
| 131 | netutils-wrapper-1.0 \ |
| 132 | libandroid_net |
| 133 | |
| 134 | PRODUCT_PACKAGES += \ |
| 135 | vndk_package |
| 136 | |
| 137 | PRODUCT_PACKAGES += \ |
| 138 | android.hidl.base@1.0 |
| 139 | |
| 140 | PRODUCT_PACKAGES += \ |
| 141 | vendor.display.config@1.7 |
| 142 | |
| 143 | # Telephony |
| 144 | PRODUCT_PACKAGES += \ |
| 145 | telephony-ext |
| 146 | |
| 147 | PRODUCT_BOOT_JARS += \ |
| 148 | telephony-ext |
| 149 | |
| 150 | # SP-NDK: |
| 151 | PRODUCT_PACKAGES += \ |
| 152 | libvulkan |
| 153 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 154 | # Update engine |
| 155 | PRODUCT_PACKAGES += \ |
| 156 | otapreopt_script \ |
| 157 | brillo_update_payload \ |
| 158 | update_engine \ |
| 159 | update_engine_sideload \ |
| 160 | update_verifier |
| 161 | |
| 162 | PRODUCT_PACKAGES_DEBUG += \ |
| 163 | update_engine_client |
| 164 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 165 | # WiFi Display |
| 166 | PRODUCT_PACKAGES += \ |
| 167 | libnl |