Compare commits

..

10 Commits

Author SHA1 Message Date
kamleshhv
2cab94606a sweet: Add min and peak refresh rate option
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
raghavt20
bd3b07d0b1 sweet: Set target display density to 410
Change-Id: I11cd2699e105148a8fd381ca8bc91840a53db66b
Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
basamaryan
c3b7f04f18 sweet: overlay-lineage: Disable Pocket Lock
Change-Id: I28ecec5521e4301ed952d95bc8a8075395cc9393
Signed-off-by: Hazama25 <hazamafawkes@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:26 +08:00
5be898bfd2 sweet: Initialize Evolution-X 9.x
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:07:20 +08:00
Adithya R
2009bc4016 sweet: Define OEM fast charge sysfs node
* this forces android to display "charging rapidly" whenever our
   proprietary 33w charger is connected, based on the value of
   this node (0/1)

Change-Id: I2a36ccb62621672e480e4b25a335410044fbb372
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:06:07 +08:00
basamaryan
7d896c10bf sweet: audio: Forcefully disable volume leveler
sed -i "/volume-leveler-enable/ s/true/false/g" configs/audio/dax-default.xml

Change-Id: I7ceb29291a9e55036d57975f5a28a149c7fcb435
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:02:45 +08:00
Fabian Leutenegger
535dd647dc sweet: Link Dolby Atmos dependencies against v33 libstagefright_foundation
* fixes crashes and absurdly high CPU usage while using dolby

Co-authored-by: Woomymy <woomy@woomy.be>
Change-Id: Ib72b775dae677f3085d0b0e2afcbb709d8690063
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:02:45 +08:00
madmax7896
85f4dcb00f sweet: Import Dolby audio blobs
Squashed with:
commit 0a7aab81667f137c57fa95c4661fa7e43e0e2c1c
Author: Pranav Vashi <neobuddy89@gmail.com>
Date:   Fri Aug 2 20:27:52 2024 +0530

    sweet: Move dax-default to device tree

    Change-Id: Id2054bb5e61bcfe58706e32f44d37fe7524aa912
    Signed-off-by: Pranav Vashi <neobuddy89@gmail.com>

Change-Id: I2d466238525d074269377a82627a816527aefd74
Signed-off-by: Mesquita <mesquita@aospa.co>
Signed-off-by: basamaryan <basam.aryan@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:02:45 +08:00
basamaryan
38443b129c sweet: Build XiaomiDolby
Change-Id: I31ff2c27a479423951c8a645bf1cd65dc6ad6f81
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:02:45 +08:00
basamaryan
7ff4ecb533 sweet: Enable TARGET_USES_DOLBY
Change-Id: I33d799f4a9f3b8fe05dbfcfa3d623049da187f00
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
2024-11-12 14:02:45 +08:00
11 changed files with 1694 additions and 14 deletions

View File

@ -18,6 +18,27 @@ TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
# Audio # Audio
TARGET_PROVIDES_AUDIO_EXTNS := true 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 # HIDL
DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/manifest.xml
@ -38,10 +59,11 @@ TARGET_ODM_PROP += $(DEVICE_PATH)/properties/odm.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/properties/vendor.prop
# Screen density # Screen density
TARGET_SCREEN_DENSITY := 440 TARGET_SCREEN_DENSITY := 410
# Vendor security patch level # Security patch level
VENDOR_SECURITY_PATCH := 2023-11-01 BOOT_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Inherit from proprietary files # Inherit from proprietary files
include vendor/xiaomi/sweet/BoardConfigVendor.mk include vendor/xiaomi/sweet/BoardConfigVendor.mk

File diff suppressed because it is too large Load Diff

View File

