Compare commits

11 Commits
bka ... vic

Author SHA1 Message Date
Hexdare
2aab695d31 haydn: Initialize for EvolutionX 10.X 2025-06-11 10:31:54 +00:00
Fiqri Ardyansyah
95afde49f2 haydn: Address missing SetTaskProfiles symbol in camera libs
The camera HAL forced stop because it could not load
/vendor/lib64/hw/camera.xiaomi.so which is due to the missing
`SetTaskProfiles` symbol referenced in several libraries:

fiqri@Fiqri:~/proprietary_vendor_xiaomi_marble$ grep -i -r SetTaskProfiles
grep: proprietary/vendor/lib64/hw/com.qti.chi.override.so: binary file matches
grep: proprietary/vendor/lib64/libmialgoengine.so: binary file matches
grep: proprietary/vendor/lib64/libcamxcommonutils.so: binary file matches

This is because DECLS was removed in [1] on Android 15 QPR2, and
caused SetTaskProfiles() to be hidden, so shim SetTaskProfiles
with libprocessgroup_shim.

[1]: 3e7c17a8e7

Change-Id: Ic46aae47bdf6be09736fe89d798cb7017f07cc6c
Signed-off-by: Fiqri Ardyansyah <fiqri191002@gmail.com>
2025-06-11 10:10:39 +00:00
Hexdare
39a8285236 haydn: Update firmware from V816.0.18.0.UKKMIXM 2025-06-11 10:10:39 +00:00
Hexdare
e77b877034 haydn: Update from V816.0.12.0.UKKCNXM 2025-06-11 10:10:39 +00:00
Hexdare
6d385fe43f haydn: set camera override format from reserved via soong config 2025-06-11 10:10:37 +00:00
Asimuddin Mohammed
4cbd475a47 haydn: Add props for GameBar 2025-06-11 10:09:47 +00:00
1xtAsh
d71b871280 haydn: drop dependencies 2025-06-09 00:40:33 +00:00
1xtAsh
c6eb421935 haydn: : Enable min/max refresh rate settings 2025-06-09 00:40:33 +00:00
chemusqui1
da6b378d1f haydn: Define thresholds for switching refresh rate
* The display uses different gamma curves for different refresh rates.It's hard for panel vendor to tune the curves to have exact same brightness for different refresh rate (lazy), rr can switch so fast that makes a weird really annoying flicker, like a CRT, so we need to set a threshold for avoiding that flicker.

* Also, increasing rr switching timers, even if they made the CRT bug to be reduced, slowly scrolling on GMaps while Smooth Display is enabled, led to a weird gamma switching to a green tint, so we need to tune that too for avoiding that shifting.

Signed-off-by: 1xtAsh <ashraykrsingh321@gmail.com>
2025-06-09 00:40:33 +00:00
AdarshGrewal
c28a0929f4 haydn: Include Leica Camera if exists 2025-06-09 00:40:33 +00:00
AdarshGrewal
2a188d0b00 haydn: Include Firmware images 2025-06-09 00:40:33 +00:00
12 changed files with 115 additions and 11 deletions

View File

@@ -42,3 +42,9 @@ TARGET_QTI_VIBRATOR_USE_EFFECT_STREAM := true
# Include proprietary files
include vendor/xiaomi/haydn/BoardConfigVendor.mk
# Firmware
include vendor/xiaomi/haydn-firmware/BoardConfigVendor.mk
# Inherit from proprietary files for Leica Camera
-include vendor/xiaomi/haydn-miuicamera/products/board.mk

View File

@@ -47,3 +47,8 @@ PRODUCT_SOONG_NAMESPACES += \
# Call the proprietary setup
$(call inherit-product, vendor/xiaomi/haydn/haydn-vendor.mk)
# Call the Leica Camera setup
$(call inherit-product-if-exists, vendor/xiaomi/haydn-miuicamera/products/miuicamera.mk)
$(call soong_config_set,camera,override_format_from_reserved,true)

46
evolution.dependencies Normal file
View File

@@ -0,0 +1,46 @@
[
{
"remote" : "github-non-los",
"repository" : "Haydn-Lab/device_xiaomi_sm8350-common",
"target_path": "device/xiaomi/sm8350-common",
"branch" : "15"
},
{
"remote" : "github-non-los",
"repository" : "Haydn-Lab/vendor_xiaomi_sm8350-common",
"target_path": "vendor/xiaomi/sm8350-common",
"branch" : "15"
},
{
"repository" : "vendor_xiaomi_haydn",
"target_path": "vendor/xiaomi/haydn",
"branch" : "vic"
},
{
"repository" : "hardware_xiaomi",
"target_path": "hardware/xiaomi"
},
{
"remote" : "github-non-los",
"repository" : "Haydn-Lab/hardware_dolby",
"target_path": "hardware/dolby",
"branch" : "15"
},
{
"remote" : "gitlab",
"repository" : "Hexdare/haydn-miuicamera",
"target_path": "vendor/xiaomi/haydn-miuicamera",
"branch" : "fifteen-leica"
},
{
"remote" : "gitlab",
"repository" : "Hexdare/vendor_xiaomi_haydn-firmware",
"target_path": "vendor/xiaomi/haydn-firmware",
"branch" : "fourteen"
},
{
"repository" : "kernel_xiaomi_haydn",
"target_path": "kernel/xiaomi/sm8350",
"branch" : "vic"
}
]

