sweet: initialize Evolution-X 11.x

Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
therealmharc
2025-11-05 15:27:46 +00:00
parent 2b590106d8
commit 54110ba528
4 changed files with 79 additions and 10 deletions

View File

@@ -18,6 +18,29 @@ TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
# Audio
TARGET_PROVIDES_AUDIO_EXTNS := true
# Broken Rules
ifneq ($(TARGET_BUILD_VARIANT), user)
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
endif
# HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
@@ -40,8 +63,9 @@ TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
# Screen density
TARGET_SCREEN_DENSITY := 410
# 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

View File

@@ -1,6 +0,0 @@
[
{
"repository": "android_device_xiaomi_sm6150-common",
"target_path": "device/xiaomi/sm6150-common"
}
]

View File

@@ -9,20 +9,61 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
TARGET_SUPPORTS_OMX_SERVICE := false
$(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 / Evolution-X stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Bootanimation
TARGET_INCLUDE_BOOT_ANIMATIONS := true
TARGET_SCREEN_WIDTH := 1080
TARGET_SCREEN_HEIGHT := 2400
# Face Unlock
TARGET_SUPPORTS_64_BIT_APPS := true
# DeviceAsWebcam
TARGET_BUILD_DEVICE_AS_WEBCAM := false
# Enable blur
TARGET_ENABLE_BLUR := true
# BCR
TARGET_INCLUDE_BCR := true
# Other ROM feature flags
BYPASS_CHARGE_SUPPORTED := false
PERF_ANIM_OVERRIDE := true
TORCH_STR_SUPPORTED := false
# Targets
TARGET_INCLUDE_VIPERFX := false
TARGET_DISABLE_LINEAGE_SDK := false
TARGET_DISABLE_EPPE := false
TARGET_BUILD_APERTURE_CAMERA := false
TARGET_EXCLUDES_AUDIOFX := false
TARGET_HAS_UDFPS := false
# Device identifier.
PRODUCT_NAME := lineage_sweet
PRODUCT_DEVICE := sweet
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Redmi Note 10 Pro
PRODUCT_MANUFACTURER := Xiaomi
# GMS
ifeq ($(WITH_GMS),true)
TARGET_USES_MINI_GAPPS := false
TARGET_USES_PICO_GAPPS := false
TARGET_SUPPORTS_QUICK_TAP := true
TARGET_INCLUDE_LIVE_WALLPAPERS := true
TARGET_INCLUDE_STOCK_ARCORE := true
TARGET_SUPPORTS_GOOGLE_RECORDER := true
endif
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
# Properties
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys" \
BuildFingerprint=Redmi/sweet_global/sweet:13/TKQ1.221013.002/V14.0.9.0.TKFMIXM:user/release-keys

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) Evolution X
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- About device screen, build maintainer -->
<string name="build_maintainer_summary">therealmharc | donjohanliebert</string>
<string name="build_maintainer_donate_url">https://paypal.me/donjohanliebert</string>
</resources>