21 Commits
bka ... udc

Author SHA1 Message Date
Sal Savage
b77ddbe80f venus: Replace BTM_DEF_LOCAL_NAME with a sysprop
Change-Id: I2c90efac01e61500eb1be23bb0ae6f96c2acdc53
2024-10-22 15:37:27 +09:00
ralph950412
20c388db9d venus: Add libmialgo_basic
Change-Id: Ibc30774aee0ba19138b3dd3cc06092892c1d7b90
2024-10-22 15:37:08 +09:00
ralph950412
459f332e94 venus: Inherit miuicamera if it exists
Change-Id: I2eeb1a4979fa97faab7dd09ef80f1b91646e2cff
2024-10-22 15:37:07 +09:00
00f686b741 venus: Initialize for Evolution X 9.x 2024-10-22 15:36:56 +09:00
FlowerSea0208
25d71de71c venus: Update proprietary-files list
Sort, add missing lib, remove duplicate display configs

Change-Id: I24c52d29191316458322ae2a6b33bef8d4d6906d
2024-10-22 15:36:39 +09:00
Arian
ce7ea491ee venus: Enable udfps sensor
Change-Id: If133c8ec034c7e419a76d348dd3179edbe801946
2024-10-22 15:36:39 +09:00
Arian
d7b95ff9ea venus: sensors: Add v2 suffix to sensors.xiaomi
Change-Id: Ie6ef0e5fd4653eae298a3455edf14e05508e1cfd
2024-10-22 15:36:39 +09:00
FlowerSea0208
f90aabcde2 Revert "venus: Import udfps long press sensor"
This reverts commit bf08d53168.
2024-10-22 15:36:39 +09:00
FlowerSea0208
d35ff665b9 venus: Fix soname of fingerprint.goodix_fod.lahaina
Change-Id: I3d740998e48b483cd455d1d60d75a31962367355
2024-10-22 15:36:39 +09:00
FlowerSea0208
4ac9060d9a venus: Unpin fingerprint blobs
Change-Id: I73d27a13b8c3a7f56a61397e4dd452b621c38d6c
2024-10-22 15:36:39 +09:00
Michael Bestas
9cbe1a3a85 venus: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-10-22 15:36:39 +09:00
FlowerSea0208
6b23e762a8 venus: Drop unnecessary fingerprint HAL dependency
Change-Id: If47c012af4e1fed6bc6a9c956c40e1f820694179
2024-10-22 15:36:39 +09:00
FlowerSea0208
9997e198d3 venus: Switch to source-built fx.tunnel interface
Change-Id: I1b96a1df3758106b7516ee7b9ac90bd9374f6d1c
2024-10-22 15:36:39 +09:00
FlowerSea0208
6d064f64f6 venus: Decommonize citsensorservice
Change-Id: If086a47845ebc06f81576aed81dad2c0d842a4d5
2024-10-22 15:36:39 +09:00
FlowerSea0208
d4bf17ffb8 venus: Fix soname
Change-Id: Ieaa6d07a5c7a45dbf804587bfce68fef4fa4fc34
2024-10-22 15:36:39 +09:00
FlowerSea0208
c12e668f73 venus: Updated from venus OS1.0.6.0.UKBMIXM
Change-Id: Iad22455244f7d11305e9cbe96cb85d8ebdb448b8
2024-10-22 15:36:39 +09:00
Michael Bestas
338a470ffb venus: Sync extract scripts with templates
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc
2024-10-22 15:36:39 +09:00
FlowerSea0208
071fcecffd venus: Switch to common lineage Powershare hal
Change-Id: Ie5ed9e80b370717d2700eb7d86221d856d435b29
2024-10-22 15:36:39 +09:00
FlowerSea0208
5fc8327132 venus: Updated from venus OS1.0.5.0.UKBMIXM 2024-10-22 15:36:39 +09:00
SGCMarkus
aa21124e80 venus: unset BOARD_USERDATAIMAGE_PARTITION_SIZE
This not only saves a lot of build time when building with
TARGET_USERIMAGES_SPARSE_EXT_DISABLED and/or
TARGET_USERIMAGES_SPARSE_F2FS_DISABLED which is required
on A14, but also removes the need for the build system to
temporarily create a 40+GB userdata image.
Which means that less free space is required to start the
build.