6
extract-files.py Executable file → Normal file
View File

@@ -53,6 +53,12 @@ blob_fixups: blob_fixups_user_type = {
.clear_symbol_version('remote_handle64_invoke')
.clear_symbol_version('remote_handle64_open')
.clear_symbol_version('remote_register_buf_attr'),
(
'vendor/lib64/hw/camera.qcom.so',Add commentMore actions
'vendor/lib64/hw/com.qti.chi.override.so',
'vendor/lib64/libcamxcommonutils.so',
'vendor/lib64/libmialgoengine.so',
): blob_fixup().add_needed('libprocessgroup_shim.so'),
}
module = ExtractUtilsModule(

View File

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

View File

@@ -16,9 +16,16 @@ PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_MODEL := M2012K11G
PRODUCT_NAME := lineage_haydn
WITH_GMS := true
TARGET_DISABLE_EPPE := false
TARGET_BOOT_ANIMATION_RES := 1080
TARGET_ENABLE_BLUR := true
EVO_BUILD_TYPE := Official
TARGET_SUPPORTS_QUICK_TAP := true
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="haydn_global-user 14 UKQ1.231207.002 V816.0.11.0.UKKMIXM release-keys" \
BuildFingerprint=Xiaomi/haydn_global/haydn:14/UKQ1.231207.002/V816.0.11.0.UKKMIXM:user/release-keys \
BuildDesc="haydn_global-user 14 UKQ1.231207.002 V816.0.12.0.UKKCNXM release-keys" \
BuildFingerprint=Xiaomi/haydn_global/haydn:14/UKQ1.231207.002/V816.0.12.0.UKKCNXM:user/release-keys \
DeviceProduct=haydn \
SystemName=haydn_global

View File

@@ -340,4 +340,21 @@
<item>haydn</item>
<item>haydnpro</item>
</string-array>
<!-- The display uses different gamma curves for different refresh rates. It's hard for panel
vendor to tune the curves to have exact same brightness for different refresh rate. So
flicker could be observed at switch time. The issue is worse at the gamma lower end.
In addition, human eyes are more sensitive to the flicker at darker environment.
To prevent flicker, we only support higher refresh rates if the display brightness is above
a threshold. And the darker environment could have higher threshold.
For example, no higher refresh rate if
display brightness <= disp0 && ambient brightness <= amb0
|| display brightness <= disp1 && ambient brightness <= amb1
-->
<integer-array name="config_brightnessThresholdsOfPeakRefreshRate">
<item>74</item> <!-- 77% UI brightness -->
</integer-array>
<integer-array name="config_ambientThresholdsOfPeakRefreshRate">
<item>63</item>
</integer-array>
</resources>

View File

@@ -5,6 +5,11 @@
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether to show Minimum and Maximum refresh rate in display settings -->
<bool name="config_show_peak_refresh_rate_switch">true</bool>
<bool name="config_show_min_refresh_rate_switch">true</bool>
<!-- If using legacy - please use config_show_min_refresh_rate_switch prop -->
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">true</bool>
<bool name="config_show_smooth_display">false</bool>
</resources>

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2024 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">Hexdare</string>
<string name="build_maintainer_donate_url">https://linktr.ee/Hexdare</string>
</resources>

View File

@@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from haydn V816.0.11.0.UKKMIXM
# All unpinned blobs below are extracted from haydn V816.0.12.0.UKKCNXM
# ACDB
vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb

View File

@@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from haydn V816.0.11.0.UKKMIXM
# All unpinned blobs below are extracted from haydn V816.0.18.0.UKKMIXM
abl.img;AB
aop.img;AB

View File

@@ -46,3 +46,11 @@ on boot && property:ro.boot.hwc=GL
on boot && property:ro.boot.hwc=IN
setprop bluetooth.device.default_name "Mi 11X Pro"
on property:vendor.post_boot.parsed=1
chown system graphics /sys/class/drm/sde-crtc-0/measured_fps
chmod 0660 /sys/class/drm/sde-crtc-0/measured_fps
chown system system /sys/class/power_supply/battery/temp
chmod 0660 /sys/class/power_supply/battery/temp