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 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 55 | # Boot control |
| 56 | PRODUCT_PACKAGES_DEBUG += \ |
| 57 | bootctl |
| 58 | |
| 59 | PRODUCT_STATIC_BOOT_CONTROL_HAL := \ |
| 60 | bootctrl.sm8150 \ |
| 61 | libcutils \ |
| 62 | libgptutils \ |
| 63 | libz |
| 64 | |
micky387 | 52076e8 | 2019-06-11 02:23:57 +0200 | [diff] [blame] | 65 | # Camera |
| 66 | PRODUCT_PACKAGES += \ |
| 67 | SnapdragonCamera2 |
| 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 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 75 | # Display |
| 76 | PRODUCT_PACKAGES += \ |
| 77 | libion \ |
| 78 | libtinyxml2 |
| 79 | |
| 80 | PRODUCT_PACKAGES += \ |
| 81 | libtinyalsa |
| 82 | |
| 83 | PRODUCT_PACKAGES += \ |
| 84 | ld.config.txt |
| 85 | |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame^] | 86 | # Input |
| 87 | PRODUCT_COPY_FILES += \ |
| 88 | $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \ |
| 89 | $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl |
| 90 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 91 | # Live Wallpapers |
| 92 | PRODUCT_PACKAGES += \ |
| 93 | LiveWallpapers \ |
| 94 | LiveWallpapersPicker \ |
| 95 | VisualizationWallpapers \ |
| 96 | librs_jni |
| 97 | |
| 98 | # Permissions |
| 99 | PRODUCT_COPY_FILES += \ |
| 100 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.audio.low_latency.xml \ |
| 101 | frameworks/native/data/etc/android.hardware.audio.output.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.audio.output.xml \ |
| 102 | frameworks/native/data/etc/android.hardware.audio.pro.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.audio.pro.xml \ |
| 103 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.bluetooth_le.xml \ |
| 104 | frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.bluetooth.xml \ |
| 105 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 106 | frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.camera.front.xml \ |
| 107 | frameworks/native/data/etc/android.hardware.camera.ar.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.camera.ar.xml \ |
| 108 | frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.camera.full.xml \ |
| 109 | frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.camera.raw.xml \ |
| 110 | frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.fingerprint.xml \ |
| 111 | frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.location.gps.xml \ |
| 112 | frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.nfc.hcef.xml \ |
| 113 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.nfc.hce.xml \ |
| 114 | frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.nfc.xml \ |
| 115 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.opengles.aep.xml \ |
| 116 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 117 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.compass.xml \ |
| 118 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 119 | frameworks/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.light.xml \ |
| 120 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 121 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 122 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 123 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
| 124 | frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ |
| 125 | frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.relative_humidity.xml \ |
| 126 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.sensor.hifi_sensors.xml \ |
| 127 | frameworks/native/data/etc/android.hardware.telephony.cdma.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.cdma.xml \ |
| 128 | frameworks/native/data/etc/android.hardware.telephony.gsm.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.gsm.xml \ |
| 129 | frameworks/native/data/etc/android.hardware.telephony.carrierlock.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.carrierlock.xml \ |
| 130 | frameworks/native/data/etc/android.hardware.telephony.euicc.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.telephony.euicc.xml \ |
| 131 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 132 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.usb.accessory.xml \ |
| 133 | frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.usb.host.xml \ |
| 134 | frameworks/native/data/etc/android.hardware.vulkan.level-0.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.vulkan.level.xml \ |
| 135 | frameworks/native/data/etc/android.hardware.vulkan.version-1_1.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.vulkan.version.xml \ |
| 136 | frameworks/native/data/etc/android.hardware.vulkan.compute-0.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.vulkan.compute-0.xml \ |
| 137 | frameworks/native/data/etc/android.hardware.vr.high_performance.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.vr.high_performance.xml \ |
| 138 | frameworks/native/data/etc/android.hardware.wifi.passpoint.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.wifi.passpoint.xml \ |
| 139 | frameworks/native/data/etc/android.hardware.wifi.aware.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.wifi.aware.xml \ |
| 140 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.wifi.direct.xml \ |
| 141 | frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.hardware.wifi.xml \ |
| 142 | frameworks/native/data/etc/android.software.midi.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.midi.xml \ |
| 143 | frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/android.software.sip.voip.xml \ |
| 144 | frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/handheld_core_hardware.xml \ |
| 145 | frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/com.android.nfc_extras.xml \ |
| 146 | frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/com.nxp.mifare.xml |
| 147 | |
| 148 | PRODUCT_COPY_FILES += \ |
| 149 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_audio.xml \ |
| 150 | frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_telephony.xml \ |
| 151 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/media_codecs_google_video.xml |
| 152 | |
| 153 | # Prebuilt |
| 154 | PRODUCT_COPY_FILES += \ |
| 155 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \ |
| 156 | $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root) |
| 157 | |
| 158 | PRODUCT_AAPT_CONFIG := xxhdpi |
| 159 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 160 | |
| 161 | # Netutils |
| 162 | PRODUCT_PACKAGES += \ |
| 163 | netutils-wrapper-1.0 \ |
| 164 | libandroid_net |
| 165 | |
| 166 | PRODUCT_PACKAGES += \ |
| 167 | vndk_package |
| 168 | |
| 169 | PRODUCT_PACKAGES += \ |
| 170 | android.hidl.base@1.0 |
| 171 | |
| 172 | PRODUCT_PACKAGES += \ |
| 173 | vendor.display.config@1.7 |
| 174 | |
| 175 | # Telephony |
| 176 | PRODUCT_PACKAGES += \ |
| 177 | telephony-ext |
| 178 | |
| 179 | PRODUCT_BOOT_JARS += \ |
| 180 | telephony-ext |
| 181 | |
| 182 | # SP-NDK: |
| 183 | PRODUCT_PACKAGES += \ |
| 184 | libvulkan |
| 185 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 186 | # Update engine |
| 187 | PRODUCT_PACKAGES += \ |
| 188 | otapreopt_script \ |
| 189 | brillo_update_payload \ |
| 190 | update_engine \ |
| 191 | update_engine_sideload \ |
| 192 | update_verifier |
| 193 | |
| 194 | PRODUCT_PACKAGES_DEBUG += \ |
| 195 | update_engine_client |
| 196 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 197 | # WiFi Display |
| 198 | PRODUCT_PACKAGES += \ |
| 199 | libnl |