sweet: Infinity and beyond

Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
This commit is contained in:
Johan Liebert 2024-12-26 02:04:38 +00:00
parent 963412927f
commit 90b6210b21
5 changed files with 47 additions and 13 deletions

View File

@ -5,4 +5,4 @@
#
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_sweet.mk
$(LOCAL_DIR)/infinity_sweet.mk

View File

@ -15,6 +15,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
@ -33,12 +54,14 @@ BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 9122611200 # (BOARD_SUPER_PARTITION_SIZE -
# Properties
TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
TARGET_SYSTEM_PROP += $(DEVICE_PATH)/properties/system.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

View File

@ -8,19 +8,31 @@
$(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.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Inherit some common ProjectInfinity-X stuff.
$(call inherit-product, vendor/infinity/config/common_full_phone.mk)
INFINITY_BUILD_TYPE := OFFICIAL
INFINITY_MAINTAINER := Johan Liebert
PRODUCT_NAME := lineage_sweet
# Targets
TARGET_SUPPORTS_BLUR := true
TARGET_HAS_UDFPS := false
TARGET_SUPPORTS_64_BIT_APPS := true
TARGET_EXCLUDES_AUDIOFX := true
# Device identifier.
PRODUCT_NAME := infinity_sweet
PRODUCT_DEVICE := sweet
PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Redmi Note 10 Pro
PRODUCT_MANUFACTURER := Xiaomi
# GMS
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
WITH_GAPPS := true
TARGET_BUILD_GOOGLE_TELEPHONY := true
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="sweet_global-user 13 TKQ1.221013.002 V14.0.9.0.TKFMIXM release-keys" \

View File

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

5
properties/system.prop Normal file
View File

@ -0,0 +1,5 @@
# Infinity props
ro.infinity.soc=Snapdragon 732G (8 nm)
ro.infinity.battery=5020 mAh
ro.infinity.display=1080 x 2400, 120 Hz
ro.infinity.camera=108MP + 8MP + 5MP + 2MP + 16MP