micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 1 | # 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 | # |
micky387 | c6b6609 | 2020-01-05 16:14:50 +0100 | [diff] [blame] | 22 | $(call inherit-product, vendor/asus/rog2/rog2-vendor.mk) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 23 | $(call inherit-product-if-exists, vendor/gapps/arm64/arm64-vendor.mk) |
| 24 | |
Luca Stefani | 9629b32 | 2019-09-12 23:47:56 +0200 | [diff] [blame] | 25 | # Enable updating of APEXes |
| 26 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 27 | |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 28 | # Overlays |
| 29 | DEVICE_PACKAGE_OVERLAYS += \ |
micky387 | 68ec999 | 2019-12-28 13:35:00 +0100 | [diff] [blame] | 30 | $(LOCAL_PATH)/overlay \ |
| 31 | vendor/omni/overlay/CarrierConfig |
micky387 | a8d9618 | 2019-06-11 13:36:14 +0200 | [diff] [blame] | 32 | |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 33 | # A/B |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 34 | AB_OTA_UPDATER := true |
| 35 | |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 36 | AB_OTA_PARTITIONS += \ |
| 37 | boot \ |
| 38 | dtbo \ |
| 39 | system \ |
| 40 | vbmeta |
| 41 | |
| 42 | AB_OTA_POSTINSTALL_CONFIG += \ |
| 43 | RUN_POSTINSTALL_system=true \ |
Marko Man | 390428b | 2020-03-14 21:02:38 +0100 | [diff] [blame] | 44 | POSTINSTALL_PATH_system=system/bin/omnipreopt_script \ |
micky387 | 4eedc68 | 2019-06-11 02:29:28 +0200 | [diff] [blame] | 45 | FILESYSTEM_TYPE_system=ext4 \ |
| 46 | POSTINSTALL_OPTIONAL_system=true |
| 47 | |
Marko Man | 390428b | 2020-03-14 21:02:38 +0100 | [diff] [blame] | 48 | PRODUCT_PACKAGES += \ |
| 49 | omnipreopt_script |
| 50 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 51 | # ANT+ |
| 52 | PRODUCT_PACKAGES += \ |
| 53 | AntHalService |
| 54 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 55 | # Api |
| 56 | PRODUCT_SHIPPING_API_LEVEL := 28 |
| 57 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 58 | # audio |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 59 | PRODUCT_COPY_FILES += \ |
micky387 | 31fa76b | 2019-11-15 21:52:01 +0100 | [diff] [blame] | 60 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio/audio_policy_configuration.xml \ |
| 61 | $(LOCAL_PATH)/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_configuration.xml \ |
Luca Stefani | 334cc5a | 2020-01-02 18:55:16 +0100 | [diff] [blame] | 62 | $(LOCAL_PATH)/audio/audio_policy_volumes_ZS660KL.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/audio_policy_volumes_ZS660KL.xml |
LuK1337 | 6913595 | 2018-09-09 17:39:16 +0200 | [diff] [blame] | 63 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 64 | # Boot control |
Hridya Valsaraju | 9bf1814 | 2018-08-21 21:22:37 -0700 | [diff] [blame] | 65 | PRODUCT_PACKAGES += \ |
| 66 | android.hardware.boot@1.0-impl.recovery \ |
| 67 | bootctrl.msmnile.recovery |
| 68 | |
micky387 | e96abca | 2019-06-11 02:35:20 +0200 | [diff] [blame] | 69 | PRODUCT_PACKAGES_DEBUG += \ |
| 70 | bootctl |
| 71 | |
micky387 | 95b3a99 | 2019-06-11 03:21:49 +0200 | [diff] [blame] | 72 | # Charger images |
| 73 | PRODUCT_PACKAGES += \ |
| 74 | omni_charger_res_images \ |
| 75 | animation.txt \ |
| 76 | font_charger.png |
| 77 | |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 78 | # DeviceParts |
| 79 | PRODUCT_PACKAGES += \ |
Marko Man | 015b678 | 2019-09-26 03:22:20 +0200 | [diff] [blame] | 80 | DeviceParts \ |
micky387 | 9844ec5 | 2019-08-07 20:16:37 +0200 | [diff] [blame] | 81 | OmniDisplayManager |
micky387 | 54bf102 | 2019-07-03 03:31:11 +0200 | [diff] [blame] | 82 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 83 | # Display |
| 84 | PRODUCT_PACKAGES += \ |
micky387 | 3692a4a | 2020-04-28 19:49:16 +0200 | [diff] [blame] | 85 | libdisplayconfig \ |
| 86 | libqdMetaData \ |
| 87 | libqdMetaData.system \ |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 88 | libion \ |
| 89 | libtinyxml2 |
| 90 | |
| 91 | PRODUCT_PACKAGES += \ |
| 92 | libtinyalsa |
| 93 | |
Fenglin Wu | c1f19de | 2018-07-10 10:51:08 +0800 | [diff] [blame] | 94 | # Exclude vibrator from InputManager |
| 95 | PRODUCT_COPY_FILES += \ |
| 96 | $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml |
| 97 | |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 98 | # FM |
micky387 | fb82cc7 | 2019-12-03 13:45:53 +0100 | [diff] [blame] | 99 | PRODUCT_PACKAGES += \ |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 100 | FM2 \ |
| 101 | libqcomfm_jni \ |
| 102 | qcom.fmradio |
| 103 | |
micky387 | fb82cc7 | 2019-12-03 13:45:53 +0100 | [diff] [blame] | 104 | PRODUCT_BOOT_JARS += qcom.fmradio |
micky387 | 2a9055a | 2019-08-22 22:37:25 +0200 | [diff] [blame] | 105 | |
Luca Stefani | ef1056c | 2020-01-02 18:58:22 +0100 | [diff] [blame] | 106 | # Fingerprint |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | omni.biometrics.fingerprint.inscreen@1.0-service.asus_msmnile |
| 109 | |
micky387 | 22c3b45 | 2020-01-04 07:59:01 +0100 | [diff] [blame] | 110 | # Frameworks |
| 111 | PRODUCT_PACKAGES += \ |
| 112 | FrameworksResOverlay |
| 113 | |
micky387 | 363ebe7 | 2020-05-03 18:17:39 +0200 | [diff] [blame] | 114 | # Init |
| 115 | PRODUCT_PACKAGES += \ |
| 116 | libinit_rog2 |
| 117 | |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 118 | # Input |
| 119 | PRODUCT_COPY_FILES += \ |
Luca Stefani | a641ee1 | 2020-01-03 11:06:54 +0100 | [diff] [blame] | 120 | $(LOCAL_PATH)/idc/goodix_ts.idc:system/usr/idc/goodix_ts.idc \ |
| 121 | $(LOCAL_PATH)/idc/goodix_ts_station.idc:system/usr/idc/goodix_ts_station.idc \ |
| 122 | $(LOCAL_PATH)/keychars/goodix_ts.kcm:system/usr/keychars/goodix_ts.kcm \ |
| 123 | $(LOCAL_PATH)/keylayout/goodix_ts.kl:system/usr/keylayout/goodix_ts.kl |
micky387 | 2e9a6b7 | 2019-07-02 20:48:08 +0200 | [diff] [blame] | 124 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 125 | # Live Wallpapers |
| 126 | PRODUCT_PACKAGES += \ |
| 127 | LiveWallpapers \ |
| 128 | LiveWallpapersPicker \ |
| 129 | VisualizationWallpapers \ |
| 130 | librs_jni |
| 131 | |
OrdenKrieger | bb6abee | 2019-08-05 23:51:15 +0200 | [diff] [blame] | 132 | # Lights |
| 133 | PRODUCT_PACKAGES += \ |
| 134 | android.hardware.light@2.0-service.asus_msmnile |
| 135 | |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 136 | # NFC - NQ (NXP) |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 137 | #PRODUCT_PACKAGES += \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 138 | Tag \ |
| 139 | com.android.nfc_extras |
| 140 | |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 141 | #PRODUCT_PACKAGES += \ |
micky387 | e5ae8c7 | 2019-08-07 20:01:48 +0200 | [diff] [blame] | 142 | android.hardware.nfc@1.1 \ |
| 143 | android.hardware.nfc@1.0 |
| 144 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 145 | # Prebuilt |
| 146 | PRODUCT_COPY_FILES += \ |
micky387 | c6b6609 | 2020-01-05 16:14:50 +0100 | [diff] [blame] | 147 | $(call find-copy-subdir-files,*,device/asus/rog2/prebuilt/system,system) \ |
| 148 | $(call find-copy-subdir-files,*,device/asus/rog2/prebuilt/root,root) |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 149 | |
micky387 | 4a9d784 | 2019-10-14 20:53:12 +0200 | [diff] [blame] | 150 | PRODUCT_AAPT_CONFIG := normal |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 151 | PRODUCT_AAPT_PREF_CONFIG := xxhdpi |
| 152 | |
micky387 | 82dbd1a | 2019-09-17 08:11:02 +0200 | [diff] [blame] | 153 | # Properties |
| 154 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
| 155 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 156 | # Netutils |
| 157 | PRODUCT_PACKAGES += \ |
| 158 | netutils-wrapper-1.0 \ |
| 159 | libandroid_net |
| 160 | |
| 161 | PRODUCT_PACKAGES += \ |
| 162 | vndk_package |
| 163 | |
| 164 | PRODUCT_PACKAGES += \ |
| 165 | android.hidl.base@1.0 |
| 166 | |
| 167 | PRODUCT_PACKAGES += \ |
micky387 | 9a5e6fb | 2019-08-07 20:26:13 +0200 | [diff] [blame] | 168 | vendor.display.config@1.5 |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 169 | |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 170 | # Remove unwanted packages |
| 171 | PRODUCT_PACKAGES += \ |
micky387 | e568a8a | 2019-12-05 20:38:19 +0100 | [diff] [blame] | 172 | RemovePackages |
micky387 | 9ed76f0 | 2019-11-10 08:07:45 +0100 | [diff] [blame] | 173 | |
Bruno Martins | ff55cad | 2019-09-05 12:17:15 +0100 | [diff] [blame] | 174 | # Soong namespaces |
| 175 | PRODUCT_SOONG_NAMESPACES += \ |
| 176 | $(LOCAL_PATH) |
| 177 | |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 178 | # Telephony |
| 179 | PRODUCT_PACKAGES += \ |
| 180 | ims-ext-common \ |
| 181 | ims_ext_common.xml \ |
| 182 | qti-telephony-hidl-wrapper \ |
| 183 | qti_telephony_hidl_wrapper.xml \ |
| 184 | qti-telephony-utils \ |
micky387 | 3692a4a | 2020-04-28 19:49:16 +0200 | [diff] [blame] | 185 | qti_telephony_utils.xml \ |
| 186 | tcmiface |
micky387 | 7fec595 | 2019-09-28 10:19:41 +0200 | [diff] [blame] | 187 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 188 | # Update engine |
| 189 | PRODUCT_PACKAGES += \ |
| 190 | otapreopt_script \ |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 191 | update_engine \ |
| 192 | update_engine_sideload \ |
| 193 | update_verifier |
| 194 | |
micky387 | 0f68c2b | 2019-09-11 14:28:27 +0200 | [diff] [blame] | 195 | PRODUCT_HOST_PACKAGES += \ |
| 196 | brillo_update_payload |
| 197 | |
micky387 | be0ade6 | 2019-06-11 03:20:23 +0200 | [diff] [blame] | 198 | PRODUCT_PACKAGES_DEBUG += \ |
| 199 | update_engine_client |
| 200 | |
micky387 | eb4c03e | 2020-03-27 21:00:01 +0100 | [diff] [blame] | 201 | # Vibrator |
| 202 | PRODUCT_PACKAGES += \ |
| 203 | android.hardware.vibrator@1.2-service.rog2 |
| 204 | |
| 205 | PRODUCT_COPY_FILES += \ |
| 206 | $(LOCAL_PATH)/vintf/manifest.xml:$(TARGET_COPY_OUT_PRODUCT)/vendor_overlay/29/etc/vintf/manifest.xml |
| 207 | |
Ćukasz Patron | 357f196 | 2019-11-08 11:01:46 +0100 | [diff] [blame] | 208 | # VNDK |
| 209 | PRODUCT_TARGET_VNDK_VERSION := 29 |
| 210 | |
micky387 | 18f07ac | 2019-06-10 00:40:50 +0200 | [diff] [blame] | 211 | # WiFi Display |
| 212 | PRODUCT_PACKAGES += \ |
| 213 | libnl |