blob: 2f58dd78128c0f14fa3d837a90147e1102658592 [file] [log] [blame]
micky38718f07ac2019-06-10 00:40:50 +02001# 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#
micky38781c15c82021-05-21 12:59:35 +020022$(call inherit-product, vendor/asus/zenfone8/zenfone8-vendor.mk)
micky38718f07ac2019-06-10 00:40:50 +020023
David Ng3a95e4b2020-06-16 18:07:14 -070024# fusefs / disable sdcardfs usage
25$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
26
micky387daa4c6b2021-05-28 14:44:38 +020027# Include GSI keys
28$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
29
micky387536715a2021-05-30 02:32:41 +020030# Enable updating of APEXes
31$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
32
micky387a8d96182019-06-11 13:36:14 +020033# Overlays
34DEVICE_PACKAGE_OVERLAYS += \
micky38768ec9992019-12-28 13:35:00 +010035 $(LOCAL_PATH)/overlay \
36 vendor/omni/overlay/CarrierConfig
micky387a8d96182019-06-11 13:36:14 +020037
micky3877564a9b2020-12-30 22:14:37 +010038# VNDK
39PRODUCT_TARGET_VNDK_VERSION := 30
40
micky3874eedc682019-06-11 02:29:28 +020041# A/B
micky38781c15c82021-05-21 12:59:35 +020042ENABLE_VIRTUAL_AB := true
micky387f24bf3b2021-05-28 08:01:58 +020043$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
micky3874eedc682019-06-11 02:29:28 +020044
45AB_OTA_POSTINSTALL_CONFIG += \
46 RUN_POSTINSTALL_system=true \
Marko Manac931372020-03-14 21:02:38 +010047 POSTINSTALL_PATH_system=system/bin/omnipreopt_script \
micky3874eedc682019-06-11 02:29:28 +020048 FILESYSTEM_TYPE_system=ext4 \
49 POSTINSTALL_OPTIONAL_system=true
50
micky3872640c332021-05-28 14:56:39 +020051AB_OTA_POSTINSTALL_CONFIG += \
52 RUN_POSTINSTALL_vendor=true \
53 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
54 FILESYSTEM_TYPE_vendor=ext4 \
55 POSTINSTALL_OPTIONAL_vendor=true
56
Marko Manac931372020-03-14 21:02:38 +010057PRODUCT_PACKAGES += \
58 omnipreopt_script
59
micky38781c15c82021-05-21 12:59:35 +020060# tell update_engine to not change dynamic partition table during updates
61# needed since our qti_dynamic_partitions does not include
62# vendor and odm and we also dont want to AB update them
63TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
64
micky38718f07ac2019-06-10 00:40:50 +020065# ANT+
66PRODUCT_PACKAGES += \
67 AntHalService
68
micky38782dbd1a2019-09-17 08:11:02 +020069# Api
micky38781c15c82021-05-21 12:59:35 +020070PRODUCT_SHIPPING_API_LEVEL := 30
micky38782dbd1a2019-09-17 08:11:02 +020071
micky38718f07ac2019-06-10 00:40:50 +020072# audio
LuK133769135952018-09-09 17:39:16 +020073PRODUCT_COPY_FILES += \
micky3877564a9b2020-12-30 22:14:37 +010074 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
micky38781c15c82021-05-21 12:59:35 +020075 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/ZS590KS/audio_policy_configuration_ZS590KS.xml \
76 $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/ZS590KS/audio_policy_volumes_ZS590KS.xml \
77 $(LOCAL_PATH)/audio/audio_policy_volumes.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes.xml
LuK133769135952018-09-09 17:39:16 +020078
micky3871f4e8bf2020-12-30 22:02:51 +010079# Bluetooth
80PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
81PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
82
83PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
84
85PRODUCT_PACKAGES += BluetoothExt
86PRODUCT_PACKAGES += libbluetooth_qti
87PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
88
micky387e96abca2019-06-11 02:35:20 +020089# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070090PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +020091 android.hardware.boot@1.1-impl.recovery \
92 bootctrl.lahaina.recovery
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070093
micky387e96abca2019-06-11 02:35:20 +020094PRODUCT_PACKAGES_DEBUG += \
95 bootctl
96
micky38795b3a992019-06-11 03:21:49 +020097# Charger images
98PRODUCT_PACKAGES += \
99 omni_charger_res_images \
100 animation.txt \
101 font_charger.png
102
micky38754bf1022019-07-03 03:31:11 +0200103# DeviceParts
104PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +0200105 DeviceParts
micky38754bf1022019-07-03 03:31:11 +0200106
micky38718f07ac2019-06-10 00:40:50 +0200107# Display
108PRODUCT_PACKAGES += \
109 libion \
110 libtinyxml2
111
112PRODUCT_PACKAGES += \
113 libtinyalsa
114
micky38781c15c82021-05-21 12:59:35 +0200115# fastbootd
116PRODUCT_PACKAGES += \
micky3874b8cbf52021-05-27 02:46:55 +0200117 android.hardware.fastboot@1.0-impl-mock \
micky38781c15c82021-05-21 12:59:35 +0200118 fastbootd
Fenglin Wuc1f19de2018-07-10 10:51:08 +0800119
micky3872a9055a2019-08-22 22:37:25 +0200120# FM
mickael saibia701b822021-02-13 15:43:55 +0100121PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200122 FM2 \
123 libqcomfm_jni \
124 qcom.fmradio
125
mickael saibia701b822021-02-13 15:43:55 +0100126PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200127
micky38722c3b452020-01-04 07:59:01 +0100128# Frameworks
129PRODUCT_PACKAGES += \
130 FrameworksResOverlay
131
micky387d8e31eb2021-02-19 21:23:59 +0100132# HIDL
133PRODUCT_PACKAGES += \
Vachounet726ab212021-01-27 15:32:48 +0100134 android.hidl.base@1.0 \
135 android.hidl.manager@1.0 \
micky387d8e31eb2021-02-19 21:23:59 +0100136 libhidltransport \
137 libhwbinder
138
micky3872e9a6b72019-07-02 20:48:08 +0200139# Input
140PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200141 $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
142 $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
micky3872e9a6b72019-07-02 20:48:08 +0200143 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
micky38781c15c82021-05-21 12:59:35 +0200144 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
micky3872e9a6b72019-07-02 20:48:08 +0200145
micky38718f07ac2019-06-10 00:40:50 +0200146# Live Wallpapers
147PRODUCT_PACKAGES += \
148 LiveWallpapers \
149 LiveWallpapersPicker \
150 VisualizationWallpapers \
151 librs_jni
152
micky38762540312021-03-12 22:43:56 +0100153# NFC
154PRODUCT_PACKAGES += \
155 NfcNci \
micky387e5ae8c72019-08-07 20:01:48 +0200156 Tag \
micky38762540312021-03-12 22:43:56 +0100157 SecureElement \
micky387e5ae8c72019-08-07 20:01:48 +0200158 com.android.nfc_extras
159
micky38718f07ac2019-06-10 00:40:50 +0200160# Prebuilt
161PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200162 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
163 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
164 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
165 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
micky38718f07ac2019-06-10 00:40:50 +0200166
micky3874a9d7842019-10-14 20:53:12 +0200167PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200168PRODUCT_AAPT_PREF_CONFIG := xxhdpi
169
micky38782dbd1a2019-09-17 08:11:02 +0200170# Properties
171BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
172
micky38718f07ac2019-06-10 00:40:50 +0200173# Netutils
174PRODUCT_PACKAGES += \
175 netutils-wrapper-1.0 \
176 libandroid_net
177
178PRODUCT_PACKAGES += \
179 vndk_package
180
micky38781c15c82021-05-21 12:59:35 +0200181# Ramdisk
182PRODUCT_COPY_FILES += \
micky387ff65b632021-05-26 19:58:54 +0200183 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
micky38781c15c82021-05-21 12:59:35 +0200184
micky3879ed76f02019-11-10 08:07:45 +0100185# Remove unwanted packages
186PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100187 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100188
Bruno Martinsff55cad2019-09-05 12:17:15 +0100189# Soong namespaces
190PRODUCT_SOONG_NAMESPACES += \
191 $(LOCAL_PATH)
192
micky38797fff402020-12-30 23:10:35 +0100193# Systemhelper
194PRODUCT_PACKAGES += \
195 vendor.qti.hardware.systemhelper@1.0
196
micky3877fec5952019-09-28 10:19:41 +0200197# Telephony
198PRODUCT_PACKAGES += \
199 ims-ext-common \
200 ims_ext_common.xml \
201 qti-telephony-hidl-wrapper \
202 qti_telephony_hidl_wrapper.xml \
203 qti-telephony-utils \
micky3878459a0c2020-05-01 18:24:34 +0200204 qti_telephony_utils.xml \
205 tcmiface
micky3877fec5952019-09-28 10:19:41 +0200206
micky387be0ade62019-06-11 03:20:23 +0200207# Update engine
208PRODUCT_PACKAGES += \
209 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200210 update_engine \
211 update_engine_sideload \
212 update_verifier
213
micky3870f68c2b2019-09-11 14:28:27 +0200214PRODUCT_HOST_PACKAGES += \
215 brillo_update_payload
216
micky387be0ade62019-06-11 03:20:23 +0200217PRODUCT_PACKAGES_DEBUG += \
218 update_engine_client
219
micky38781c15c82021-05-21 12:59:35 +0200220PRODUCT_BUILD_SUPER_PARTITION := false
221PRODUCT_USE_DYNAMIC_PARTITIONS := true
222
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700223# WiFi
micky38718f07ac2019-06-10 00:40:50 +0200224PRODUCT_PACKAGES += \
Weilun Du7a3891c2020-08-21 14:45:14 -0700225 TetheringOverlay \
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700226 WifiOverlay
micky387d58b6432020-10-09 04:09:07 +0200227
micky387d8e31eb2021-02-19 21:23:59 +0100228# Wifi Display
229PRODUCT_PACKAGES += \
230 libavservices_minijail \
231 libnl \
232
233PRODUCT_BOOT_JARS += \
234 WfdCommon
235
micky387d58b6432020-10-09 04:09:07 +0200236include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk