From 666717ef79a19f6ffa4306e0d8d68f0682a8294f Mon Sep 17 00:00:00 2001 From: althafvly Date: Sat, 19 Nov 2022 12:45:23 +0530 Subject: [PATCH] stone: Add libpiex_shim for com.mi.node.mialgocontrol.so Change-Id: I9e8b125ab5dfaa325db63b02a7fcf51577ee7b0d Signed-off-by: Arijit78 --- device.mk | 3 +++ extract-files.sh | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/device.mk b/device.mk index 2938ee3..c5e6a7d 100644 --- a/device.mk +++ b/device.mk @@ -127,6 +127,9 @@ PRODUCT_PACKAGES += \ libion.vendor \ libgui_vendor +PRODUCT_PACKAGES += \ + libpiex_shim + # Consumer IR PRODUCT_PACKAGES += \ android.hardware.ir@1.0-impl \ diff --git a/extract-files.sh b/extract-files.sh index 9082704..1808ef1 100644 --- a/extract-files.sh +++ b/extract-files.sh @@ -49,6 +49,15 @@ if [ -z "${SRC}" ]; then SRC="adb" fi +function blob_fixup() { + case "${1}" in + vendor/lib64/camera/components/com.qti.node.mialgocontrol.so) + llvm-strip --strip-debug "${2}" + grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}" + ;; + esac +} + # Initialize the helper setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"