@ -19,11 +19,16 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \ $(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
$(LOCAL_PATH)/configs/audio/dax-default.xml:$(TARGET_COPY_OUT_VENDOR)/etc/dolby/dax-default.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \ $(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \ $(LOCAL_PATH)/configs/audio/mixer_paths_overlay_dynamic.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_dynamic.xml \
$(LOCAL_PATH)/configs/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml \ $(LOCAL_PATH)/configs/audio/mixer_paths_overlay_static.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_overlay_static.xml \
$(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml $(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml
# Device Settings
PRODUCT_PACKAGES += \
XiaomiDolby
# Display # Display
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/display/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml \ $(LOCAL_PATH)/configs/display/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml \
@ -32,10 +37,19 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
hwcomposer.qcom hwcomposer.qcom
# Dolby
TARGET_USES_DOLBY := true
# Init scripts # Init scripts
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/init.sweet.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.sweet.rc $(LOCAL_PATH)/rootdir/etc/init.sweet.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.sweet.rc
# Media
PRODUCT_PACKAGES += \
libavservices_minijail_vendor \
libcodec2_soft_common.vendor \
libsfplugin_ccodec_utils.vendor
# NFC # NFC
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
com.android.nfc_extras \ com.android.nfc_extras \

View File

@ -25,6 +25,10 @@ function blob_fixup() {
sed -i "s|libMegviiFacepp-0.5.2.so|libFaceDetectpp-0.5.2.so|g" "${2}" sed -i "s|libMegviiFacepp-0.5.2.so|libFaceDetectpp-0.5.2.so|g" "${2}"
sed -i "s|megviifacepp_0_5_2_model|facedetectpp_0_5_2_model|g" "${2}" sed -i "s|megviifacepp_0_5_2_model|facedetectpp_0_5_2_model|g" "${2}"
;; ;;
vendor/lib64/libdlbdsservice.so | vendor/lib/libstagefright_soft_ac4dec.so | vendor/lib/libstagefright_soft_ddpdec.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --replace-needed "libstagefright_foundation.so" "libstagefright_foundation-v33.so" "${2}"
;;
*) *)
return 1 return 1
;; ;;

View File

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

View File

@ -8,20 +8,34 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.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) $(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) $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Device identifier.
PRODUCT_NAME := lineage_sweet PRODUCT_NAME := lineage_sweet
PRODUCT_DEVICE := sweet PRODUCT_DEVICE := sweet
PRODUCT_BRAND := Xiaomi PRODUCT_BRAND := Xiaomi
PRODUCT_MODEL := Redmi Note 10 Pro PRODUCT_MODEL := Redmi Note 10 Pro
PRODUCT_MANUFACTURER := Xiaomi PRODUCT_MANUFACTURER := Xiaomi
# GMS
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
WITH_GMS := true
# Targets
TARGET_SUPPORTS_64_BIT_APPS := true
TARGET_HAS_UDFPS := false
BUILD_BCR := true
# Fingerprint
BUILD_FINGERPRINT := Redmi/sweet_global/sweet:13/TKQ1.221013.002/V14.0.9.0.TKFMIXM:user/release-keys 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 += \ 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)"

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
SPDX-FileCopyrightText: 2024 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Pocket Lock -->
<bool name="config_pocketModeSupported">false</bool>
</resources>

View File

@ -402,4 +402,7 @@
<!-- Indicates whether device has a power button fingerprint sensor. --> <!-- Indicates whether device has a power button fingerprint sensor. -->
<bool name="config_is_powerbutton_fps" translatable="false">true</bool> <bool name="config_is_powerbutton_fps" translatable="false">true</bool>
<!-- Path to fast charging status file to detect whether an oem fast charger is active -->
<string name="config_oemFastChargerStatusPath" translatable="false">/sys/class/power_supply/bms/fastcharge_mode</string>
</resources> </resources>

View File

@ -18,7 +18,10 @@
--> -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether to show Smooth Display feature in Settings Options --> <!-- Whether to show peak refresh rate in display settings -->
<bool name="config_show_smooth_display">true</bool> <bool name="config_show_peak_refresh_rate_switch">true</bool>
<!-- Whether to show min refresh rate in display settings -->
<bool name="config_show_min_refresh_rate_switch">true</bool>
</resources> </resources>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2024 The Evolution X Project
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Android version screen, build maintainer -->
<string name="build_maintainer_summary" translatable="false">Johan Liebert</string>
<string name="build_maintainer_donate_url" translatable="false">https://t.me/honokascape</string>
</resources>

View File

@ -343,6 +343,24 @@ vendor/firmware/a615_zap.mdt
vendor/firmware/a618_gmu.bin vendor/firmware/a618_gmu.bin
vendor/firmware/a630_sqe.fw vendor/firmware/a630_sqe.fw
# Media (Dolby)
vendor/bin/hw/vendor.dolby.hardware.dms@2.0-service
vendor/etc/init/vendor.dolby.hardware.dms@2.0-service.rc
vendor/etc/media_codecs_dolby_audio.xml
vendor/etc/vintf/manifest/manifest_vendor.dolby.hardware.dms.xml
vendor/lib/libdapparamstorage.so
vendor/lib/libdeccfg.so
vendor/lib/libstagefright_soft_ac4dec.so
vendor/lib/libstagefright_soft_ddpdec.so
vendor/lib/soundfx/libhwdap.so
vendor/lib/soundfx/libswgamedap.so
vendor/lib/soundfx/libswvqe.so
vendor/lib/vendor.dolby.hardware.dms@2.0.so
vendor/lib64/libdapparamstorage.so
vendor/lib64/libdlbdsservice.so
vendor/lib64/vendor.dolby.hardware.dms@2.0-impl.so
vendor/lib64/vendor.dolby.hardware.dms@2.0.so
# NFC # NFC
vendor/etc/libnfc-nci.conf vendor/etc/libnfc-nci.conf
vendor/etc/libnfc-nxp.conf vendor/etc/libnfc-nxp.conf