blob: 1c224755c23c07c638002fc8d174dde762f1d191 [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
micky387f50aedd2022-01-06 23:07:47 +010040PRODUCT_EXTRA_VNDK_VERSIONS := 30
micky3877564a9b2020-12-30 22:14:37 +010041
micky3874eedc682019-06-11 02:29:28 +020042# A/B
micky38781c15c82021-05-21 12:59:35 +020043ENABLE_VIRTUAL_AB := true
micky387f24bf3b2021-05-28 08:01:58 +020044$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
micky3874eedc682019-06-11 02:29:28 +020045
46AB_OTA_POSTINSTALL_CONFIG += \
47 RUN_POSTINSTALL_system=true \
Marko Manac931372020-03-14 21:02:38 +010048 POSTINSTALL_PATH_system=system/bin/omnipreopt_script \
micky3874eedc682019-06-11 02:29:28 +020049 FILESYSTEM_TYPE_system=ext4 \
50 POSTINSTALL_OPTIONAL_system=true
51
micky3872640c332021-05-28 14:56:39 +020052AB_OTA_POSTINSTALL_CONFIG += \
53 RUN_POSTINSTALL_vendor=true \
54 POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
55 FILESYSTEM_TYPE_vendor=ext4 \
56 POSTINSTALL_OPTIONAL_vendor=true
57
Marko Manac931372020-03-14 21:02:38 +010058PRODUCT_PACKAGES += \
59 omnipreopt_script
60
micky38781c15c82021-05-21 12:59:35 +020061# tell update_engine to not change dynamic partition table during updates
62# needed since our qti_dynamic_partitions does not include
63# vendor and odm and we also dont want to AB update them
64TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
65
micky38718f07ac2019-06-10 00:40:50 +020066# ANT+
67PRODUCT_PACKAGES += \
68 AntHalService
69
micky38782dbd1a2019-09-17 08:11:02 +020070# Api
micky38781c15c82021-05-21 12:59:35 +020071PRODUCT_SHIPPING_API_LEVEL := 30
micky38782dbd1a2019-09-17 08:11:02 +020072
micky38718f07ac2019-06-10 00:40:50 +020073# audio
LuK133769135952018-09-09 17:39:16 +020074PRODUCT_COPY_FILES += \
micky3877564a9b2020-12-30 22:14:37 +010075 $(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 +020076 $(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 \
77 $(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 \
78 $(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 +020079
micky3871f4e8bf2020-12-30 22:02:51 +010080# Bluetooth
81PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
82PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
83
84PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
85
86PRODUCT_PACKAGES += BluetoothExt
87PRODUCT_PACKAGES += libbluetooth_qti
88PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
89
micky387e96abca2019-06-11 02:35:20 +020090# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070091PRODUCT_PACKAGES += \
micky387ec5db572021-06-10 19:46:35 +020092 android.hardware.boot@1.1-impl-qti.recovery \
micky38781c15c82021-05-21 12:59:35 +020093 bootctrl.lahaina.recovery
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070094
micky387e96abca2019-06-11 02:35:20 +020095PRODUCT_PACKAGES_DEBUG += \
96 bootctl
97
micky38795b3a992019-06-11 03:21:49 +020098# Charger images
99PRODUCT_PACKAGES += \
100 omni_charger_res_images \
101 animation.txt \
102 font_charger.png
103
micky38754bf1022019-07-03 03:31:11 +0200104# DeviceParts
105PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +0200106 DeviceParts
micky38754bf1022019-07-03 03:31:11 +0200107
micky38718f07ac2019-06-10 00:40:50 +0200108# Display
109PRODUCT_PACKAGES += \
110 libion \
111 libtinyxml2
112
113PRODUCT_PACKAGES += \
114 libtinyalsa
115
micky38781c15c82021-05-21 12:59:35 +0200116# fastbootd
117PRODUCT_PACKAGES += \
micky3874b8cbf52021-05-27 02:46:55 +0200118 android.hardware.fastboot@1.0-impl-mock \
micky38781c15c82021-05-21 12:59:35 +0200119 fastbootd
Fenglin Wuc1f19de2018-07-10 10:51:08 +0800120
micky38780943e92020-08-20 15:06:57 +0200121# Fingerprint
122PRODUCT_PACKAGES += \
123 omni.biometrics.fingerprint.inscreen@1.0-service.asus_lahaina
124
micky3872a9055a2019-08-22 22:37:25 +0200125# FM
mickael saibia701b822021-02-13 15:43:55 +0100126PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200127 FM2 \
128 libqcomfm_jni \
129 qcom.fmradio
130
mickael saibia701b822021-02-13 15:43:55 +0100131PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200132
micky38722c3b452020-01-04 07:59:01 +0100133# Frameworks
134PRODUCT_PACKAGES += \
135 FrameworksResOverlay
136
micky387d8e31eb2021-02-19 21:23:59 +0100137# HIDL
138PRODUCT_PACKAGES += \
Vachounet726ab212021-01-27 15:32:48 +0100139 android.hidl.base@1.0 \
140 android.hidl.manager@1.0 \
micky387d8e31eb2021-02-19 21:23:59 +0100141 libhidltransport \
142 libhwbinder
143
micky3872e9a6b72019-07-02 20:48:08 +0200144# Input
145PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200146 $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
147 $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
micky3872e9a6b72019-07-02 20:48:08 +0200148 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
micky38781c15c82021-05-21 12:59:35 +0200149 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
micky3872e9a6b72019-07-02 20:48:08 +0200150
micky38718f07ac2019-06-10 00:40:50 +0200151# Live Wallpapers
152PRODUCT_PACKAGES += \
153 LiveWallpapers \
154 LiveWallpapersPicker \
155 VisualizationWallpapers \
156 librs_jni
157
micky38762540312021-03-12 22:43:56 +0100158# NFC
159PRODUCT_PACKAGES += \
160 NfcNci \
micky387e5ae8c72019-08-07 20:01:48 +0200161 Tag \
micky38762540312021-03-12 22:43:56 +0100162 SecureElement \
micky387e5ae8c72019-08-07 20:01:48 +0200163 com.android.nfc_extras
164
micky38718f07ac2019-06-10 00:40:50 +0200165# Prebuilt
166PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200167 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
168 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
169 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
170 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
micky38718f07ac2019-06-10 00:40:50 +0200171
micky3874a9d7842019-10-14 20:53:12 +0200172PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200173PRODUCT_AAPT_PREF_CONFIG := xxhdpi
174
micky38782dbd1a2019-09-17 08:11:02 +0200175# Properties
176BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
177
micky38718f07ac2019-06-10 00:40:50 +0200178# Netutils
179PRODUCT_PACKAGES += \
180 netutils-wrapper-1.0 \
181 libandroid_net
182
183PRODUCT_PACKAGES += \
184 vndk_package
185
micky38781c15c82021-05-21 12:59:35 +0200186# Ramdisk
187PRODUCT_COPY_FILES += \
micky387ff65b632021-05-26 19:58:54 +0200188 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
micky38781c15c82021-05-21 12:59:35 +0200189
micky3879ed76f02019-11-10 08:07:45 +0100190# Remove unwanted packages
191PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100192 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100193
Bruno Martinsff55cad2019-09-05 12:17:15 +0100194# Soong namespaces
195PRODUCT_SOONG_NAMESPACES += \
196 $(LOCAL_PATH)
197
micky38797fff402020-12-30 23:10:35 +0100198# Systemhelper
199PRODUCT_PACKAGES += \
200 vendor.qti.hardware.systemhelper@1.0
201
micky3877fec5952019-09-28 10:19:41 +0200202# Telephony
203PRODUCT_PACKAGES += \
204 ims-ext-common \
205 ims_ext_common.xml \
206 qti-telephony-hidl-wrapper \
207 qti_telephony_hidl_wrapper.xml \
208 qti-telephony-utils \
micky3878459a0c2020-05-01 18:24:34 +0200209 qti_telephony_utils.xml \
210 tcmiface
micky3877fec5952019-09-28 10:19:41 +0200211
micky387be0ade62019-06-11 03:20:23 +0200212# Update engine
213PRODUCT_PACKAGES += \
214 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200215 update_engine \
216 update_engine_sideload \
217 update_verifier
218
micky3870f68c2b2019-09-11 14:28:27 +0200219PRODUCT_HOST_PACKAGES += \
220 brillo_update_payload
221
micky387be0ade62019-06-11 03:20:23 +0200222PRODUCT_PACKAGES_DEBUG += \
223 update_engine_client
224
micky38781c15c82021-05-21 12:59:35 +0200225PRODUCT_BUILD_SUPER_PARTITION := false
226PRODUCT_USE_DYNAMIC_PARTITIONS := true
227
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700228# WiFi
micky38718f07ac2019-06-10 00:40:50 +0200229PRODUCT_PACKAGES += \
Weilun Du7a3891c2020-08-21 14:45:14 -0700230 TetheringOverlay \
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700231 WifiOverlay
micky387d58b6432020-10-09 04:09:07 +0200232
micky387d8e31eb2021-02-19 21:23:59 +0100233# Wifi Display
234PRODUCT_PACKAGES += \
235 libavservices_minijail \
236 libnl \
237
238PRODUCT_BOOT_JARS += \
239 WfdCommon
240
micky387d58b6432020-10-09 04:09:07 +0200241include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk