diff --git a/products/AndroidProducts.mk b/products/AndroidProducts.mk index 36ab1bab..f2195738 100644 --- a/products/AndroidProducts.mk +++ b/products/AndroidProducts.mk @@ -22,6 +22,7 @@ PRODUCT_MAKEFILES += \ $(LOCAL_DIR)/oneplus9/aospa_oneplus9.mk \ $(LOCAL_DIR)/oneplus9pro/aospa_oneplus9pro.mk \ $(LOCAL_DIR)/oriole/aospa_oriole.mk \ + $(LOCAL_DIR)/phoenix/aospa_phoenix.mk \ $(LOCAL_DIR)/raven/aospa_raven.mk # Lunch targets @@ -34,4 +35,5 @@ COMMON_LUNCH_CHOICES += \ aospa_oneplus9-userdebug \ aospa_oneplus9pro-userdebug \ aospa_oriole-userdebug \ + aospa_phoenix-userdebug \ aospa_raven-userdebug diff --git a/products/phoenix/aospa.dependencies b/products/phoenix/aospa.dependencies new file mode 100644 index 00000000..e1cbc480 --- /dev/null +++ b/products/phoenix/aospa.dependencies @@ -0,0 +1,51 @@ +[ + { + "remote": "aospa", + "repository": "AOSPA/android_device_xiaomi_phoenix", + "target_path": "device/xiaomi/phoenix", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_kernel_xiaomi_phoenix", + "target_path": "kernel/msm-4.14", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_xiaomi", + "target_path": "hardware/xiaomi", + "revision": "topaz" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_audio", + "target_path": "vendor/qcom/opensource/audio-hal/primary-hal", + "revision": "topaz-855" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_display", + "target_path": "hardware/qcom/display", + "revision": "topaz-855" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_media", + "target_path": "hardware/qcom/media", + "revision": "topaz-855" + }, + { + "remote": "aospa", + "repository": "AOSPA/android_hardware_qcom_gps", + "target_path": "hardware/qcom/gps", + "revision": "sapphire-855" + }, + { + "remote": "blobs", + "repository": "proprietary_vendor_xiaomi", + "target_path": "vendor/xiaomi", + "revision": "topaz", + "clone-depth": "1" + } +] diff --git a/products/phoenix/aospa_phoenix.mk b/products/phoenix/aospa_phoenix.mk new file mode 100644 index 00000000..f67b42fd --- /dev/null +++ b/products/phoenix/aospa_phoenix.mk @@ -0,0 +1,37 @@ +# Copyright (C) 2022 Paranoid Android +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +ifeq (aospa_phoenix,$(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/full_base_telephony.mk) + +# Inherit device configurations +$(call inherit-product, device/xiaomi/phoenix/device.mk) + +# Inherit from the AOSPA configuration. +$(call inherit-product, vendor/aospa/target/product/aospa-target.mk) + +PRODUCT_NAME := aospa_phoenix +PRODUCT_DEVICE := phoenix +PRODUCT_BRAND := Redmi +PRODUCT_MODEL := Redmi K30 +PRODUCT_MANUFACTURER := Xiaomi + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi + +TARGET_BOOT_ANIMATION_RES := 1080 + +endif