blob: c93a558f34594cf7fcde1c4c3524d67fe7c73ad3 [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
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 += \
OrdenKriegerfc14a532019-08-19 14:50:42 +020056 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
57 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS630KL.xml:system/etc/audio_policy_volumes_ZS630KL.xml
LuK133769135952018-09-09 17:39:16 +020058
micky387e96abca2019-06-11 02:35:20 +020059# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070060PRODUCT_PACKAGES += \
61 android.hardware.boot@1.0-impl.recovery \
62 bootctrl.msmnile.recovery
63
micky387e96abca2019-06-11 02:35:20 +020064PRODUCT_PACKAGES_DEBUG += \
65 bootctl
66
micky38752076e82019-06-11 02:23:57 +020067# Camera
68PRODUCT_PACKAGES += \
69 SnapdragonCamera2
70
micky38795b3a992019-06-11 03:21:49 +020071# Charger images
72PRODUCT_PACKAGES += \
73 omni_charger_res_images \
74 animation.txt \
75 font_charger.png
76
micky38754bf1022019-07-03 03:31:11 +020077# DeviceParts
78PRODUCT_PACKAGES += \
micky3870f68c2b2019-09-11 14:28:27 +020079 #DeviceParts \
micky3879844ec52019-08-07 20:16:37 +020080 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020081
micky38718f07ac2019-06-10 00:40:50 +020082# Display
83PRODUCT_PACKAGES += \
84 libion \
85 libtinyxml2
86
87PRODUCT_PACKAGES += \
88 libtinyalsa
89
90PRODUCT_PACKAGES += \
91 ld.config.txt
92
Fenglin Wuc1f19de2018-07-10 10:51:08 +080093# Exclude vibrator from InputManager
94PRODUCT_COPY_FILES += \
95 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
96
micky3872a9055a2019-08-22 22:37:25 +020097# FM
micky3870f68c2b2019-09-11 14:28:27 +020098#PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +020099 FM2 \
100 libqcomfm_jni \
101 qcom.fmradio
102
micky3870f68c2b2019-09-11 14:28:27 +0200103#PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200104
micky3872e9a6b72019-07-02 20:48:08 +0200105# Input
106PRODUCT_COPY_FILES += \
107 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200108 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
109 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200110
micky38718f07ac2019-06-10 00:40:50 +0200111# Live Wallpapers
112PRODUCT_PACKAGES += \
113 LiveWallpapers \
114 LiveWallpapersPicker \
115 VisualizationWallpapers \
116 librs_jni
117
Luca Stefani63bdfc12019-07-14 18:44:22 +0200118# Lights
119PRODUCT_PACKAGES += \
120 lights.msmnile:64
121
Luca Stefani13643de2019-07-10 18:52:13 +0200122# Media
123PRODUCT_COPY_FILES += \
124 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
125
micky387e5ae8c72019-08-07 20:01:48 +0200126# NFC - NQ (NXP)
micky3870f68c2b2019-09-11 14:28:27 +0200127#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200128 Tag \
129 com.android.nfc_extras
130
micky3870f68c2b2019-09-11 14:28:27 +0200131#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200132 android.hardware.nfc@1.1 \
133 android.hardware.nfc@1.0
134
micky38718f07ac2019-06-10 00:40:50 +0200135# Prebuilt
136PRODUCT_COPY_FILES += \
137 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
138 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
139
140PRODUCT_AAPT_CONFIG := xxhdpi
141PRODUCT_AAPT_PREF_CONFIG := xxhdpi
142
Peter Cai926c1ef2019-08-05 10:47:16 +0200143# Rootdir
144PRODUCT_COPY_FILES += \
145 $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom
146
micky38718f07ac2019-06-10 00:40:50 +0200147# Netutils
148PRODUCT_PACKAGES += \
149 netutils-wrapper-1.0 \
150 libandroid_net
151
152PRODUCT_PACKAGES += \
153 vndk_package
154
155PRODUCT_PACKAGES += \
156 android.hidl.base@1.0
157
158PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200159 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200160
micky38718f07ac2019-06-10 00:40:50 +0200161# SP-NDK:
162PRODUCT_PACKAGES += \
163 libvulkan
164
micky387be0ade62019-06-11 03:20:23 +0200165# Update engine
166PRODUCT_PACKAGES += \
167 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200168 update_engine \
169 update_engine_sideload \
170 update_verifier
171
micky3870f68c2b2019-09-11 14:28:27 +0200172PRODUCT_HOST_PACKAGES += \
173 brillo_update_payload
174
micky387be0ade62019-06-11 03:20:23 +0200175PRODUCT_PACKAGES_DEBUG += \
176 update_engine_client
177
micky38718f07ac2019-06-10 00:40:50 +0200178# WiFi Display
179PRODUCT_PACKAGES += \
180 libnl