blob: 9bc235a98730d54e4d8bcc878d301d847d70ec9b [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
60PRODUCT_PACKAGES_DEBUG += \
61 bootctl
62
63PRODUCT_STATIC_BOOT_CONTROL_HAL := \
micky38703cfada2019-07-27 07:43:19 +020064 bootctrl.msmnile \
micky387e96abca2019-06-11 02:35:20 +020065 libcutils \
66 libgptutils \
67 libz
68
micky38752076e82019-06-11 02:23:57 +020069# Camera
70PRODUCT_PACKAGES += \
71 SnapdragonCamera2
72
micky38795b3a992019-06-11 03:21:49 +020073# Charger images
74PRODUCT_PACKAGES += \
75 omni_charger_res_images \
76 animation.txt \
77 font_charger.png
78
micky38754bf1022019-07-03 03:31:11 +020079# DeviceParts
80PRODUCT_PACKAGES += \
micky3879844ec52019-08-07 20:16:37 +020081 DeviceParts \
82 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020083
micky38718f07ac2019-06-10 00:40:50 +020084# Display
85PRODUCT_PACKAGES += \
86 libion \
87 libtinyxml2
88
89PRODUCT_PACKAGES += \
90 libtinyalsa
91
92PRODUCT_PACKAGES += \
93 ld.config.txt
94
Fenglin Wuc1f19de2018-07-10 10:51:08 +080095# Exclude vibrator from InputManager
96PRODUCT_COPY_FILES += \
97 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
98
micky3872a9055a2019-08-22 22:37:25 +020099# FM
100PRODUCT_PACKAGES += \
101 FM2 \
102 libqcomfm_jni \
103 qcom.fmradio
104
105PRODUCT_BOOT_JARS += qcom.fmradio
106
micky3872e9a6b72019-07-02 20:48:08 +0200107# Input
108PRODUCT_COPY_FILES += \
109 $(LOCAL_PATH)/keylayout/fts_ts.kl:system/usr/keylayout/fts_ts.kl \
Demon000b9538f12019-05-23 21:11:03 +0200110 $(LOCAL_PATH)/keylayout/goodixfp.kl:system/usr/keylayout/goodixfp.kl \
111 $(LOCAL_PATH)/keylayout/googlekey_input.kl:system/usr/keylayout/googlekey_input.kl
micky3872e9a6b72019-07-02 20:48:08 +0200112
micky38718f07ac2019-06-10 00:40:50 +0200113# Live Wallpapers
114PRODUCT_PACKAGES += \
115 LiveWallpapers \
116 LiveWallpapersPicker \
117 VisualizationWallpapers \
118 librs_jni
119
Luca Stefani63bdfc12019-07-14 18:44:22 +0200120# Lights
121PRODUCT_PACKAGES += \
122 lights.msmnile:64
123
Luca Stefani13643de2019-07-10 18:52:13 +0200124# Media
125PRODUCT_COPY_FILES += \
126 $(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
127
micky387e5ae8c72019-08-07 20:01:48 +0200128# NFC - NQ (NXP)
129PRODUCT_PACKAGES += \
130 Tag \
131 com.android.nfc_extras
132
133PRODUCT_PACKAGES += \
134 android.hardware.nfc@1.1 \
135 android.hardware.nfc@1.0
136
micky38718f07ac2019-06-10 00:40:50 +0200137# Prebuilt
138PRODUCT_COPY_FILES += \
139 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/system,system) \
140 $(call find-copy-subdir-files,*,device/asus/zenfone6/prebuilt/root,root)
141
142PRODUCT_AAPT_CONFIG := xxhdpi
143PRODUCT_AAPT_PREF_CONFIG := xxhdpi
144
Peter Cai926c1ef2019-08-05 10:47:16 +0200145# Rootdir
146PRODUCT_COPY_FILES += \
147 $(LOCAL_PATH)/recovery.fstab:system/etc/fstab.qcom
148
micky38718f07ac2019-06-10 00:40:50 +0200149# Netutils
150PRODUCT_PACKAGES += \
151 netutils-wrapper-1.0 \
152 libandroid_net
153
154PRODUCT_PACKAGES += \
155 vndk_package
156
157PRODUCT_PACKAGES += \
158 android.hidl.base@1.0
159
160PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200161 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200162
163# Telephony
164PRODUCT_PACKAGES += \
165 telephony-ext
166
167PRODUCT_BOOT_JARS += \
168 telephony-ext
169
170# SP-NDK:
171PRODUCT_PACKAGES += \
172 libvulkan
173
micky387be0ade62019-06-11 03:20:23 +0200174# Update engine
175PRODUCT_PACKAGES += \
176 otapreopt_script \
177 brillo_update_payload \
178 update_engine \
179 update_engine_sideload \
180 update_verifier
181
182PRODUCT_PACKAGES_DEBUG += \
183 update_engine_client
184
micky38718f07ac2019-06-10 00:40:50 +0200185# WiFi Display
186PRODUCT_PACKAGES += \
187 libnl