Change-Id: Ibf48e7cdf566a4653e85352a79170b354d917234
2024-10-22 15:36:33 +09:00
Flower sea
e01a396e19 fixup! venus: Set stock TARGET_DEVICE and TARGET_PRODUCT 2024-10-22 15:36:24 +09:00
22 changed files with 268 additions and 329 deletions

View File

@@ -6,3 +6,8 @@
PRODUCT_MAKEFILES := \
$(LOCAL_DIR)/lineage_venus.mk
COMMON_LUNCH_CHOICES := \
lineage_venus-user \
lineage_venus-userdebug \
lineage_venus-eng

View File

@@ -26,16 +26,9 @@ TARGET_KERNEL_CONFIG += vendor/venus_QGKI.config
# Kernel modules
BOOT_KERNEL_MODULES := \
adsp_loader_dlkm.ko \
apr_dlkm.ko \
fts_touch_spi.ko \
hwid.ko \
mmhardware_sysfs_dlkm.ko \
msm_drm.ko \
q6_notifier_dlkm.ko \
q6_pdr_dlkm.ko \
qti_battery_charger_main.ko \
snd_event_dlkm.ko \
xiaomi_touch.ko
BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES)
@@ -43,7 +36,6 @@ BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES)
BOARD_DTBOIMG_PARTITION_SIZE := 25165824
# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
# Recovery

View File

@@ -1,29 +0,0 @@
<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
<!-- Copyright (C) 2020 Google Inc.
Copyright (C) 2022 The Pixel Experience Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<displayConfiguration>
<screenBrightnessRampFastDecrease>0.5</screenBrightnessRampFastDecrease>
<screenBrightnessRampFastIncrease>0.5</screenBrightnessRampFastIncrease>
<screenBrightnessRampSlowDecrease>0.04</screenBrightnessRampSlowDecrease>
<screenBrightnessRampSlowIncrease>0.05</screenBrightnessRampSlowIncrease>
<screenBrightnessMap>
<point>
<value>0.0</value>
<nits>2</nits>
</point>
<point>
<value>1.0</value>
<nits>1000.0</nits>
</point>
</screenBrightnessMap>
</displayConfiguration>

View File

@@ -9,39 +9,11 @@ $(call inherit-product, device/xiaomi/sm8350-common/common.mk)
# Inherit from miuicamera-venus
$(call inherit-product-if-exists, device/xiaomi/miuicamera-venus/device.mk)
$(call soong_config_set_bool,camera,override_format_from_reserved,true)
$(call soong_config_set,camera,package_name,com.android.camera)
# Display Device Config
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/display_id_4630946736638489730.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/displayconfig/display_id_4630946736638489730.xml
# Fingerprint
PRODUCT_PACKAGES += \
libudfpshandler
# Logging
SPAMMY_LOG_TAGS := \
MiStcImpl \
SDM \
SDM-histogram \
SRE \
SensorService \
WifiHAL \
cnss-daemon \
libcitsensorservice@2.0-impl \
libsensor-displayalgo \
libsensor-parseRGB \
libsensor-ssccalapi \
sensors \
vendor.qti.hardware.display.composer-service \
vendor.xiaomi.sensor.citsensorservice@2.0-service
ifneq ($(TARGET_BUILD_VARIANT),eng)
PRODUCT_VENDOR_PROPERTIES += \
$(foreach tag,$(SPAMMY_LOG_TAGS),log.tag.$(tag)=W)
endif
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
@@ -49,7 +21,7 @@ DEVICE_PACKAGE_OVERLAYS += \
# PowerShare
PRODUCT_PACKAGES += \
vendor.lineage.powershare-service.default
vendor.lineage.powershare@1.0-service.default
# Sensors
PRODUCT_PACKAGES += \
@@ -62,10 +34,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Shim
PRODUCT_PACKAGES += \
libprocessgroup_shim
# Rootdir
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/init.venus.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.venus.rc

View File

