diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index 3c0d466b..0b0a1711 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -45,6 +45,7 @@ PRODUCT_MAKEFILES += \ $(LOCAL_DIR)/panther/aospa_panther.mk \ $(LOCAL_DIR)/phoenix/aospa_phoenix.mk \ $(LOCAL_DIR)/phone1/aospa_phone1.mk \ + $(LOCAL_DIR)/porsche/aospa_porsche.mk \ $(LOCAL_DIR)/raven/aospa_raven.mk \ $(LOCAL_DIR)/spes/aospa_spes.mk \ $(LOCAL_DIR)/sunny/aospa_sunny.mk \ @@ -84,8 +85,9 @@ COMMON_LUNCH_CHOICES += \ aospa_panther-userdebug \ aospa_phoenix-userdebug \ aospa_phone1-userdebug \ + aospa_porsche-userdebug \ aospa_raven-userdebug \ aospa_spes-userdebug \ aospa_sunny-userdebug \ aospa_surya-userdebug \ - aospa_vayu-userdebug \ No newline at end of file + aospa_vayu-userdebug diff --git a/products/porsche/aospa.dependencies b/products/porsche/aospa.dependencies new file mode 100644 index 00000000..f1ea2def --- /dev/null +++ b/products/porsche/aospa.dependencies @@ -0,0 +1,82 @@ +[ + { + "remote": "aospa", + "repository": "AOSPA/android_device_realme_porsche", + "target_path": "device/realme/porsche", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_kernel_realme_sm8350", + "target_path": "kernel/msm-5.4", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_oplus", + "target_path": "hardware/oplus", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_audio", + "target_path": "vendor/qcom/opensource/audio-hal/primary-hal", + "revision": "topaz-888" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_display", + "target_path": "hardware/qcom/display", + "revision": "topaz-888" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_gps", + "target_path": "hardware/qcom/gps", + "revision": "topaz-legacy-component" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_media", + "target_path": "hardware/qcom/media", + "revision": "topaz-888" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_vendor_nxp_opensource_halimpl", + "target_path": "vendor/nxp/opensource/halimpl", + "revision": "topaz-SN100X-legacy" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_vendor_nxp_opensource_hidlimpl", + "target_path": "vendor/nxp/opensource/hidlimpl", + "revision": "topaz-SN100X-legacy" + }, + { + "remote": "blobs-gitlab", + "repository": "proprietary_vendor_oplus_camera", + "target_path": "vendor/oplus/camera", + "revision": "topaz-porsche", + "clone-depth": "1" + }, + { + "remote": "blobs-gitlab", + "repository": "android_prebuilts_clang-standalone", + "target_path": "prebuilts/clang-standalone", + "revision": "17", + "clone-depth": "1" + }, + { + "remote": "blobs-gitlab", + "repository": "proprietary_vendor_realme_firmware", + "target_path": "vendor/realme/firmware", + "revision": "topaz" + }, + { + "remote": "blobs", + "repository": "proprietary_vendor_realme", + "target_path": "vendor/realme", + "revision": "topaz" + } +] diff --git a/products/porsche/aospa_porsche.mk b/products/porsche/aospa_porsche.mk new file mode 100644 index 00000000..06b2ae92 --- /dev/null +++ b/products/porsche/aospa_porsche.mk @@ -0,0 +1,38 @@ +# +# Copyright (C) 2023 Paranoid Android +# +# SPDX-License-Identifier: Apache-2.0 +# + +ifeq (aospa_porsche,$(TARGET_PRODUCT)) + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) + +# Inherit from the custom device configuration. +$(call inherit-product, device/realme/porsche/device.mk) + +# Inherit from the AOSPA configuration. +$(call inherit-product, vendor/aospa/target/product/aospa-target.mk) + +PRODUCT_BRAND := realme +PRODUCT_DEVICE := porsche +PRODUCT_MANUFACTURER := realme +PRODUCT_MODEL := realme GT 2 +PRODUCT_NAME := aospa_porsche + +PRODUCT_SYSTEM_NAME := RE58B2L1 +PRODUCT_SYSTEM_DEVICE := RE58B2L1 + +PRODUCT_GMS_CLIENTID_BASE := android-oppo + +# Override device name for Play Store. +PRODUCT_BUILD_PROP_OVERRIDES += \ + TARGET_DEVICE=$(PRODUCT_SYSTEM_DEVICE) \ + TARGET_PRODUCT=$(PRODUCT_SYSTEM_NAME) + +# Boot animation resolution. +TARGET_BOOT_ANIMATION_RES := 1080 + +endif