blob: ffb180a795781aeded2671c3363a99e797cbfb9a [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
micky38718f07ac2019-06-10 00:40:50 +020028#from build treble includes
29PRODUCT_COPY_FILES += \
30 system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc \
31 system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc
32
micky387a8d96182019-06-11 13:36:14 +020033# Overlays
34DEVICE_PACKAGE_OVERLAYS += \
35 $(LOCAL_PATH)/overlay
36
micky3874eedc682019-06-11 02:29:28 +020037# A/B
micky38782dbd1a2019-09-17 08:11:02 +020038AB_OTA_UPDATER := true
39
micky3874eedc682019-06-11 02:29:28 +020040AB_OTA_PARTITIONS += \
41 boot \
42 dtbo \
43 system \
44 vbmeta
45
46AB_OTA_POSTINSTALL_CONFIG += \
47 RUN_POSTINSTALL_system=true \
48 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
49 FILESYSTEM_TYPE_system=ext4 \
50 POSTINSTALL_OPTIONAL_system=true
51
micky38718f07ac2019-06-10 00:40:50 +020052# ANT+
53PRODUCT_PACKAGES += \
54 AntHalService
55
micky38782dbd1a2019-09-17 08:11:02 +020056# Api
57PRODUCT_SHIPPING_API_LEVEL := 28
58
micky38718f07ac2019-06-10 00:40:50 +020059# audio
60PRODUCT_PACKAGES += \
61 audio.a2dp.default
62
LuK133769135952018-09-09 17:39:16 +020063PRODUCT_COPY_FILES += \
OrdenKriegerfc14a532019-08-19 14:50:42 +020064 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
65 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS630KL.xml:system/etc/audio_policy_volumes_ZS630KL.xml
LuK133769135952018-09-09 17:39:16 +020066
micky387e96abca2019-06-11 02:35:20 +020067# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070068PRODUCT_PACKAGES += \
69 android.hardware.boot@1.0-impl.recovery \
70 bootctrl.msmnile.recovery
71
micky387e96abca2019-06-11 02:35:20 +020072PRODUCT_PACKAGES_DEBUG += \
73 bootctl
74
micky38752076e82019-06-11 02:23:57 +020075# Camera
76PRODUCT_PACKAGES += \
77 SnapdragonCamera2
78
micky38795b3a992019-06-11 03:21:49 +020079# Charger images
80PRODUCT_PACKAGES += \
81 omni_charger_res_images \
82 animation.txt \
83 font_charger.png
84
micky38754bf1022019-07-03 03:31:11 +020085# DeviceParts
86PRODUCT_PACKAGES += \
Marko Man015b6782019-09-26 03:22:20 +020087 DeviceParts \
micky3879844ec52019-08-07 20:16:37 +020088 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020089
micky38718f07ac2019-06-10 00:40:50 +020090# Display
91PRODUCT_PACKAGES += \
92 libion \
93 libtinyxml2
94
95PRODUCT_PACKAGES += \
96 libtinyalsa
97
98PRODUCT_PACKAGES += \
99 ld.config.txt
100
Fenglin Wuc1f19de2018-07-10 10:51:08 +0800101# Exclude vibrator from InputManager
102PRODUCT_COPY_FILES += \
103 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
104
micky3872a9055a2019-08-22 22:37:25 +0200105# FM
micky3870f68c2b2019-09-11 14:28:27 +0200106#PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200107 FM2 \
108 libqcomfm_jni \
109 qcom.fmradio
110
micky3870f68c2b2019-09-11 14:28:27 +0200111#PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200112
micky3872e9a6b72019-07-02 20:48:08 +0200113# Input
114PRODUCT_COPY_FILES += \
115 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200116 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
117 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200118
micky38718f07ac2019-06-10 00:40:50 +0200119# Live Wallpapers
120PRODUCT_PACKAGES += \
121 LiveWallpapers \
122 LiveWallpapersPicker \
123 VisualizationWallpapers \
124 librs_jni
125
Luca Stefani63bdfc12019-07-14 18:44:22 +0200126# Lights
127PRODUCT_PACKAGES += \
128 lights.msmnile:64
129
Luca Stefani13643de2019-07-10 18:52:13 +0200130# Media
131PRODUCT_COPY_FILES += \
132 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
133
micky387e5ae8c72019-08-07 20:01:48 +0200134# NFC - NQ (NXP)
micky3870f68c2b2019-09-11 14:28:27 +0200135#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200136 Tag \
137 com.android.nfc_extras
138
micky3870f68c2b2019-09-11 14:28:27 +0200139#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200140 android.hardware.nfc@1.1 \
141 android.hardware.nfc@1.0
142
micky38718f07ac2019-06-10 00:40:50 +0200143# Prebuilt
144PRODUCT_COPY_FILES += \
145 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
146 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
147
148PRODUCT_AAPT_CONFIG := xxhdpi
149PRODUCT_AAPT_PREF_CONFIG := xxhdpi
150
micky38782dbd1a2019-09-17 08:11:02 +0200151# Properties
152BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
153
Peter Cai926c1ef2019-08-05 10:47:16 +0200154# Rootdir
155PRODUCT_COPY_FILES += \
156 $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom
157
micky38718f07ac2019-06-10 00:40:50 +0200158# Netutils
159PRODUCT_PACKAGES += \
160 netutils-wrapper-1.0 \
161 libandroid_net
162
163PRODUCT_PACKAGES += \
164 vndk_package
165
166PRODUCT_PACKAGES += \
167 android.hidl.base@1.0
168
169PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200170 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200171
Bruno Martinsff55cad2019-09-05 12:17:15 +0100172# Soong namespaces
173PRODUCT_SOONG_NAMESPACES += \
174 $(LOCAL_PATH)
175
micky38718f07ac2019-06-10 00:40:50 +0200176# SP-NDK:
177PRODUCT_PACKAGES += \
178 libvulkan
179
micky387be0ade62019-06-11 03:20:23 +0200180# Update engine
181PRODUCT_PACKAGES += \
182 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200183 update_engine \
184 update_engine_sideload \
185 update_verifier
186
micky3870f68c2b2019-09-11 14:28:27 +0200187PRODUCT_HOST_PACKAGES += \
188 brillo_update_payload
189
micky387be0ade62019-06-11 03:20:23 +0200190PRODUCT_PACKAGES_DEBUG += \
191 update_engine_client
192
micky38718f07ac2019-06-10 00:40:50 +0200193# WiFi Display
194PRODUCT_PACKAGES += \
195 libnl