@@ -15,26 +15,23 @@
"repository": "hardware_xiaomi",
"target_path": "hardware/xiaomi"
},
{
"repository": "hardware_dolby",
"target_path": "hardware/dolby"
},
{
"repository": "device_xiaomi_miuicamera-venus",
"target_path": "device/xiaomi/miuicamera-venus"
},
{
"repository": "vendor_xiaomi_miuicamera-venus",
"target_path": "vendor/xiaomi/miuicamera-venus"
"target_path": "vendor/xiaomi/miuicamera-venus",
"remote": "evo-main"
},
{
"repository": "kernel_xiaomi_venus",
"target_path": "kernel/xiaomi/sm8350"
"repository": "packages_apps_ViPER4AndroidFX",
"target_path": "packages/apps/ViPER4AndroidFX"
},
{
"repository": "LineageOS/android_hardware_sony_timekeep",
"target_path": "hardware/sony/timekeep",
"repository": "crdroidandroid/android_kernel_xiaomi_sm8350",
"target_path": "kernel/xiaomi/sm8350",
"remote": "github-non-los",
"branch": "lineage-22.2"
"branch": "14.0"
}
]

View File

@@ -1,81 +0,0 @@
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
#
# SPDX-FileCopyrightText: 2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
from extract_utils.fixups_blob import (
blob_fixup,
blob_fixups_user_type,
)
from extract_utils.fixups_lib import (
lib_fixups,
lib_fixups_user_type,
)
from extract_utils.main import (
ExtractUtils,
ExtractUtilsModule,
)
namespace_imports = [
'hardware/qcom-caf/sm8350',
'hardware/xiaomi',
'vendor/qcom/opensource/display',
'vendor/xiaomi/sm8350-common',
'vendor/xiaomi/venus',
]
def lib_fixup_vendor_suffix(lib: str, partition: str, *args, **kwargs):
return f'{lib}_{partition}' if partition == 'vendor' else None
lib_fixups: lib_fixups_user_type = {
**lib_fixups,
(
): lib_fixup_vendor_suffix,
}
blob_fixups: blob_fixups_user_type = {
'vendor/etc/camera/pureShot_parameter.xml': blob_fixup()
.regex_replace(r'=(\d+)>', r'="\1">'),
('vendor/lib/hw/audio.primary.lahaina.so', 'vendor/lib/libaudioroute_ext.so'): blob_fixup()
.replace_needed('libaudioroute.so', 'libaudioroute-v34.so'),
'vendor/lib64/hw/camera.qcom.so': blob_fixup()
.binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74')
.add_needed('libprocessgroup_shim.so'),
'vendor/lib64/hw/camera.xiaomi.so': blob_fixup()
.sig_replace('AA 06 00 94', '1F 20 03 D5'),
'vendor/lib64/hw/com.qti.chi.override.so': blob_fixup()
.add_needed('libprocessgroup_shim.so'),
('vendor/lib64/libalLDC.so', 'vendor/lib64/libalhLDC.so'): blob_fixup()
.clear_symbol_version('AHardwareBuffer_allocate')
.clear_symbol_version('AHardwareBuffer_describe')
.clear_symbol_version('AHardwareBuffer_lock')
.clear_symbol_version('AHardwareBuffer_release')
.clear_symbol_version('AHardwareBuffer_unlock'),
('vendor/lib64/libarcsoft_hdrplus_hvx_stub.so', 'vendor/lib64/libarcsoft_super_night_raw.so', 'vendor/lib64/libmialgo_rfs.so', 'vendor/lib64/libmiphone_preview_bokeh.so'): blob_fixup()
.clear_symbol_version('remote_handle_close')
.clear_symbol_version('remote_handle_invoke')
.clear_symbol_version('remote_handle_open')
.clear_symbol_version('remote_handle64_close')
.clear_symbol_version('remote_handle64_invoke')
.clear_symbol_version('remote_handle64_open')
.clear_symbol_version('remote_register_buf_attr')
.clear_symbol_version('remote_session_control'),
'vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so': blob_fixup()
.sig_replace('8D 0A 00 94', '1F 20 03 D5'),
'vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so': blob_fixup()
.sig_replace('21 00 80 52 7C 00 00 94', '21 00 80 52 1F 20 03 D5'),
} # fmt: skip
module = ExtractUtilsModule(
'venus',
'xiaomi',
blob_fixups=blob_fixups,
lib_fixups=lib_fixups,
namespace_imports=namespace_imports,
)
if __name__ == '__main__':
utils = ExtractUtils.device(module)
utils.run()

52
extract-files.sh Executable file
View File

