blob: a15151b88f06df4a68737aaabbaccc3fc6216d84 [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 += \
micky387ec5db572021-06-10 19:46:35 +020091 android.hardware.boot@1.1-impl-qti.recovery \
micky38781c15c82021-05-21 12:59:35 +020092 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
micky38780943e92020-08-20 15:06:57 +0200120# Fingerprint
121PRODUCT_PACKAGES += \
122 omni.biometrics.fingerprint.inscreen@1.0-service.asus_lahaina
123
micky3872a9055a2019-08-22 22:37:25 +0200124# FM
mickael saibia701b822021-02-13 15:43:55 +0100125PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200126 FM2 \
127 libqcomfm_jni \
128 qcom.fmradio
129
mickael saibia701b822021-02-13 15:43:55 +0100130PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200131
micky38722c3b452020-01-04 07:59:01 +0100132# Frameworks
133PRODUCT_PACKAGES += \
134 FrameworksResOverlay
135
micky387d8e31eb2021-02-19 21:23:59 +0100136# HIDL
137PRODUCT_PACKAGES += \
Vachounet726ab212021-01-27 15:32:48 +0100138 android.hidl.base@1.0 \
139 android.hidl.manager@1.0 \
micky387d8e31eb2021-02-19 21:23:59 +0100140 libhidltransport \
141 libhwbinder
142
micky3872e9a6b72019-07-02 20:48:08 +0200143# Input
144PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200145 $(LOCAL_PATH)/keylayout/fts_ts.idc:system/usr/idc/fts_ts.idc \
146 $(LOCAL_PATH)/keylayout/fts_ts.kcm:system/usr/keychars/fts_ts.kcm \
micky3872e9a6b72019-07-02 20:48:08 +0200147 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
micky38781c15c82021-05-21 12:59:35 +0200148 $(LOCAL_PATH)/keylayout/i-rocks_Bluetooth_Keyboard.kl:system/usr/keylayout/i-rocks_Bluetooth_Keyboard.kl
micky3872e9a6b72019-07-02 20:48:08 +0200149
micky38718f07ac2019-06-10 00:40:50 +0200150# Live Wallpapers
151PRODUCT_PACKAGES += \
152 LiveWallpapers \
153 LiveWallpapersPicker \
154 VisualizationWallpapers \
155 librs_jni
156
micky38762540312021-03-12 22:43:56 +0100157# NFC
158PRODUCT_PACKAGES += \
159 NfcNci \
micky387e5ae8c72019-08-07 20:01:48 +0200160 Tag \
micky38762540312021-03-12 22:43:56 +0100161 SecureElement \
micky387e5ae8c72019-08-07 20:01:48 +0200162 com.android.nfc_extras
163
micky38718f07ac2019-06-10 00:40:50 +0200164# Prebuilt
165PRODUCT_COPY_FILES += \
micky38781c15c82021-05-21 12:59:35 +0200166 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/product,product) \
167 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/root,recovery/root) \
168 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system,system) \
169 $(call find-copy-subdir-files,*,device/asus/zenfone8/prebuilt/system_ext,system_ext)
micky38718f07ac2019-06-10 00:40:50 +0200170
micky3874a9d7842019-10-14 20:53:12 +0200171PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200172PRODUCT_AAPT_PREF_CONFIG := xxhdpi
173
micky38782dbd1a2019-09-17 08:11:02 +0200174# Properties
175BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
176
micky38718f07ac2019-06-10 00:40:50 +0200177# Netutils
178PRODUCT_PACKAGES += \
179 netutils-wrapper-1.0 \
180 libandroid_net
181
182PRODUCT_PACKAGES += \
183 vndk_package
184
micky38781c15c82021-05-21 12:59:35 +0200185# Ramdisk
186PRODUCT_COPY_FILES += \
micky387ff65b632021-05-26 19:58:54 +0200187 $(LOCAL_PATH)/fstab.qcom:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/first_stage_ramdisk/fstab.qcom
micky38781c15c82021-05-21 12:59:35 +0200188
micky3879ed76f02019-11-10 08:07:45 +0100189# Remove unwanted packages
190PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100191 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100192
Bruno Martinsff55cad2019-09-05 12:17:15 +0100193# Soong namespaces
194PRODUCT_SOONG_NAMESPACES += \
195 $(LOCAL_PATH)
196
micky38797fff402020-12-30 23:10:35 +0100197# Systemhelper
198PRODUCT_PACKAGES += \
199 vendor.qti.hardware.systemhelper@1.0
200
micky3877fec5952019-09-28 10:19:41 +0200201# Telephony
202PRODUCT_PACKAGES += \
203 ims-ext-common \
204 ims_ext_common.xml \
205 qti-telephony-hidl-wrapper \
206 qti_telephony_hidl_wrapper.xml \
207 qti-telephony-utils \
micky3878459a0c2020-05-01 18:24:34 +0200208 qti_telephony_utils.xml \
209 tcmiface
micky3877fec5952019-09-28 10:19:41 +0200210
micky387be0ade62019-06-11 03:20:23 +0200211# Update engine
212PRODUCT_PACKAGES += \
213 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200214 update_engine \
215 update_engine_sideload \
216 update_verifier
217
micky3870f68c2b2019-09-11 14:28:27 +0200218PRODUCT_HOST_PACKAGES += \
219 brillo_update_payload
220
micky387be0ade62019-06-11 03:20:23 +0200221PRODUCT_PACKAGES_DEBUG += \
222 update_engine_client
223
micky38781c15c82021-05-21 12:59:35 +0200224PRODUCT_BUILD_SUPER_PARTITION := false
225PRODUCT_USE_DYNAMIC_PARTITIONS := true
226
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700227# WiFi
micky38718f07ac2019-06-10 00:40:50 +0200228PRODUCT_PACKAGES += \
Weilun Du7a3891c2020-08-21 14:45:14 -0700229 TetheringOverlay \
Roshan Piusa72d5ee2020-04-24 14:33:28 -0700230 WifiOverlay
micky387d58b6432020-10-09 04:09:07 +0200231
micky387d8e31eb2021-02-19 21:23:59 +0100232# Wifi Display
233PRODUCT_PACKAGES += \
234 libavservices_minijail \
235 libnl \
236
237PRODUCT_BOOT_JARS += \
238 WfdCommon
239
micky387d58b6432020-10-09 04:09:07 +0200240include vendor/qcom/opensource/display-commonsys-intf/config/display-product-system.mk