Compare commits

...

10 Commits

Author SHA1 Message Date
9f7f200998
lisa:overlay: show min/max refresh rate in settings
Signed-off-by: zaidkhan0997 <kzaid0997@gmail.com>
2024-10-12 19:23:00 +05:30
Arian
e1380e6f24
lisa: Include MiuiCamera
Change-Id: I3154d9328fbcd17a25c88ab6c932af171c98f625
2024-10-12 19:21:34 +05:30
Arian
7acd7e8f16
lisa: Bring back face detection libs
Change-Id: I50af944e9398eef352f72f4729999f8d0c556837
2024-10-12 19:19:34 +05:30
Karan Parashar
7ed18af0c4
lisa: overlay: Set status_bar height to 10dp
Change-Id: I87b3a501a9fe93f9c7e8c95c767ce58db899aed1
2024-10-12 19:19:27 +05:30
3aaa31d6a8
lisa: Bringup Evolution-X OFFICIAL
Signed-off-by: zaidkhan0997 <kzaid0997@gmail.com>
2024-10-12 19:14:18 +05:30
Michael Bestas
d6d2d761d6
lisa: Disable ELF checks for certain libraries
Change-Id: I61dbc3559b43becc22f69ae2c1c3e8edf95e2483
2024-10-05 11:39:59 +02:00
FlowerSea0208
fe921c0dca
lisa: Decommonize citsensorservice
Change-Id: If086a47845ebc06f81576aed81dad2c0d842a4d5
2024-10-05 11:39:59 +02:00
FlowerSea0208
a0cb34c760
lisa: Fix soname
Change-Id: Ieaa6d07a5c7a45dbf804587bfce68fef4fa4fc34
2024-10-05 11:39:55 +02:00
FlowerSea0208
19a1800112 lisa: Updated from lisa OS1.0.7.0.UKOMIXM
Change-Id: Iea90fced4622f82bd06304dcd9a73d1466a2c079
2024-10-05 14:14:38 +08:00
Michael Bestas
aa290ee93e lisa: Sync extract scripts with templates
Change-Id: I98a36854c5a0c0390592911bb2558b34eff77efc
2024-09-01 17:11:42 +02:00
13 changed files with 134 additions and 40 deletions

View File

@ -5,6 +5,17 @@
# #
DEVICE_PATH := device/xiaomi/lisa DEVICE_PATH := device/xiaomi/lisa
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_VENDOR_PROPERTY_NAMESPACE := true
BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES := true
# Camera
TARGET_CAMERA_OVERRIDE_FORMAT_FROM_RESERVED := true
TARGET_INCLUDES_MIUI_CAMERA := true
MALLOC_SVELTE_FOR_LIBC32 := true
# Miui-Cam
TARGET_INCLUDES_MIUI_CAMERA := true
# Inherit from sm8350-common # Inherit from sm8350-common
include device/xiaomi/sm8350-common/BoardConfigCommon.mk include device/xiaomi/sm8350-common/BoardConfigCommon.mk
@ -29,5 +40,8 @@ BOARD_DTBOIMG_PARTITION_SIZE := 25165824
# Properties # Properties
TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
# Inherit MiuiCamera Makefile
-include vendor/xiaomi/miuicamera-$(PRODUCT_DEVICE)/BoardConfig.mk
# Include proprietary files # Include proprietary files
include vendor/xiaomi/lisa/BoardConfigVendor.mk include vendor/xiaomi/lisa/BoardConfigVendor.mk

View File

