blob: 0aaa15cead7ffb4980a4ad75b6babd8f5cbd077a [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
38AB_OTA_PARTITIONS += \
39 boot \
40 dtbo \
41 system \
42 vbmeta
43
44AB_OTA_POSTINSTALL_CONFIG += \
45 RUN_POSTINSTALL_system=true \
46 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
47 FILESYSTEM_TYPE_system=ext4 \
48 POSTINSTALL_OPTIONAL_system=true
49
micky38718f07ac2019-06-10 00:40:50 +020050# ANT+
51PRODUCT_PACKAGES += \
52 AntHalService
53
54# audio
55PRODUCT_PACKAGES += \
56 audio.a2dp.default
57
LuK133769135952018-09-09 17:39:16 +020058PRODUCT_COPY_FILES += \
OrdenKriegerfc14a532019-08-19 14:50:42 +020059 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:system/etc/audio_policy_configuration.xml \
60 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS630KL.xml:system/etc/audio_policy_volumes_ZS630KL.xml
LuK133769135952018-09-09 17:39:16 +020061
micky387e96abca2019-06-11 02:35:20 +020062# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070063PRODUCT_PACKAGES += \
64 android.hardware.boot@1.0-impl.recovery \
65 bootctrl.msmnile.recovery
66
micky387e96abca2019-06-11 02:35:20 +020067PRODUCT_PACKAGES_DEBUG += \
68 bootctl
69
micky38752076e82019-06-11 02:23:57 +020070# Camera
71PRODUCT_PACKAGES += \
72 SnapdragonCamera2
73
micky38795b3a992019-06-11 03:21:49 +020074# Charger images
75PRODUCT_PACKAGES += \
76 omni_charger_res_images \
77 animation.txt \
78 font_charger.png
79
micky38754bf1022019-07-03 03:31:11 +020080# DeviceParts
81PRODUCT_PACKAGES += \
micky3870f68c2b2019-09-11 14:28:27 +020082 #DeviceParts \
micky3879844ec52019-08-07 20:16:37 +020083 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020084
micky38718f07ac2019-06-10 00:40:50 +020085# Display
86PRODUCT_PACKAGES += \
87 libion \
88 libtinyxml2
89
90PRODUCT_PACKAGES += \
91 libtinyalsa
92
93PRODUCT_PACKAGES += \
94 ld.config.txt
95
Fenglin Wuc1f19de2018-07-10 10:51:08 +080096# Exclude vibrator from InputManager
97PRODUCT_COPY_FILES += \
98 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
99
micky3872a9055a2019-08-22 22:37:25 +0200100# FM
micky3870f68c2b2019-09-11 14:28:27 +0200101#PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +0200102 FM2 \
103 libqcomfm_jni \
104 qcom.fmradio
105
micky3870f68c2b2019-09-11 14:28:27 +0200106#PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +0200107
micky3872e9a6b72019-07-02 20:48:08 +0200108# Input
109PRODUCT_COPY_FILES += \
110 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200111 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
112 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200113
micky38718f07ac2019-06-10 00:40:50 +0200114# Live Wallpapers
115PRODUCT_PACKAGES += \
116 LiveWallpapers \
117 LiveWallpapersPicker \
118 VisualizationWallpapers \
119 librs_jni
120
Luca Stefani63bdfc12019-07-14 18:44:22 +0200121# Lights
122PRODUCT_PACKAGES += \
123 lights.msmnile:64
124
Luca Stefani13643de2019-07-10 18:52:13 +0200125# Media
126PRODUCT_COPY_FILES += \
127 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
128
micky387e5ae8c72019-08-07 20:01:48 +0200129# NFC - NQ (NXP)
micky3870f68c2b2019-09-11 14:28:27 +0200130#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200131 Tag \
132 com.android.nfc_extras
133
micky3870f68c2b2019-09-11 14:28:27 +0200134#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200135 android.hardware.nfc@1.1 \
136 android.hardware.nfc@1.0
137
micky38718f07ac2019-06-10 00:40:50 +0200138# Prebuilt
139PRODUCT_COPY_FILES += \
140 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
141 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
142
143PRODUCT_AAPT_CONFIG := xxhdpi
144PRODUCT_AAPT_PREF_CONFIG := xxhdpi
145
Peter Cai926c1ef2019-08-05 10:47:16 +0200146# Rootdir
147PRODUCT_COPY_FILES += \
148 $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom
149
micky38718f07ac2019-06-10 00:40:50 +0200150# Netutils
151PRODUCT_PACKAGES += \
152 netutils-wrapper-1.0 \
153 libandroid_net
154
155PRODUCT_PACKAGES += \
156 vndk_package
157
158PRODUCT_PACKAGES += \
159 android.hidl.base@1.0
160
161PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200162 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200163
micky38718f07ac2019-06-10 00:40:50 +0200164# SP-NDK:
165PRODUCT_PACKAGES += \
166 libvulkan
167
micky387be0ade62019-06-11 03:20:23 +0200168# Update engine
169PRODUCT_PACKAGES += \
170 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200171 update_engine \
172 update_engine_sideload \
173 update_verifier
174
micky3870f68c2b2019-09-11 14:28:27 +0200175PRODUCT_HOST_PACKAGES += \
176 brillo_update_payload
177
micky387be0ade62019-06-11 03:20:23 +0200178PRODUCT_PACKAGES_DEBUG += \
179 update_engine_client
180
micky38718f07ac2019-06-10 00:40:50 +0200181# WiFi Display
182PRODUCT_PACKAGES += \
183 libnl