blob: 2d1bb0791514923ad3ff327525d9269d39856221 [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#
micky387c6b66092020-01-05 16:14:50 +010022$(call inherit-product, vendor/asus/rog2/rog2-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
micky387a8d96182019-06-11 13:36:14 +020028# Overlays
29DEVICE_PACKAGE_OVERLAYS += \
micky38768ec9992019-12-28 13:35:00 +010030 $(LOCAL_PATH)/overlay \
31 vendor/omni/overlay/CarrierConfig
micky387a8d96182019-06-11 13:36:14 +020032
micky3874eedc682019-06-11 02:29:28 +020033# A/B
micky38782dbd1a2019-09-17 08:11:02 +020034AB_OTA_UPDATER := true
35
micky3874eedc682019-06-11 02:29:28 +020036AB_OTA_PARTITIONS += \
37 boot \
38 dtbo \
39 system \
40 vbmeta
41
42AB_OTA_POSTINSTALL_CONFIG += \
43 RUN_POSTINSTALL_system=true \
44 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
45 FILESYSTEM_TYPE_system=ext4 \
46 POSTINSTALL_OPTIONAL_system=true
47
micky38718f07ac2019-06-10 00:40:50 +020048# ANT+
49PRODUCT_PACKAGES += \
50 AntHalService
51
micky38782dbd1a2019-09-17 08:11:02 +020052# Api
53PRODUCT_SHIPPING_API_LEVEL := 28
54
micky38718f07ac2019-06-10 00:40:50 +020055# audio
LuK133769135952018-09-09 17:39:16 +020056PRODUCT_COPY_FILES += \
micky38731fa76b2019-11-15 21:52:01 +010057 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio/audio_policy_configuration.xml \
58 $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_configuration.xml \
Luca Stefani334cc5a2020-01-02 18:55:16 +010059 $(LOCAL_PATH)/audio/audio_policy_volumes_ZS660KL.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_volumes_ZS660KL.xml
LuK133769135952018-09-09 17:39:16 +020060
micky387e96abca2019-06-11 02:35:20 +020061# Boot control
Hridya Valsaraju9bf18142018-08-21 21:22:37 -070062PRODUCT_PACKAGES += \
63 android.hardware.boot@1.0-impl.recovery \
64 bootctrl.msmnile.recovery
65
micky387e96abca2019-06-11 02:35:20 +020066PRODUCT_PACKAGES_DEBUG += \
67 bootctl
68
micky38795b3a992019-06-11 03:21:49 +020069# Charger images
70PRODUCT_PACKAGES += \
71 omni_charger_res_images \
72 animation.txt \
73 font_charger.png
74
micky38754bf1022019-07-03 03:31:11 +020075# DeviceParts
76PRODUCT_PACKAGES += \
Marko Man015b6782019-09-26 03:22:20 +020077 DeviceParts \
micky3879844ec52019-08-07 20:16:37 +020078 OmniDisplayManager
micky38754bf1022019-07-03 03:31:11 +020079
micky38718f07ac2019-06-10 00:40:50 +020080# Display
81PRODUCT_PACKAGES += \
82 libion \
83 libtinyxml2
84
85PRODUCT_PACKAGES += \
86 libtinyalsa
87
Fenglin Wuc1f19de2018-07-10 10:51:08 +080088# Exclude vibrator from InputManager
89PRODUCT_COPY_FILES += \
90 $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
91
micky3872a9055a2019-08-22 22:37:25 +020092# FM
micky387fb82cc72019-12-03 13:45:53 +010093PRODUCT_PACKAGES += \
micky3872a9055a2019-08-22 22:37:25 +020094 FM2 \
95 libqcomfm_jni \
96 qcom.fmradio
97
micky387fb82cc72019-12-03 13:45:53 +010098PRODUCT_BOOT_JARS += qcom.fmradio
micky3872a9055a2019-08-22 22:37:25 +020099
Luca Stefanief1056c2020-01-02 18:58:22 +0100100# Fingerprint
101PRODUCT_PACKAGES += \
102 omni.biometrics.fingerprint.inscreen@1.0-service.asus_msmnile
103
micky38722c3b452020-01-04 07:59:01 +0100104# Frameworks
105PRODUCT_PACKAGES += \
106 FrameworksResOverlay
107
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
OrdenKriegerbb6abee2019-08-05 23:51:15 +0200121# Lights
122PRODUCT_PACKAGES += \
123 android.hardware.light@2.0-service.asus_msmnile
124
micky387e5ae8c72019-08-07 20:01:48 +0200125# NFC - NQ (NXP)
micky3870f68c2b2019-09-11 14:28:27 +0200126#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200127 Tag \
128 com.android.nfc_extras
129
micky3870f68c2b2019-09-11 14:28:27 +0200130#PRODUCT_PACKAGES += \
micky387e5ae8c72019-08-07 20:01:48 +0200131 android.hardware.nfc@1.1 \
132 android.hardware.nfc@1.0
133
micky38718f07ac2019-06-10 00:40:50 +0200134# Prebuilt
135PRODUCT_COPY_FILES += \
micky387c6b66092020-01-05 16:14:50 +0100136 $(call find-copy-subdir-files,*,device/asus/rog2/prebuilt/system,system) \
137 $(call find-copy-subdir-files,*,device/asus/rog2/prebuilt/root,root)
micky38718f07ac2019-06-10 00:40:50 +0200138
micky3874a9d7842019-10-14 20:53:12 +0200139PRODUCT_AAPT_CONFIG := normal
micky38718f07ac2019-06-10 00:40:50 +0200140PRODUCT_AAPT_PREF_CONFIG := xxhdpi
141
micky38782dbd1a2019-09-17 08:11:02 +0200142# Properties
143BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true
144
micky38718f07ac2019-06-10 00:40:50 +0200145# Netutils
146PRODUCT_PACKAGES += \
147 netutils-wrapper-1.0 \
148 libandroid_net
149
150PRODUCT_PACKAGES += \
151 vndk_package
152
153PRODUCT_PACKAGES += \
154 android.hidl.base@1.0
155
156PRODUCT_PACKAGES += \
micky3879a5e6fb2019-08-07 20:26:13 +0200157 vendor.display.config@1.5
micky38718f07ac2019-06-10 00:40:50 +0200158
micky3879ed76f02019-11-10 08:07:45 +0100159# Remove unwanted packages
160PRODUCT_PACKAGES += \
micky387e568a8a2019-12-05 20:38:19 +0100161 RemovePackages
micky3879ed76f02019-11-10 08:07:45 +0100162
Bruno Martinsff55cad2019-09-05 12:17:15 +0100163# Soong namespaces
164PRODUCT_SOONG_NAMESPACES += \
165 $(LOCAL_PATH)
166
micky3877fec5952019-09-28 10:19:41 +0200167# Telephony
168PRODUCT_PACKAGES += \
169 ims-ext-common \
170 ims_ext_common.xml \
171 qti-telephony-hidl-wrapper \
172 qti_telephony_hidl_wrapper.xml \
173 qti-telephony-utils \
174 qti_telephony_utils.xml
175
micky387be0ade62019-06-11 03:20:23 +0200176# Update engine
177PRODUCT_PACKAGES += \
178 otapreopt_script \
micky387be0ade62019-06-11 03:20:23 +0200179 update_engine \
180 update_engine_sideload \
181 update_verifier
182
micky3870f68c2b2019-09-11 14:28:27 +0200183PRODUCT_HOST_PACKAGES += \
184 brillo_update_payload
185
micky387be0ade62019-06-11 03:20:23 +0200186PRODUCT_PACKAGES_DEBUG += \
187 update_engine_client
188
Ɓukasz Patron357f1962019-11-08 11:01:46 +0100189# VNDK
190PRODUCT_TARGET_VNDK_VERSION := 29
191
micky38718f07ac2019-06-10 00:40:50 +0200192# WiFi Display
193PRODUCT_PACKAGES += \
194 libnl