@ -7,10 +7,13 @@
# Inherit from sm8350-common # Inherit from sm8350-common
$(call inherit-product, device/xiaomi/sm8350-common/common.mk) $(call inherit-product, device/xiaomi/sm8350-common/common.mk)
# Inherit MiuiCamera Makefile
$(call inherit-product, vendor/xiaomi/miuicamera-lisa/device.mk)
# Overlays # Overlays
DEVICE_PACKAGE_OVERLAYS += \ DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \ $(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage $(LOCAL_PATH)/overlay-evolution
# Overlays-RRO # Overlays-RRO
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# #
# Copyright (C) 2020 The LineageOS Project # SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# # SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
# #
@ -9,15 +9,30 @@ function blob_fixup() {
case "${1}" in case "${1}" in
vendor/etc/camera/pureShot_parameter.xml \ vendor/etc/camera/pureShot_parameter.xml \
|vendor/etc/camera/pureView_parameter.xml) |vendor/etc/camera/pureView_parameter.xml)
[ "$2" = "" ] && return 0
sed -i 's/=\([0-9]\+\)>/="\1">/g' "${2}" sed -i 's/=\([0-9]\+\)>/="\1">/g' "${2}"
;; ;;
vendor/lib64/hw/camera.qcom.so)
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) vendor/lib64/hw/camera.xiaomi.so)
[ "$2" = "" ] && return 0
"${SIGSCAN}" -p "29 07 00 94" -P "1F 20 03 D5" -f "${2}" "${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 esac
return 0
}
function blob_fixup_dry() {
blob_fixup "$1" ""
} }
# If we're being sourced by the common script that we called, # If we're being sourced by the common script that we called,
@ -28,9 +43,9 @@ fi
set -e set -e
# Required!
export DEVICE=lisa export DEVICE=lisa
export DEVICE_COMMON=sm8350-common export DEVICE_COMMON=sm8350-common
export VENDOR=xiaomi export VENDOR=xiaomi
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR}/${DEVICE_COMMON}/extract-files.sh" "$@" "./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"

View File

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

View File

@ -11,9 +11,17 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
# Inherit from lisa device # Inherit from lisa device
$(call inherit-product, device/xiaomi/lisa/device.mk) $(call inherit-product, device/xiaomi/lisa/device.mk)
# Inherit some common Lineage stuff. # Inherit some common Evolution-X stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk) $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
# Bootanimation
TARGET_BOOT_ANIMATION_RES := 1080
# Evolution-X Stuff
EVO_BUILD_TYPE := Official
TARGET_FACE_UNLOCK_SUPPORTED := true
TARGET_SUPPORTS_QUICK_TAP := true
PRODUCT_BRAND := Xiaomi PRODUCT_BRAND := Xiaomi
PRODUCT_DEVICE := lisa PRODUCT_DEVICE := lisa
PRODUCT_MANUFACTURER := Xiaomi PRODUCT_MANUFACTURER := Xiaomi
@ -26,9 +34,9 @@ PRODUCT_SYSTEM_NAME := lisa_global
PRODUCT_SYSTEM_DEVICE := lisa PRODUCT_SYSTEM_DEVICE := lisa
PRODUCT_BUILD_PROP_OVERRIDES += \ PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="lisa_global-user 14 UKQ1.231108.001 V816.0.3.0.UKOMIXM release-keys" \ PRIVATE_BUILD_DESC="lisa_global-user 14 UKQ1.231108.001 V816.0.7.0.UKOMIXM release-keys" \
TARGET_DEVICE=$(PRODUCT_SYSTEM_DEVICE) \ TARGET_DEVICE=$(PRODUCT_SYSTEM_DEVICE) \
TARGET_PRODUCT=$(PRODUCT_SYSTEM_NAME) TARGET_PRODUCT=$(PRODUCT_SYSTEM_NAME)
# Set BUILD_FINGERPRINT variable to be picked up by both system and vendor build.prop # 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.3.0.UKOMIXM:user/release-keys BUILD_FINGERPRINT := Xiaomi/lisa_global/lisa:14/UKQ1.231108.001/V816.0.7.0.UKOMIXM:user/release-keys

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2021 The Evolution X 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.
-->
<resources>
<!-- Whether the device supports Smart Pixels -->
<bool name="config_supportSmartPixels">true</bool>
</resources>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2019-2021 The Evolution X 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.
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<string name="build_maintainer_summary">zαι∂ κнαи</string>
<string name="build_maintainer_telegram">https://t.me/zaidkhan0997</string>
</resources>

View File

@ -17,6 +17,10 @@
*/ */
--> -->
<resources> <resources>
<!-- The padding around the statusbar -->
<dimen name="status_bar_padding_top">10dp</dimen>
<!-- Default rounded corner curve (a Bezier). Must match (the curved path in) rounded.xml. <!-- Default rounded corner curve (a Bezier). Must match (the curved path in) rounded.xml.
Note that while rounded.xml includes the entire path (including the horizontal and vertical Note that while rounded.xml includes the entire path (including the horizontal and vertical
corner edges), this pulls out just the curve. corner edges), this pulls out just the curve.

View File

@ -5,6 +5,9 @@
SPDX-License-Identifier: Apache-2.0 SPDX-License-Identifier: Apache-2.0
--> -->
<resources> <resources>
<!-- 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