@@ -0,0 +1,52 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
function blob_fixup() {
case "${1}" in
vendor/etc/camera/pureShot_parameter.xml)
[ "$2" = "" ] && return 0
sed -i 's/=\([0-9]\+\)>/="\1">/g' "${2}"
;;
vendor/lib64/hw/camera.qcom.so)
[ "$2" = "" ] && return 0
sed -i "s/\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63/\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74/g" "${2}"
;;
vendor/lib64/hw/camera.xiaomi.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "AA 06 00 94" -P "1F 20 03 D5" -f "${2}"
;;
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "8D 0A 00 94" -P "1F 20 03 D5" -f "${2}"
;;
vendor/lib64/vendor.xiaomi.hardware.cameraperf@1.0-impl.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "7C 00 00 94" -P "1F 20 03 D5" -f "${2}"
;;
esac
return 0
}
function blob_fixup_dry() {
blob_fixup "$1" ""
}
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=venus
export DEVICE_COMMON=sm8350-common
export VENDOR=xiaomi
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"

6
lineage.dependencies Normal file
View File

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

View File

@@ -26,13 +26,13 @@ PRODUCT_NAME := lineage_venus
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
SystemName := venus_global
SystemDevice := venus
PRODUCT_SYSTEM_NAME := venus_global
PRODUCT_SYSTEM_DEVICE := venus
PRODUCT_BUILD_PROP_OVERRIDES += \
BuildDesc="venus_global-user 14 UKQ1.231207.002 V816.0.10.0.UKBMIXM release-keys" \
DeviceName=$(SystemDevice) \
DeviceProduct=$(SystemName)
PRIVATE_BUILD_DESC="venus_global-user 14 UKQ1.231207.002 V816.0.6.0.UKBMIXM release-keys" \
TARGET_DEVICE=$(PRODUCT_SYSTEM_DEVICE) \
TARGET_PRODUCT=$(PRODUCT_SYSTEM_NAME)
# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop
BUILD_FINGERPRINT := Xiaomi/venus_global/venus:14/UKQ1.231207.002/V816.0.10.0.UKBMIXM:user/release-keys
BUILD_FINGERPRINT := Xiaomi/venus_global/venus:14/UKQ1.231207.002/V816.0.6.0.UKBMIXM:user/release-keys

View File

