blob: 695f2b10f8cc063f1091197b4518f510ddbe3669 [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
micky387daa4c6b2021-05-28 14:44:38 +020024# Include GSI keys
25$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
26
micky387a8d96182019-06-11 13:36:14 +020027# Overlays
28DEVICE_PACKAGE_OVERLAYS += \
micky38768ec9992019-12-28 13:35:00 +010029 $(LOCAL_PATH)/overlay \
30 vendor/omni/overlay/CarrierConfig
micky387a8d96182019-06-11 13:36:14 +020031
micky3877564a9b2020-12-30 22:14:37 +010032# VNDK
33PRODUCT_TARGET_VNDK_VERSION := 30
34
micky3874eedc682019-06-11 02:29:28 +020035# A/B
micky38781c15c82021-05-21 12:59:35 +020036ENABLE_VIRTUAL_AB := true
micky387f24bf3b2021-05-28 08:01:58 +020037$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
micky3874eedc682019-06-11 02:29:28 +020038
39AB_OTA_POSTINSTALL_CONFIG += \
40 RUN_POSTINSTALL_system=true \
Marko Manac931372020-03-14 21:02:38 +010041 POSTINSTALL_PATH_system=system/bin/omnipreopt_script \
micky3874eedc682019-06-11 02:29:28 +020042 FILESYSTEM_TYPE_system=ext4 \
43 POSTINSTALL_OPTIONAL_system=true
44
Marko Manac931372020-03-14 21:02:38 +010045PRODUCT_PACKAGES += \
46 omnipreopt_script
47
micky38781c15c82021-05-21 12:59:35 +020048# tell update_engine to not change dynamic partition table during updates
49# needed since our qti_dynamic_partitions does not include
50# vendor and odm and we also dont want to AB update them
51TARGET_ENFORCE_AB_OTA_PARTITION_LIST := true
52
micky38718f07ac2019-06-10 00:40:50 +020053# ANT+
54PRODUCT_PACKAGES += \
55 AntHalService
56
micky38782dbd1a2019-09-17 08:11:02 +020057# Api
micky38781c15c82021-05-21 12:59:35 +020058PRODUCT_SHIPPING_API_LEVEL := 30
micky38782dbd1a2019-09-17 08:11:02 +020059
micky38718f07ac2019-06-10 00:40:50 +020060# audio
LuK133769135952018-09-09 17:39:16 +020061PRODUCT_COPY_FILES += \
micky3877564a9b2020-12-30 22:14:37 +010062 $(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 +020063 $(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 \
64 $(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 \
65 $(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 +020066
micky3871f4e8bf2020-12-30 22:02:51 +010067# Bluetooth
68PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/packages/apps/Bluetooth
69PRODUCT_SOONG_NAMESPACES += vendor/qcom/opensource/commonsys/system/bt/conf
70
71PRODUCT_PACKAGE_OVERLAYS += vendor/qcom/opensource/commonsys-intf/bluetooth/overlay/qva
72
73PRODUCT_PACKAGES += BluetoothExt
74PRODUCT_PACKAGES += libbluetooth_qti
75PRODUCT_PACKAGES += vendor.qti.hardware.bluetooth_dun-V1.0-java
76
micky387e96abca2019-06-11 02:35:20 +020077# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070078PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +020079 android.hardware.boot@1.1-impl.recovery \
80 bootctrl.lahaina.recovery
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070081
micky387e96abca2019-06-11 02:35:20 +020082PRODUCT_PACKAGES_DEBUG += \
83 bootctl
84
micky38795b3a992019-06-11 03:21:49 +020085# Charger images
86PRODUCT_PACKAGES += \
87 omni_charger_res_images \
88 animation.txt \
89 font_charger.png
90
micky38754bf1022019-07-03 03:31:11 +020091# DeviceParts
92PRODUCT_PACKAGES += \
micky38781c15c82021-05-21 12:59:35 +020093 DeviceParts
micky38754bf1022019-07-03 03:31:11 +020094
micky38718f07ac2019-06-10 00:40:50 +020095# Display
96PRODUCT_PACKAGES += \
97 libion \
98 libtinyxml2
99
100PRODUCT_PACKAGES += \
101 libtinyalsa
102
micky38781c15c82021-05-21 12:59:35 +0200103# fastbootd
104PRODUCT_PACKAGES += \
micky3874b8cbf52021-05-27 02:46:55 +0200105 android.hardware.fastboot@1.0-impl-mock \
micky38781c15c82021-05-21 12:59:35 +0200106 fastbootd
Fenglin Wuc1f19de2018-07-10 10:51:08 +0800107
micky3872a9055a2019-08-22 22:37:25 +0200108# FM
mickael saibia701b822021-02-13 15:43:55 +0100109PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200110 FM2 \
111 libqcomfm_jni \
112 qcom.fmradio
113
mickael saibia701b822021-02-13 15:43:55 +0100114PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200115
micky38722c3b452020-01-04 07:59:01 +0100116# Frameworks
117PRODUCT_PACKAGES += \
118 FrameworksResOverlay
119
micky387d8e31eb2021-02-19 21:23:59 +0100120# HIDL
121PRODUCT_PACKAGES += \
Vachounet726ab212021-01-27 15:32:48 +0100122 android.hidl.base@1.0 \
123 android.hidl.manager@1.0 \
micky387d8e31eb2021-02-19 21:23:59 +0100124 libhidltransport \
125 libhwbinder
126
micky3872e9a6b72019-07-02 20:48:08 +0200127# Input
128PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200129 $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
130 $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
micky3872e9a6b72019-07-02 20:48:08 +0200131 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
micky38781c15c82021-05-21 12:59:35 +0200132 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
micky3872e9a6b72019-07-02 20:48:08 +0200133
micky38718f07ac2019-06-10 00:40:50 +0200134# Live Wallpapers
135PRODUCT_PACKAGES += \
136 LiveWallpapers \
137 LiveWallpapersPicker \
138 VisualizationWallpapers \
139 librs_jni
140
micky38762540312021-03-12 22:43:56 +0100141# NFC
142PRODUCT_PACKAGES += \
143 NfcNci \
micky387e5ae8c72019-08-07 20:01:48 +0200144 Tag \
micky38762540312021-03-12 22:43:56 +0100145 SecureElement \
micky387e5ae8c72019-08-07 20:01:48 +0200146 com.android.nfc_extras
147
micky38718f07ac2019-06-10 00:40:50 +0200148# Prebuilt
149PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200150 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
151 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
152 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
153 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
micky38718f07ac2019-06-10 00:40:50 +0200154
micky3874a9d7842019-10-14 20:53:12 +0200155PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200156PRODUCT_AAPT_PREF_CONFIG := xxhdpi
157
micky38782dbd1a2019-09-17 08:11:02 +0200158# Properties
159BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
160
micky38718f07ac2019-06-10 00:40:50 +0200161# Netutils
162PRODUCT_PACKAGES += \
163 netutils-wrapper-1.0 \
164 libandroid_net
165
166PRODUCT_PACKAGES += \
167 vndk_package
168
micky38781c15c82021-05-21 12:59:35 +0200169# Ramdisk
170PRODUCT_COPY_FILES += \
micky387ff65b632021-05-26 19:58:54 +0200171 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
micky38781c15c82021-05-21 12:59:35 +0200172
micky3879ed76f02019-11-10 08:07:45 +0100173# Remove unwanted packages
174PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100175 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100176
Bruno Martinsff55cad2019-09-05 12:17:15 +0100177# Soong namespaces
178PRODUCT_SOONG_NAMESPACES += \
179 $(LOCAL_PATH)
180
micky38797fff402020-12-30 23:10:35 +0100181# Systemhelper
182PRODUCT_PACKAGES += \
183 vendor.qti.hardware.systemhelper@1.0
184
micky3877fec5952019-09-28 10:19:41 +0200185# Telephony
186PRODUCT_PACKAGES += \
187 ims-ext-common \
188 ims_ext_common.xml \
189 qti-telephony-hidl-wrapper \
190 qti_telephony_hidl_wrapper.xml \
191 qti-telephony-utils \
micky3878459a0c2020-05-01 18:24:34 +0200192 qti_telephony_utils.xml \
193 tcmiface
micky3877fec5952019-09-28 10:19:41 +0200194
micky387be0ade62019-06-11 03:20:23 +0200195# Update engine
196PRODUCT_PACKAGES += \
197 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200198 update_engine \
199 update_engine_sideload \
200 update_verifier
201
micky3870f68c2b2019-09-11 14:28:27 +0200202PRODUCT_HOST_PACKAGES += \
203 brillo_update_payload
204
micky387be0ade62019-06-11 03:20:23 +0200205PRODUCT_PACKAGES_DEBUG += \
206 update_engine_client
207
micky38781c15c82021-05-21 12:59:35 +0200208PRODUCT_BUILD_SUPER_PARTITION := false
209PRODUCT_USE_DYNAMIC_PARTITIONS := true
210
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700211# WiFi
micky38718f07ac2019-06-10 00:40:50 +0200212PRODUCT_PACKAGES += \
Weilun Du7a3891c2020-08-21 14:45:14 -0700213 TetheringOverlay \
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700214 WifiOverlay
micky387d58b6432020-10-09 04:09:07 +0200215
micky387d8e31eb2021-02-19 21:23:59 +0100216# Wifi Display
217PRODUCT_PACKAGES += \
218 libavservices_minijail \
219 libnl \
220
221PRODUCT_BOOT_JARS += \
222 WfdCommon
223
micky387d58b6432020-10-09 04:09:07 +0200224include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk