blob: c96282ba23e7936f183854476c6916d2717760dd [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#
micky387619d9122019-09-01 23:51:31 +020022$(call inherit-product, vendor/asus/zenfone6/zenfone6-vendor.mk)
micky38718f07ac2019-06-10 00:40:50 +020023$(call inherit-product-if-exists, vendor/gapps/arm64/arm64-vendor.mk)
24
Luca Stefani9629b322019-09-12 23:47:56 +020025# Enable updating of APEXes
26$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
27
micky387a8d96182019-06-11 13:36:14 +020028# Overlays
29DEVICE_PACKAGE_OVERLAYS += \
30 $(LOCAL_PATH)/overlay
31
micky3874eedc682019-06-11 02:29:28 +020032# A/B
micky38782dbd1a2019-09-17 08:11:02 +020033AB_OTA_UPDATER := true
34
micky3874eedc682019-06-11 02:29:28 +020035AB_OTA_PARTITIONS += \
36 boot \
37 dtbo \
38 system \
39 vbmeta
40
41AB_OTA_POSTINSTALL_CONFIG += \
42 RUN_POSTINSTALL_system=true \
43 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
44 FILESYSTEM_TYPE_system=ext4 \
45 POSTINSTALL_OPTIONAL_system=true
46
micky38718f07ac2019-06-10 00:40:50 +020047# ANT+
48PRODUCT_PACKAGES += \
49 AntHalService
50
micky38782dbd1a2019-09-17 08:11:02 +020051# Api
52PRODUCT_SHIPPING_API_LEVEL := 28
53
micky38718f07ac2019-06-10 00:40:50 +020054# audio
LuK133769135952018-09-09 17:39:16 +020055PRODUCT_COPY_FILES += \
Łukasz Patron357f1962019-11-08 11:01:46 +010056 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio/audio_policy_configuration.xml \
57 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_configuration.xml \
58 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS630KL.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/$(PRODUCT_TARGET_VNDK_VERSION)/etc/audio_policy_volumes_ZS630KL.xml
LuK133769135952018-09-09 17:39:16 +020059
micky387e96abca2019-06-11 02:35:20 +020060# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070061PRODUCT_PACKAGES += \
62 android.hardware.boot@1.0-impl.recovery \
63 bootctrl.msmnile.recovery
64
micky387e96abca2019-06-11 02:35:20 +020065PRODUCT_PACKAGES_DEBUG += \
66 bootctl
67
micky38795b3a992019-06-11 03:21:49 +020068# Charger images
69PRODUCT_PACKAGES += \
70 omni_charger_res_images \
71 animation.txt \
72 font_charger.png
73
micky38754bf1022019-07-03 03:31:11 +020074# DeviceParts
75PRODUCT_PACKAGES += \
Marko Man015b6782019-09-26 03:22:20 +020076 DeviceParts \
micky3879844ec52019-08-07 20:16:37 +020077 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020078
micky38718f07ac2019-06-10 00:40:50 +020079# Display
80PRODUCT_PACKAGES += \
81 libion \
82 libtinyxml2
83
84PRODUCT_PACKAGES += \
85 libtinyalsa
86
Fenglin Wuc1f19de2018-07-10 10:51:08 +080087# Exclude vibrator from InputManager
88PRODUCT_COPY_FILES += \
89 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
90
micky3872a9055a2019-08-22 22:37:25 +020091# FM
micky3870f68c2b2019-09-11 14:28:27 +020092#PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +020093 FM2 \
94 libqcomfm_jni \
95 qcom.fmradio
96
micky3870f68c2b2019-09-11 14:28:27 +020097#PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +020098
micky3872e9a6b72019-07-02 20:48:08 +020099# Input
100PRODUCT_COPY_FILES += \
101 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200102 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
103 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200104
micky38718f07ac2019-06-10 00:40:50 +0200105# Live Wallpapers
106PRODUCT_PACKAGES += \
107 LiveWallpapers \
108 LiveWallpapersPicker \
109 VisualizationWallpapers \
110 librs_jni
111
OrdenKriegerbb6abee2019-08-05 23:51:15 +0200112# Lights
113PRODUCT_PACKAGES += \
114 android.hardware.light@2.0-service.asus_msmnile
115
Luca Stefani13643de2019-07-10 18:52:13 +0200116# Media
117PRODUCT_COPY_FILES += \
118 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
119
micky387e5ae8c72019-08-07 20:01:48 +0200120# NFC - NQ (NXP)
micky3870f68c2b2019-09-11 14:28:27 +0200121#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200122 Tag \
123 com.android.nfc_extras
124
micky3870f68c2b2019-09-11 14:28:27 +0200125#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200126 android.hardware.nfc@1.1 \
127 android.hardware.nfc@1.0
128
micky38718f07ac2019-06-10 00:40:50 +0200129# Prebuilt
130PRODUCT_COPY_FILES += \
131 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
132 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
133
micky3874a9d7842019-10-14 20:53:12 +0200134PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200135PRODUCT_AAPT_PREF_CONFIG := xxhdpi
136
micky38782dbd1a2019-09-17 08:11:02 +0200137# Properties
138BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
139
micky38718f07ac2019-06-10 00:40:50 +0200140# Netutils
141PRODUCT_PACKAGES += \
142 netutils-wrapper-1.0 \
143 libandroid_net
144
145PRODUCT_PACKAGES += \
146 vndk_package
147
148PRODUCT_PACKAGES += \
149 android.hidl.base@1.0
150
151PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200152 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200153
micky3879ed76f02019-11-10 08:07:45 +0100154# Remove unwanted packages
155PRODUCT_PACKAGES += \
156 RemovePackages \
157 RemovePackages1
158
Bruno Martinsff55cad2019-09-05 12:17:15 +0100159# Soong namespaces
160PRODUCT_SOONG_NAMESPACES += \
161 $(LOCAL_PATH)
162
micky3877fec5952019-09-28 10:19:41 +0200163# Telephony
164PRODUCT_PACKAGES += \
165 ims-ext-common \
166 ims_ext_common.xml \
167 qti-telephony-hidl-wrapper \
168 qti_telephony_hidl_wrapper.xml \
169 qti-telephony-utils \
170 qti_telephony_utils.xml
171
micky387be0ade62019-06-11 03:20:23 +0200172# Update engine
173PRODUCT_PACKAGES += \
174 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200175 update_engine \
176 update_engine_sideload \
177 update_verifier
178
micky3870f68c2b2019-09-11 14:28:27 +0200179PRODUCT_HOST_PACKAGES += \
180 brillo_update_payload
181
micky387be0ade62019-06-11 03:20:23 +0200182PRODUCT_PACKAGES_DEBUG += \
183 update_engine_client
184
Łukasz Patron357f1962019-11-08 11:01:46 +0100185# VNDK
186PRODUCT_TARGET_VNDK_VERSION := 29
187
micky38718f07ac2019-06-10 00:40:50 +0200188# WiFi Display
189PRODUCT_PACKAGES += \
190 libnl