From 68d6679eab514461409da2bf07e6596f50406481 Mon Sep 17 00:00:00 2001 From: donjohanliebert Date: Wed, 2 Oct 2024 10:02:56 +0800 Subject: [PATCH] sweet: Rise Up 'Redmi Note 10 Pro / Pro Max' Signed-off-by: donjohanliebert --- BoardConfig.mk | 26 ++++++++++++++++++++++++-- lineage.dependencies | 6 ------ lineage_sweet.mk | 27 ++++++++++++++++++++++++--- rising.dependencies | 44 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 92 insertions(+), 11 deletions(-) delete mode 100644 lineage.dependencies create mode 100644 rising.dependencies diff --git a/BoardConfig.mk b/BoardConfig.mk index 51361f1..3b8c982 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -18,6 +18,27 @@ TARGET_OTA_ASSERT_DEVICE := sweet,sweetin # Audio TARGET_PROVIDES_AUDIO_EXTNS := true +# Broken Rules +BUILD_BROKEN_CLANG_PROPERTY := true +BUILD_BROKEN_CLANG_ASFLAGS := true +BUILD_BROKEN_CLANG_CFLAGS := true +BUILD_BROKEN_DEPFILE := true +BUILD_BROKEN_DUP_RULES := true +BUILD_BROKEN_DUP_SYSPROP := true +BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true +BUILD_BROKEN_ENFORCE_SYSPROP_OWNER := true +BUILD_BROKEN_INPUT_DIR_MODULES := true +BUILD_BROKEN_MISSING_REQUIRED_MODULES := true +BUILD_BROKEN_OUTSIDE_INCLUDE_DIRS := true +BUILD_BROKEN_PREBUILT_ELF_FILES := true +#BUILD_BROKEN_TREBLE_SYSPROP_NEVERALLOW := true +BUILD_BROKEN_USES_NETWORK := true +BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true +BUILD_BROKEN_VINTF_PRODUCT_COPY_FILES := true +BUILD_BROKEN_INCORRECT_PARTITION_IMAGES := true +BUILD_BROKEN_GENRULE_SANDBOXING := true +BUILD_BROKEN_DONT_CHECK_SYSTEMSDK := true + # HIDL DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml @@ -40,8 +61,9 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop # Screen density TARGET_SCREEN_DENSITY := 440 -# Vendor security patch level -VENDOR_SECURITY_PATCH := 2023-11-01 +# Security patch level +BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) +VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) # Inherit from proprietary files include vendor/xiaomi/sweet/BoardConfigVendor.mk diff --git a/lineage.dependencies b/lineage.dependencies deleted file mode 100644 index ae1d264..0000000 --- a/lineage.dependencies +++ /dev/null @@ -1,6 +0,0 @@ -[ - { - "repository": "android_device_xiaomi_sm6150-common", - "target_path": "device/xiaomi/sm6150-common" - } -] diff --git a/lineage_sweet.mk b/lineage_sweet.mk index 7892401..8f94e67 100644 --- a/lineage_sweet.mk +++ b/lineage_sweet.mk @@ -8,20 +8,41 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) -# Inherit from sweet device +# Inherit from sweet device. $(call inherit-product, device/xiaomi/sweet/device.mk) -# Inherit some common Lineage stuff. +# Inherit some common LineageOS stuff. $(call inherit-product, vendor/lineage/config/common_full_phone.mk) +RISING_MAINTAINER := honokascape +PRODUCT_BUILD_PROP_OVERRIDES += \ + RISING_CHIPSET="Snapdragon 732G" \ + RISING_MAINTAINER="Don Johan Liebert" +# Device identifier. PRODUCT_NAME := lineage_sweet PRODUCT_DEVICE := sweet PRODUCT_BRAND := Xiaomi PRODUCT_MODEL := Redmi Note 10 Pro PRODUCT_MANUFACTURER := Xiaomi +# GMS PRODUCT_GMS_CLIENTID_BASE := android-xiaomi +WITH_GMS := true +# Targets +TARGET_ENABLE_BLUR := true +TARGET_SUPPORTS_64_BIT_APPS := true +TARGET_FACE_UNLOCK_SUPPORTED := true +TARGET_DEFAULT_PIXEL_LAUNCHER := true +TARGET_PREBUILT_LAWNCHAIR_LAUNCHER := true +TARGET_HAS_UDFPS := false + +# Fingerprint BUILD_FINGERPRINT := Redmi/sweet_global/sweet:13/TKQ1.221013.002/V14.0.9.0.TKFMIXM:user/release-keys +BUILD_DESCRIPTION := sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys + +PRODUCT_PROPERTY_OVERRIDES += \ + ro.build.fingerprint=$(BUILD_FINGERPRINT) + PRODUCT_BUILD_PROP_OVERRIDES += \ - PRIVATE_BUILD_DESC="sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys" + PRIVATE_BUILD_DESC="$(BUILD_DESCRIPTION)" diff --git a/rising.dependencies b/rising.dependencies new file mode 100644 index 0000000..02630eb --- /dev/null +++ b/rising.dependencies @@ -0,0 +1,44 @@ +[ + { + "remote" : "repo.radio", + "repository" : "donjohanliebert/device_xiaomi_sm6150-common", + "branch" : "udc", + "target_path" : "device/xiaomi/sm6150-common" + }, + { + "remote" : "repo.radio", + "repository" : "donjohanliebert/vendor_xiaomi_sweet", + "branch" : "udc", + "target_path" : "vendor/xiaomi/sweet" + }, + { + "remote" : "repo.radio", + "repository" : "donjohanliebert/vendor_xiaomi_sm6150-common", + "branch" : "udc", + "target_path" : "vendor/xiaomi/sm6150-common" + }, + { + "remote" : "repo.radio", + "repository" : "donjohanliebert/vendor_xiaomi_sweet-miuicamera", + "branch" : "udc", + "target_path" : "vendor/xiaomi/sweet-miuicamera" + }, + { + "remote" : "github", + "repository" : "pure-soul-kk/kernel_xiaomi_sm6150", + "branch" : "LN-KSU", + "target_path" : "kernel/xiaomi/sm6150" + }, + { + "remote" : "github", + "repository" : "PixelOS-AOSP/hardware_xiaomi", + "branch" : "fourteen", + "target_path" : "hardware/xiaomi" + }, + { + "remote" : "gitlab", + "repository" : "itsshashanksp/android_prebuilts_clang_host_linux-x86_clang-r530567", + "branch" : "14.0", + "target_path" : "prebuilts/clang/host/linux-x86/clang-r530567" + } +]