blob: 6406afaa37449cb1af97d464b4928cc6cdcd8351 [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
Marko Manac931372020-03-14 21:02:38 +010051PRODUCT_PACKAGES += \
52 omnipreopt_script
53
micky38781c15c82021-05-21 12:59:35 +020054# tell update_engine to not change dynamic partition table during updates
55# needed since our qti_dynamic_partitions does not include
56# vendor and odm and we also dont want to AB update them
57TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
58
micky38718f07ac2019-06-10 00:40:50 +020059# ANT+
60PRODUCT_PACKAGES += \
61 AntHalService
62
micky38782dbd1a2019-09-17 08:11:02 +020063# Api
micky38781c15c82021-05-21 12:59:35 +020064PRODUCT_SHIPPING_API_LEVEL := 30
micky38782dbd1a2019-09-17 08:11:02 +020065
micky38718f07ac2019-06-10 00:40:50 +020066# audio
LuK133769135952018-09-09 17:39:16 +020067PRODUCT_COPY_FILES += \
micky3877564a9b2020-12-30 22:14:37 +010068 $(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 +020069 $(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 \
70 $(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 \
71 $(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 +020072
micky3871f4e8bf2020-12-30 22:02:51 +010073# Bluetooth
74PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
75PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
76
77PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
78
79PRODUCT_PACKAGES += BluetoothExt
80PRODUCT_PACKAGES += libbluetooth_qti
81PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
82
micky387e96abca2019-06-11 02:35:20 +020083# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070084PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +020085 android.hardware.boot@1.1-impl.recovery \
86 bootctrl.lahaina.recovery
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070087
micky387e96abca2019-06-11 02:35:20 +020088PRODUCT_PACKAGES_DEBUG += \
89 bootctl
90
micky38795b3a992019-06-11 03:21:49 +020091# Charger images
92PRODUCT_PACKAGES += \
93 omni_charger_res_images \
94 animation.txt \
95 font_charger.png
96
micky38754bf1022019-07-03 03:31:11 +020097# DeviceParts
98PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +020099 DeviceParts
micky38754bf1022019-07-03 03:31:11 +0200100
micky38718f07ac2019-06-10 00:40:50 +0200101# Display
102PRODUCT_PACKAGES += \
103 libion \
104 libtinyxml2
105
106PRODUCT_PACKAGES += \
107 libtinyalsa
108
micky38781c15c82021-05-21 12:59:35 +0200109# fastbootd
110PRODUCT_PACKAGES += \
micky3874b8cbf52021-05-27 02:46:55 +0200111 android.hardware.fastboot@1.0-impl-mock \
micky38781c15c82021-05-21 12:59:35 +0200112 fastbootd
Fenglin Wuc1f19de2018-07-10 10:51:08 +0800113
micky3872a9055a2019-08-22 22:37:25 +0200114# FM
mickael saibia701b822021-02-13 15:43:55 +0100115PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200116 FM2 \
117 libqcomfm_jni \
118 qcom.fmradio
119
mickael saibia701b822021-02-13 15:43:55 +0100120PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200121
micky38722c3b452020-01-04 07:59:01 +0100122# Frameworks
123PRODUCT_PACKAGES += \
124 FrameworksResOverlay
125
micky387d8e31eb2021-02-19 21:23:59 +0100126# HIDL
127PRODUCT_PACKAGES += \
Vachounet726ab212021-01-27 15:32:48 +0100128 android.hidl.base@1.0 \
129 android.hidl.manager@1.0 \
micky387d8e31eb2021-02-19 21:23:59 +0100130 libhidltransport \
131 libhwbinder
132
micky3872e9a6b72019-07-02 20:48:08 +0200133# Input
134PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200135 $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
136 $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
micky3872e9a6b72019-07-02 20:48:08 +0200137 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
micky38781c15c82021-05-21 12:59:35 +0200138 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
micky3872e9a6b72019-07-02 20:48:08 +0200139
micky38718f07ac2019-06-10 00:40:50 +0200140# Live Wallpapers
141PRODUCT_PACKAGES += \
142 LiveWallpapers \
143 LiveWallpapersPicker \
144 VisualizationWallpapers \
145 librs_jni
146
micky38762540312021-03-12 22:43:56 +0100147# NFC
148PRODUCT_PACKAGES += \
149 NfcNci \
micky387e5ae8c72019-08-07 20:01:48 +0200150 Tag \
micky38762540312021-03-12 22:43:56 +0100151 SecureElement \
micky387e5ae8c72019-08-07 20:01:48 +0200152 com.android.nfc_extras
153
micky38718f07ac2019-06-10 00:40:50 +0200154# Prebuilt
155PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200156 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
157 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
158 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
159 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
micky38718f07ac2019-06-10 00:40:50 +0200160
micky3874a9d7842019-10-14 20:53:12 +0200161PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200162PRODUCT_AAPT_PREF_CONFIG := xxhdpi
163
micky38782dbd1a2019-09-17 08:11:02 +0200164# Properties
165BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
166
micky38718f07ac2019-06-10 00:40:50 +0200167# Netutils
168PRODUCT_PACKAGES += \
169 netutils-wrapper-1.0 \
170 libandroid_net
171
172PRODUCT_PACKAGES += \
173 vndk_package
174
micky38781c15c82021-05-21 12:59:35 +0200175# Ramdisk
176PRODUCT_COPY_FILES += \
micky387ff65b632021-05-26 19:58:54 +0200177 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
micky38781c15c82021-05-21 12:59:35 +0200178
micky3879ed76f02019-11-10 08:07:45 +0100179# Remove unwanted packages
180PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100181 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100182
Bruno Martinsff55cad2019-09-05 12:17:15 +0100183# Soong namespaces
184PRODUCT_SOONG_NAMESPACES += \
185 $(LOCAL_PATH)
186
micky38797fff402020-12-30 23:10:35 +0100187# Systemhelper
188PRODUCT_PACKAGES += \
189 vendor.qti.hardware.systemhelper@1.0
190
micky3877fec5952019-09-28 10:19:41 +0200191# Telephony
192PRODUCT_PACKAGES += \
193 ims-ext-common \
194 ims_ext_common.xml \
195 qti-telephony-hidl-wrapper \
196 qti_telephony_hidl_wrapper.xml \
197 qti-telephony-utils \
micky3878459a0c2020-05-01 18:24:34 +0200198 qti_telephony_utils.xml \
199 tcmiface
micky3877fec5952019-09-28 10:19:41 +0200200
micky387be0ade62019-06-11 03:20:23 +0200201# Update engine
202PRODUCT_PACKAGES += \
203 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200204 update_engine \
205 update_engine_sideload \
206 update_verifier
207
micky3870f68c2b2019-09-11 14:28:27 +0200208PRODUCT_HOST_PACKAGES += \
209 brillo_update_payload
210
micky387be0ade62019-06-11 03:20:23 +0200211PRODUCT_PACKAGES_DEBUG += \
212 update_engine_client
213
micky38781c15c82021-05-21 12:59:35 +0200214PRODUCT_BUILD_SUPER_PARTITION := false
215PRODUCT_USE_DYNAMIC_PARTITIONS := true
216
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700217# WiFi
micky38718f07ac2019-06-10 00:40:50 +0200218PRODUCT_PACKAGES += \
Weilun Du7a3891c2020-08-21 14:45:14 -0700219 TetheringOverlay \
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700220 WifiOverlay
micky387d58b6432020-10-09 04:09:07 +0200221
micky387d8e31eb2021-02-19 21:23:59 +0100222# Wifi Display
223PRODUCT_PACKAGES += \
224 libavservices_minijail \
225 libnl \
226
227PRODUCT_BOOT_JARS += \
228 WfdCommon
229
micky387d58b6432020-10-09 04:09:07 +0200230include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk