Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
9f7f200998 | |||
|
e1380e6f24 | ||
|
7acd7e8f16 | ||
|
7ed18af0c4 | ||
3aaa31d6a8 |
13
Android.mk
Normal file
13
Android.mk
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
#
|
||||||
|
# Copyright (C) 2022 The LineageOS Project
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
|
||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
ifeq ($(TARGET_DEVICE),lisa)
|
||||||
|
|
||||||
|
include $(call all-makefiles-under,$(LOCAL_PATH))
|
||||||
|
|
||||||
|
endif
|
@ -39,7 +39,6 @@ BOARD_DTBOIMG_PARTITION_SIZE := 25165824
|
|||||||
|
|
||||||
# Properties
|
# Properties
|
||||||
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
|
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
|
||||||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
|
||||||
|
|
||||||
# Inherit MiuiCamera Makefile
|
# Inherit MiuiCamera Makefile
|
||||||
-include vendor/xiaomi/miuicamera-$(PRODUCT_DEVICE)/BoardConfig.mk
|
-include vendor/xiaomi/miuicamera-$(PRODUCT_DEVICE)/BoardConfig.mk
|
||||||
|
@ -1,55 +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_fixup_remove,
|
|
||||||
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',
|
|
||||||
]
|
|
||||||
|
|
||||||
lib_fixups: lib_fixups_user_type = {
|
|
||||||
**lib_fixups,
|
|
||||||
}
|
|
||||||
|
|
||||||
blob_fixups: blob_fixups_user_type = {
|
|
||||||
('vendor/etc/camera/pureShot_parameter.xml', 'vendor/etc/camera/pureView_parameter.xml'): blob_fixup()
|
|
||||||
.regex_replace(r'=(\d+)>', r'="\1">'),
|
|
||||||
'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'),
|
|
||||||
'vendor/lib64/hw/camera.xiaomi.so': blob_fixup()
|
|
||||||
.sig_replace('29 07 00 94', '1F 20 03 D5'),
|
|
||||||
} # fmt: skip
|
|
||||||
|
|
||||||
|
|
||||||
module = ExtractUtilsModule(
|
|
||||||
'lisa',
|
|
||||||
'xiaomi',
|
|
||||||
blob_fixups=blob_fixups,
|
|
||||||
lib_fixups=lib_fixups,
|
|
||||||
namespace_imports=namespace_imports,
|
|
||||||
add_firmware_proprietary_file=True,
|
|
||||||
)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
utils = ExtractUtils.device_with_common(
|
|
||||||
module, 'sm8350-common', module.vendor
|
|
||||||
)
|
|
||||||
utils.run()
|
|
51
extract-files.sh
Executable file
51
extract-files.sh
Executable file
@ -0,0 +1,51 @@
|
|||||||
|
#!/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 \
|
||||||
|
|vendor/etc/camera/pureView_parameter.xml)
|
||||||
|
[ "$2" = "" ] && return 0
|
||||||
|
sed -i 's/=\([0-9]\+\)>/="\1">/g' "${2}"
|
||||||
|
;;
|
||||||
|
vendor/lib64/hw/camera.xiaomi.so)
|
||||||
|
[ "$2" = "" ] && return 0
|
||||||
|
"${SIGSCAN}" -p "29 07 00 94" -P "1F 20 03 D5" -f "${2}"
|
||||||
|
;;
|
||||||
|
vendor/lib64/hw/camera.qcom.so | vendor/lib64/libFaceDetectpp-0.5.2.so | vendor/lib64/libfacedet.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}"
|
||||||
|
sed -i "s|libmegface.so|libfacedet.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}"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
return 1
|
||||||
|
;;
|
||||||
|
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=lisa
|
||||||
|
export DEVICE_COMMON=sm8350-common
|
||||||
|
export VENDOR=xiaomi
|
||||||
|
export VENDOR_COMMON=${VENDOR}
|
||||||
|
|
||||||
|
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
@ -30,6 +30,13 @@ PRODUCT_NAME := lineage_lisa
|
|||||||
|
|
||||||
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
|
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
|
||||||
|
|
||||||
|
PRODUCT_SYSTEM_NAME := lisa_global
|
||||||
|
PRODUCT_SYSTEM_DEVICE := lisa
|
||||||
|
|
||||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||||
BuildDesc="lisa_global-user 14 UKQ1.231108.001 V816.0.9.0.UKOMIXM release-keys" \
|
PRIVATE_BUILD_DESC="lisa_global-user 14 UKQ1.231108.001 V816.0.7.0.UKOMIXM release-keys" \
|
||||||
BuildFingerprint=Xiaomi/lisa_global/lisa:14/UKQ1.231108.001/V816.0.9.0.UKOMIXM:user/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/lisa_global/lisa:14/UKQ1.231108.001/V816.0.7.0.UKOMIXM:user/release-keys
|
||||||
|
@ -321,4 +321,21 @@
|
|||||||
|
|
||||||
<!-- The default peak refresh rate. -->
|
<!-- The default peak refresh rate. -->
|
||||||
<integer name="config_defaultPeakRefreshRate">90</integer>
|
<integer name="config_defaultPeakRefreshRate">90</integer>
|
||||||
|
|
||||||
|
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
||||||
|
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
||||||
|
|
||||||
|
<!-- An array of arrays of side fingerprint sensor properties relative to each display.
|
||||||
|
Note: this value is temporary and is expected to be queried directly
|
||||||
|
from the HAL in the future. -->
|
||||||
|
<array name="config_sfps_sensor_props" translatable="false">
|
||||||
|
<item>@array/config_sfps_sensor_props_0</item>
|
||||||
|
</array>
|
||||||
|
|
||||||
|
<array name="config_sfps_sensor_props_0" translatable="false">
|
||||||
|
<item></item> <!-- displayId -->
|
||||||
|
<item>1080</item> <!-- sensorLocationX -->
|
||||||
|
<item>960</item> <!-- sensorLocationY -->
|
||||||
|
<item>200</item> <!-- sensorRadius -->
|
||||||
|
</array>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# All unpinned blobs below are extracted from lisa V816.0.9.0.UKOMIXM
|
# All unpinned blobs below are extracted from lisa V816.0.7.0.UKOMIXM
|
||||||
|
|
||||||
# ACDB
|
# ACDB
|
||||||
vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb
|
vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb
|
||||||
@ -424,6 +424,11 @@ vendor/etc/camera/xiaomi/thirdpartydualbokehyuvsnapshot.json
|
|||||||
vendor/etc/camera/xiaomi/thirdpartyjpegsnapshot.json
|
vendor/etc/camera/xiaomi/thirdpartyjpegsnapshot.json
|
||||||
vendor/etc/camera/xiaomi/thirdpartysnapshot.json
|
vendor/etc/camera/xiaomi/thirdpartysnapshot.json
|
||||||
|
|
||||||
|
# Camera face detection
|
||||||
|
vendor/etc/camera/megviifacepp_0_5_2_model:vendor/etc/camera/facedetectpp_0_5_2_model
|
||||||
|
vendor/lib64/libMegviiFacepp-0.5.2.so:vendor/lib64/libFaceDetectpp-0.5.2.so;FIX_SONAME
|
||||||
|
vendor/lib64/libmegface.so:vendor/lib64/libfacedet.so;FIX_SONAME
|
||||||
|
|
||||||
# Camera firmware
|
# Camera firmware
|
||||||
vendor/firmware/CAMERA_ICP_170.elf
|
vendor/firmware/CAMERA_ICP_170.elf
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# All unpinned blobs below are extracted from lisa V816.0.9.0.UKOMIXM
|
# All unpinned blobs below are extracted from lisa V816.0.7.0.UKOMIXM
|
||||||
|
|
||||||
abl.img;AB
|
abl.img;AB
|
||||||
aop.img;AB
|
aop.img;AB
|
||||||
|
@ -1 +0,0 @@
|
|||||||
#!./extract-files.py --regenerate_makefiles
|
|
21
setup-makefiles.sh
Executable file
21
setup-makefiles.sh
Executable 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=lisa
|
||||||
|
export DEVICE_COMMON=sm8350-common
|
||||||
|
export VENDOR=xiaomi
|
||||||
|
export VENDOR_COMMON=${VENDOR}
|
||||||
|
|
||||||
|
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
@ -1,4 +0,0 @@
|
|||||||
# Fingerprint
|
|
||||||
persist.vendor.fingerprint.type=side
|
|
||||||
persist.vendor.fingerprint.sensor_modules=fpc
|
|
||||||
persist.vendor.fingerprint.sensor_location=1080|960|200|local:4630946480857061762,1080|960|200|local:4630946622257352578
|
|
Loading…
Reference in New Issue
Block a user