blob: b6e823592ade703e11011e92f62278d14882f6be [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#
22$(call inherit-product, vendor/asus/zenfone6/device-vendor.mk)
23$(call inherit-product-if-exists, vendor/gapps/arm64/arm64-vendor.mk)
24
25#from build treble includes
26PRODUCT_COPY_FILES += \
27 system/core/rootdir/init.zygote64_32.rc:root/init.zygote64_32.rc \
28 system/core/rootdir/init.zygote32_64.rc:root/init.zygote32_64.rc
29
micky387a8d96182019-06-11 13:36:14 +020030# Overlays
31DEVICE_PACKAGE_OVERLAYS += \
32 $(LOCAL_PATH)/overlay
33
micky3874eedc682019-06-11 02:29:28 +020034# A/B
35AB_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
51# audio
52PRODUCT_PACKAGES += \
53 audio.a2dp.default
54
LuK133769135952018-09-09 17:39:16 +020055PRODUCT_COPY_FILES += \
56 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml
57
micky387e96abca2019-06-11 02:35:20 +020058# Boot control
59PRODUCT_PACKAGES_DEBUG += \
60 bootctl
61
62PRODUCT_STATIC_BOOT_CONTROL_HAL := \
micky38703cfada2019-07-27 07:43:19 +020063 bootctrl.msmnile \
micky387e96abca2019-06-11 02:35:20 +020064 libcutils \
65 libgptutils \
66 libz
67
micky38752076e82019-06-11 02:23:57 +020068# Camera
69PRODUCT_PACKAGES += \
70 SnapdragonCamera2
71
micky38795b3a992019-06-11 03:21:49 +020072# Charger images
73PRODUCT_PACKAGES += \
74 omni_charger_res_images \
75 animation.txt \
76 font_charger.png
77
micky38754bf1022019-07-03 03:31:11 +020078# DeviceParts
79PRODUCT_PACKAGES += \
micky3879844ec52019-08-07 20:16:37 +020080 DeviceParts \
81 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020082
micky38718f07ac2019-06-10 00:40:50 +020083# Display
84PRODUCT_PACKAGES += \
85 libion \
86 libtinyxml2
87
88PRODUCT_PACKAGES += \
89 libtinyalsa
90
91PRODUCT_PACKAGES += \
92 ld.config.txt
93
Fenglin Wuc1f19de2018-07-10 10:51:08 +080094# Exclude vibrator from InputManager
95PRODUCT_COPY_FILES += \
96 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
97
micky3872a9055a2019-08-22 22:37:25 +020098# FM
99PRODUCT_PACKAGES += \
100 FM2 \
101 libqcomfm_jni \
102 qcom.fmradio
103
104PRODUCT_BOOT_JARS += qcom.fmradio
105
micky3872e9a6b72019-07-02 20:48:08 +0200106# Input
107PRODUCT_COPY_FILES += \
108 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200109 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
110 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200111
micky38718f07ac2019-06-10 00:40:50 +0200112# Live Wallpapers
113PRODUCT_PACKAGES += \
114 LiveWallpapers \
115 LiveWallpapersPicker \
116 VisualizationWallpapers \
117 librs_jni
118
Luca Stefani63bdfc12019-07-14 18:44:22 +0200119# Lights
120PRODUCT_PACKAGES += \
121 lights.msmnile:64
122
Luca Stefani13643de2019-07-10 18:52:13 +0200123# Media
124PRODUCT_COPY_FILES += \
125 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
126
micky387e5ae8c72019-08-07 20:01:48 +0200127# NFC - NQ (NXP)
128PRODUCT_PACKAGES += \
129 Tag \
130 com.android.nfc_extras
131
132PRODUCT_PACKAGES += \
133 android.hardware.nfc@1.1 \
134 android.hardware.nfc@1.0
135
micky38718f07ac2019-06-10 00:40:50 +0200136# Prebuilt
137PRODUCT_COPY_FILES += \
138 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
139 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
140
141PRODUCT_AAPT_CONFIG := xxhdpi
142PRODUCT_AAPT_PREF_CONFIG := xxhdpi
143
Peter Cai926c1ef2019-08-05 10:47:16 +0200144# Rootdir
145PRODUCT_COPY_FILES += \
146 $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom
147
micky38718f07ac2019-06-10 00:40:50 +0200148# Netutils
149PRODUCT_PACKAGES += \
150 netutils-wrapper-1.0 \
151 libandroid_net
152
153PRODUCT_PACKAGES += \
154 vndk_package
155
156PRODUCT_PACKAGES += \
157 android.hidl.base@1.0
158
159PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200160 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200161
162# Telephony
163PRODUCT_PACKAGES += \
164 telephony-ext
165
166PRODUCT_BOOT_JARS += \
167 telephony-ext
168
169# SP-NDK:
170PRODUCT_PACKAGES += \
171 libvulkan
172
micky387be0ade62019-06-11 03:20:23 +0200173# Update engine
174PRODUCT_PACKAGES += \
175 otapreopt_script \
176 brillo_update_payload \
177 update_engine \
178 update_engine_sideload \
179 update_verifier
180
181PRODUCT_PACKAGES_DEBUG += \
182 update_engine_client
183
micky38718f07ac2019-06-10 00:40:50 +0200184# WiFi Display
185PRODUCT_PACKAGES += \
186 libnl