@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from lisa V816.0.3.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
@ -82,7 +82,7 @@ vendor/lib/libqtigef.so
vendor/lib/libresampler.so vendor/lib/libresampler.so
vendor/lib/libsndmonitor.so vendor/lib/libsndmonitor.so
vendor/lib/libssrec.so vendor/lib/libssrec.so
vendor/lib/libvideoNS.so vendor/lib/libvideoNS.so;DISABLE_CHECKELF
# Audio firmware # Audio firmware
vendor/firmware/tfa98xx.cnt vendor/firmware/tfa98xx.cnt
@ -163,12 +163,12 @@ vendor/lib64/libSNPE.so
vendor/lib64/lib_sr_models.so vendor/lib64/lib_sr_models.so
vendor/lib64/libaidenoiser.so vendor/lib64/libaidenoiser.so
vendor/lib64/libaidenoiserv2.so vendor/lib64/libaidenoiserv2.so
vendor/lib64/libalAILDC.so vendor/lib64/libalAILDC.so;DISABLE_CHECKELF
vendor/lib64/libalCFR.so vendor/lib64/libalCFR.so
vendor/lib64/libalLDC.so vendor/lib64/libalLDC.so;DISABLE_CHECKELF
vendor/lib64/libalhLDC.so vendor/lib64/libalhLDC.so;DISABLE_CHECKELF
vendor/lib64/libanc_dc_base.so vendor/lib64/libanc_dc_base.so
vendor/lib64/libanc_dc_plugin_xiaomi_v2.so vendor/lib64/libanc_dc_plugin_xiaomi_v2.so;DISABLE_CHECKELF
vendor/lib64/libanc_hdr.so vendor/lib64/libanc_hdr.so
vendor/lib64/libancbase.so vendor/lib64/libancbase.so
vendor/lib64/libbitmlengine.so vendor/lib64/libbitmlengine.so
@ -200,7 +200,7 @@ vendor/lib64/libjpege.so
vendor/lib64/libmctfengine_stub.so vendor/lib64/libmctfengine_stub.so
vendor/lib64/libmiStereoFactoryRemapBasicLib.so vendor/lib64/libmiStereoFactoryRemapBasicLib.so
vendor/lib64/libmiStereoFactoryRemapLib.so vendor/lib64/libmiStereoFactoryRemapLib.so
vendor/lib64/libmiStereoFactoryRemapLib_v2.so vendor/lib64/libmiStereoFactoryRemapLib_v2.so;FIX_SONAME
vendor/lib64/libmiXmlParser.so vendor/lib64/libmiXmlParser.so
vendor/lib64/libmiai_portraitsupernight.so vendor/lib64/libmiai_portraitsupernight.so
vendor/lib64/libmialgo_ai_vision.so vendor/lib64/libmialgo_ai_vision.so
@ -208,9 +208,9 @@ vendor/lib64/libmialgo_basic.so
vendor/lib64/libmialgo_ie_capture.so vendor/lib64/libmialgo_ie_capture.so
vendor/lib64/libmialgo_ie_preview.so vendor/lib64/libmialgo_ie_preview.so
vendor/lib64/libmialgo_image_colourkeeping.so vendor/lib64/libmialgo_image_colourkeeping.so
vendor/lib64/libmialgo_pureShot.so vendor/lib64/libmialgo_pureShot.so;DISABLE_CHECKELF
vendor/lib64/libmialgo_pureView.so vendor/lib64/libmialgo_pureView.so
vendor/lib64/libmialgo_rfs.so vendor/lib64/libmialgo_rfs.so;DISABLE_CHECKELF
vendor/lib64/libmialgo_sd.so vendor/lib64/libmialgo_sd.so
vendor/lib64/libmialgo_utils.so vendor/lib64/libmialgo_utils.so
vendor/lib64/libmialgo_video_colourkeeping.so vendor/lib64/libmialgo_video_colourkeeping.so
@ -230,7 +230,7 @@ vendor/lib64/libopencv.so
vendor/lib64/libopestriping.so vendor/lib64/libopestriping.so
vendor/lib64/libos.so vendor/lib64/libos.so
vendor/lib64/libqll10.so vendor/lib64/libqll10.so
vendor/lib64/libqllengine.so vendor/lib64/libqllengine.so;DISABLE_CHECKELF
vendor/lib64/librelight_only.so vendor/lib64/librelight_only.so
vendor/lib64/libremosaic_wrapper.so vendor/lib64/libremosaic_wrapper.so
vendor/lib64/libremosaiclib.so vendor/lib64/libremosaiclib.so
@ -263,9 +263,9 @@ vendor/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
# Camera arcsoft # Camera arcsoft
vendor/lib64/libarcsoft_beautyshot.so vendor/lib64/libarcsoft_beautyshot.so
vendor/lib64/libarcsoft_hdrplus_hvx_stub.so vendor/lib64/libarcsoft_hdrplus_hvx_stub.so;DISABLE_CHECKELF
vendor/lib64/libarcsoft_qnnhtp.so vendor/lib64/libarcsoft_qnnhtp.so
vendor/lib64/libarcsoft_super_night_raw.so vendor/lib64/libarcsoft_super_night_raw.so;DISABLE_CHECKELF
# Camera camerax # Camera camerax
vendor/lib/libcamxexternalformatutils.so vendor/lib/libcamxexternalformatutils.so
@ -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
@ -448,7 +453,7 @@ vendor/lib64/camera/plugins/com.xiaomi.plugin.supernight.so
# Camera sensors # Camera sensors
vendor/lib64/libmmcamera_bestats.so vendor/lib64/libmmcamera_bestats.so
vendor/lib64/libmmcamera_cac3.so vendor/lib64/libmmcamera_cac3.so
vendor/lib64/libmmcamera_faceproc.so vendor/lib64/libmmcamera_faceproc.so;DISABLE_CHECKELF
vendor/lib64/libmmcamera_faceproc2.so vendor/lib64/libmmcamera_faceproc2.so
vendor/lib64/libmmcamera_lscv35.so vendor/lib64/libmmcamera_lscv35.so
vendor/lib64/libmmcamera_mfnr.so vendor/lib64/libmmcamera_mfnr.so
@ -472,7 +477,7 @@ vendor/firmware/a660_zap.elf
vendor/firmware/a660_zap.mdt vendor/firmware/a660_zap.mdt
# Fingerprint # Fingerprint
vendor/lib64/hw/fingerprint.fpc.so:vendor/lib64/hw/fingerprint.fpc.default.so vendor/lib64/hw/fingerprint.fpc.so:vendor/lib64/hw/fingerprint.fpc.default.so;FIX_SONAME
# IPA firmware # IPA firmware
vendor/etc/init/ipa_fws.rc vendor/etc/init/ipa_fws.rc
@ -514,6 +519,14 @@ vendor/etc/libnfc-nci.conf
vendor/etc/libnfc-nxp.conf vendor/etc/libnfc-nxp.conf
vendor/etc/libnfc-nxp_RF.conf:vendor/libnfc-nxp_RF.conf vendor/etc/libnfc-nxp_RF.conf:vendor/libnfc-nxp_RF.conf
# 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 # Sensors
vendor/bin/init.qcom.sensors.sh vendor/bin/init.qcom.sensors.sh
vendor/bin/sensors.qti vendor/bin/sensors.qti
@ -521,8 +534,8 @@ vendor/bin/sscrpcd
vendor/etc/init/init.vendor.sensors.rc vendor/etc/init/init.vendor.sensors.rc
vendor/etc/init/vendor.sensors.qti.rc vendor/etc/init/vendor.sensors.qti.rc
vendor/etc/init/vendor.sensors.sscrpcd.rc vendor/etc/init/vendor.sensors.sscrpcd.rc
vendor/lib64/libnotifyaudiohal.so vendor/lib64/libnotifyaudiohal.so;FIX_SONAME
vendor/lib64/libsensor_cal_v2.so vendor/lib64/libsensor_cal_v2.so;DISABLE_CHECKELF
vendor/lib64/libsensorcal.so vendor/lib64/libsensorcal.so
vendor/lib64/libsensorslog.so vendor/lib64/libsensorslog.so
vendor/lib64/libsns_api.so vendor/lib64/libsns_api.so

View File

@ -1,4 +1,4 @@
# All unpinned blobs below are extracted from lisa V816.0.3.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

View File

@ -1,15 +1,21 @@
#!/bin/bash #!/bin/bash
# #
# Copyright (C) 2020 The LineageOS Project # SPDX-FileCopyrightText: 2016 The CyanogenMod Project
# # SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
# SPDX-License-Identifier: Apache-2.0 # 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 set -e
# Required!
export DEVICE=lisa export DEVICE=lisa
export DEVICE_COMMON=sm8350-common export DEVICE_COMMON=sm8350-common
export VENDOR=xiaomi export VENDOR=xiaomi
export VENDOR_COMMON=${VENDOR}
"./../../${VENDOR}/${DEVICE_COMMON}/setup-makefiles.sh" "$@" "./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"