@@ -70,114 +70,114 @@
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
<item>5.4</item>
<item>7.5</item>
<item>8.9</item>
<item>20.9</item>
<item>25.2</item>
<item>30.5</item>
<item>34.8</item>
<item>46.8</item>
<item>59.8</item>
<item>76.8</item>
<item>81.7</item>
<item>82.7</item>
<item>82.7</item>
<item>82.7</item>
<item>83.7</item>
<item>83.7</item>
<item>83.7</item>
<item>84.7</item>
<item>84.7</item>
<item>85.7</item>
<item>85.7</item>
<item>85.7</item>
<item>85.7</item>
<item>86.7</item>
<item>86.7</item>
<item>87.7</item>
<item>89.7</item>
<item>90.7</item>
<item>91.7</item>
<item>93.7</item>
<item>94.7</item>
<item>96.7</item>
<item>97.7</item>
<item>99.7</item>
<item>100.7</item>
<item>101.7</item>
<item>104.7</item>
<item>105.7</item>
<item>106.7</item>
<item>108.7</item>
<item>109.7</item>
<item>111.7</item>
<item>112.7</item>
<item>114.7</item>
<item>116.7</item>
<item>137.6</item>
<item>157.6</item>
<item>180.6</item>
<item>210.5</item>
<item>226.5</item>
<item>257.4</item>
<item>280.4</item>
<item>295.3</item>
<item>369.2</item>
<item>400.1</item>
<item>416.8</item>
<item>433.4</item>
<item>450.0</item>
<item>4.5</item>
<item>6.6</item>
<item>8</item>
<item>20</item>
<item>24.3</item>
<item>29.7</item>
<item>34</item>
<item>46</item>
<item>59</item>
<item>76</item>
<item>81</item>
<item>82</item>
<item>82</item>
<item>82</item>
<item>83</item>
<item>83</item>
<item>83</item>
<item>84</item>
<item>84</item>
<item>85</item>
<item>85</item>
<item>85</item>
<item>85</item>
<item>86</item>
<item>86</item>
<item>87</item>
<item>89</item>
<item>90</item>
<item>91</item>
<item>93</item>
<item>94</item>
<item>96</item>
<item>97</item>
<item>99</item>
<item>100</item>
<item>101</item>
<item>104</item>
<item>105</item>
<item>106</item>
<item>108</item>
<item>109</item>
<item>111</item>
<item>112</item>
<item>114</item>
<item>116</item>
<item>137</item>
<item>157</item>
<item>180</item>
<item>205</item>
<item>226</item>
<item>257</item>
<item>280</item>
<item>295</item>
<item>369</item>
<item>400</item>
<item>416.7</item>
<item>433.3</item>
<item>450</item>
<item>466.7</item>
<item>483.3</item>
<item>499.9</item>
<item>512.4</item>
<item>524.9</item>
<item>537.4</item>
<item>555.0</item>
<item>566.3</item>
<item>576.8</item>
<item>590.3</item>
<item>601.7</item>
<item>611.7</item>
<item>621.7</item>
<item>631.7</item>
<item>643.7</item>
<item>649.6</item>
<item>659.6</item>
<item>669.6</item>
<item>679.6</item>
<item>689.6</item>
<item>703.6</item>
<item>704.5</item>
<item>709.5</item>
<item>714.5</item>
<item>719.5</item>
<item>724.5</item>
<item>729.5</item>
<item>734.5</item>
<item>739.5</item>
<item>744.5</item>
<item>749.5</item>
<item>754.4</item>
<item>759.4</item>
<item>764.4</item>
<item>769.4</item>
<item>774.4</item>
<item>799.4</item>
<item>816.0</item>
<item>832.6</item>
<item>849.3</item>
<item>865.9</item>
<item>882.5</item>
<item>899.2</item>
<item>913.4</item>
<item>927.7</item>
<item>942.0</item>
<item>956.2</item>
<item>970.4</item>
<item>984.7</item>
<item>999.0</item>
<item>500</item>
<item>512.5</item>
<item>525</item>
<item>537.5</item>
<item>550</item>
<item>562.5</item>
<item>575</item>
<item>587.5</item>
<item>600</item>
<item>610</item>
<item>620</item>
<item>630</item>
<item>640</item>
<item>650</item>
<item>660</item>
<item>670</item>
<item>680</item>
<item>690</item>
<item>700</item>
<item>705</item>
<item>710</item>
<item>715</item>
<item>720</item>
<item>725</item>
<item>730</item>
<item>735</item>
<item>740</item>
<item>745</item>
<item>750</item>
<item>755</item>
<item>760</item>
<item>765</item>
<item>770</item>
<item>775</item>
<item>800</item>
<item>816.7</item>
<item>833.3</item>
<item>850</item>
<item>866.7</item>
<item>883.3</item>
<item>900</item>
<item>914.3</item>
<item>928.6</item>
<item>942.9</item>
<item>957.1</item>
<item>971.4</item>
<item>985.7</item>
<item>1000</item>
</array>
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
@@ -360,7 +360,7 @@
<!-- The maximum range of gamma adjustment possible using the screen
auto-brightness adjustment setting. -->
<fraction name="config_autoBrightnessAdjustmentMaxGamma">105%</fraction>
<fraction name="config_autoBrightnessAdjustmentMaxGamma">100%</fraction>
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
for debouncing the light sensor. Different constants are used to debounce the light sensor
@@ -368,7 +368,7 @@
brightness changes occur in response to an observed change in light level that exceeds the
hysteresis threshold. -->
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
<!-- Minimum screen brightness setting allowed by power manager.
The user is forbidden from setting the brightness below this level.
@@ -425,32 +425,14 @@
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">
M 127, 98
a 38, 38 0 1, 0 77,0
a 38, 38 0 1, 0 -77,0
Z
M 0, 0
L 204, 0
Z
M 0, 0
L 0, 147
@left
<string name="config_mainBuiltInDisplayCutout">
M 127,98
a 38,38 0 1 0 77,0
a 38,38 0 1 0 -77,0
Z
@left
</string>
<!-- A string config in svg path format for the main display shape.
(@see https://www.w3.org/TR/SVG/paths.html#PathData).
This config must be set unless:
1. {@link Configuration#isScreenRound} is true which means the display shape is circular
and the system will auto-generate a circular shape.
2. The display has no rounded corner and the system will auto-generate a rectangular shape.
(@see DisplayShape#createDefaultDisplayShape)
Note: If the display supports multiple resolutions, please define the path config based on
the highest resolution so that it can be scaled correctly in each resolution. -->
<string name="config_mainDisplayShape" translatable="false">M 243,0 L 1197,0 S 1280.7,-3.232 1325,18 C 1346.3,28.211 1376.426,43.96 1409,91 C 1445.328,143.462 1440,243 1440,243 L 1440,3006 S 1442.227,3072.916 1418,3113 C 1392.5,3155.185 1370.563,3165.773 1355,3176 C 1316.289,3201.438 1246,3200 1246,3200 L 194,3200 S 123.711,3201.438 85,3176 C 69.437,3165.773 47.5,3155.185 22,3113 C -2.227,3072.916 0,3006 0,3006 L 0,243 S -5.328,143.462 31,91 C 63.574,43.96 93.7,28.211 115,18 C 159.3,-3.232 243,0 243,0 Z</string>
<!-- Whether the display cutout region of the main built-in display should be forced to
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
-->
@@ -482,15 +464,15 @@
<!-- The default peak refresh rate. -->
<integer name="config_defaultPeakRefreshRate">120</integer>
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
<integer-array name="config_udfps_sensor_props" translatable="false" >
<item>720</item> <!-- <item>sensorLocationX</item> -->
<item>2490</item> <!-- <item>sensorLocationY</item> -->
<item>132</item> <!-- <item>sensorRadius</item> -->
</integer-array>
<!-- How long it takes for the HW to start illuminating after the illumination is requested. -->
<integer name="config_udfps_illumination_transition_ms">0</integer>
<!-- Whether to enable fp unlock when screen turns off on udfps devices -->
<bool name="config_screen_off_udfps_enabled">true</bool>
<!-- Default value for fp screen off unlock toggle, it only works for the devices that support
fp screen off unlock-->
<bool name="config_screen_off_udfps_default_on">true</bool>
</resources>

View File

@@ -16,6 +16,6 @@
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
-->
<dimen name="status_bar_height_default">30dp</dimen>
<dimen name="status_bar_height_portrait">147px</dimen>
<dimen name="status_bar_height_portrait">137px</dimen>
<dimen name="status_bar_height_landscape">30dp</dimen>
</resources>

View File

@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="status_bar_padding_top">53px</dimen>
<dimen name="status_bar_padding_top">63px</dimen>
</resources>

View File

@@ -17,7 +17,4 @@
<!-- Location on the screen of the center of the physical power button. This is a reasonable
default that should be overridden by device-specific overlays. -->
<dimen name="physical_power_button_center_screen_location_y">1380px</dimen>
<!-- Pixel pitch of the device. um/px -->
<item name="pixel_pitch" format="float" type="dimen">49.29</item>
</resources>

View File

@@ -5,6 +5,9 @@
SPDX-License-Identifier: Apache-2.0
-->
<resources>
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">true</bool>
<!-- The radius of the enrollment progress bar, in dp -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">137</integer>
</resources>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2025 Evolution X
Copyright (C) 2019-2024 Evolution X
SPDX-License-Identifier: Apache-2.0
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">

View File

@@ -1,2 +0,0 @@
# eBPF
ro.bpf.kver_override=5.4.299

View File

@@ -1,4 +1,4 @@
# These proprietary files are extracted from venus OS2.0.1.0.UKBEUXM, note the pinned blobs
# These proprietary files are extracted from venus OS1.0.6.0.UKBMIXM, note the pinned blobs
# ACDB
vendor/etc/acdbdata/Tutu/Tutu_Bluetooth_cal.acdb
@@ -188,13 +188,12 @@ vendor/lib64/hw/camera.xiaomi.so
vendor/lib64/hw/com.qti.chi.override.so
vendor/lib64/libBlinkStub.so
vendor/lib64/libI420colorconvert.so
vendor/lib64/libQnnHtpStub.so
vendor/lib64/libSNPE.so
vendor/lib64/libaidenoiser.so
vendor/lib64/libalAILDC.so;DISABLE_CHECKELF
vendor/lib64/libalCFR.so
vendor/lib64/libalLDC.so
vendor/lib64/libalhLDC.so
vendor/lib64/libalLDC.so;DISABLE_CHECKELF
vendor/lib64/libalhLDC.so;DISABLE_CHECKELF
vendor/lib64/libbitmlengine.so
vendor/lib64/libblink.so
vendor/lib64/libc++_shared.so
@@ -202,6 +201,9 @@ vendor/lib64/libcamera_dirty.so
vendor/lib64/libcamera_nn_stub.so
vendor/lib64/libcamera_scene.so
vendor/lib64/libcamerapostproc.so
vendor/lib64/libcapiv2svacnn.so
vendor/lib64/libcapiv2svarnn.so
vendor/lib64/libcapiv2vop.so
vendor/lib64/libchilog.so
vendor/lib64/libcom.qti.chinodeutils.so
vendor/lib64/libcvface_api.so
@@ -231,6 +233,7 @@ vendor/lib64/libmibokeh_mask_dsp.so
vendor/lib64/libmiphone_preview_bokeh.so;DISABLE_CHECKELF
vendor/lib64/libmm-color-convertor.so
vendor/lib64/libmpbase.so
vendor/lib64/libnanopb.so
vendor/lib64/libofflinedump.so
vendor/lib64/libofflinelog.so
vendor/lib64/libopencv.so
@@ -241,7 +244,13 @@ vendor/lib64/libqllengine.so;DISABLE_CHECKELF
vendor/lib64/libremosaic_wrapper.so
vendor/lib64/libremosaiclib.so
vendor/lib64/libsnpe_htp.so
vendor/lib64/libsns_api.so
vendor/lib64/libsns_device_mode_stub.so
vendor/lib64/libsns_fastRPC_util.so
vendor/lib64/libsns_low_lat_stream_stub.so
vendor/lib64/libsns_registry_skel.so
vendor/lib64/libsnsapi.so
vendor/lib64/libsnsdiaglog.so
vendor/lib64/libswregistrationalgo.so
vendor/lib64/libsynx.so
vendor/lib64/libtfestriping.so
@@ -267,10 +276,10 @@ vendor/lib64/libarcsoft_dual_sat.so
vendor/lib64/libarcsoft_dual_zoomtranslator.so
vendor/lib64/libarcsoft_dualcam_refocus_image.so
vendor/lib64/libarcsoft_dualcam_refocus_video.so
vendor/lib64/libarcsoft_hdrplus_hvx_stub.so
vendor/lib64/libarcsoft_hdrplus_hvx_stub.so;DISABLE_CHECKELF
vendor/lib64/libarcsoft_portrait_lighting.so
vendor/lib64/libarcsoft_portrait_lighting_c.so
vendor/lib64/libarcsoft_super_night_raw.so
vendor/lib64/libarcsoft_super_night_raw.so;DISABLE_CHECKELF
vendor/lib64/libarcsoft_triple_sat.so
vendor/lib64/libarcsoft_triple_zoomtranslator.so
@@ -648,6 +657,14 @@ vendor/lib64/sensors.mius.proximity.so
vendor/lib64/sensors.ssc.so
vendor/lib64/sensors.touch.detect.so
# Sensors (citsensor)
vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service
vendor/etc/init/vendor.xiaomi.hardware.citsensorservice@1.1-service.rc
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml
vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.1.so
# Sensors configs
vendor/etc/sensor_diag.cfg
vendor/etc/sensors/config/ak991x_dri_0.json

20
proprietary-firmware.txt Normal file
View File

@@ -0,0 +1,20 @@
## All proprietary files from this list, unless pinned and noted otherwise,
## are from venus OS1.0.6.0.UKBMIXM
abl.img;AB
aop.img;AB
bluetooth.img;AB
cpucp.img;AB
devcfg.img;AB
dsp.img;AB
featenabler.img;AB
hyp.img;AB
imagefv.img;AB
keymaster.img;AB
modem.img;AB
qupfw.img;AB
shrm.img;AB
tz.img;AB
uefisecapp.img;AB
xbl_config.img;AB
xbl.img;AB

View File

@@ -1 +0,0 @@
#!./extract-files.py --regenerate_makefiles

21
setup-makefiles.sh Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
#
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0
#
# If we're being sourced by the common script that we called,
# stop right here. No need to go down the rabbit hole.
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
return
fi
set -e
export DEVICE=venus
export DEVICE_COMMON=sm8350-common
export VENDOR=xiaomi
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"

View File

@@ -1,12 +1,5 @@
# Bluetooth
bluetooth.device.default_name=Mi 11
# Fingerprint
persist.vendor.fingerprint.type=udfps_optical
persist.vendor.fingerprint.sensor_location=720|2490|132
# Sensors
ro.vendor.sensors.xiaomi.udfps=true
# USB
vendor.usb.product_string=Mi 11

View File

@@ -1 +0,0 @@
cd h*/l*/c* && git fetch https://github.com/yaap/hardware_lineage_compat && git cherry-pick ff324381288b4e097e22dc523eb2e28b5eb14f56 && cd ../../..