From 495d37bc7dde7f200b12c726a53fe42b25663e9b Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sat, 15 Oct 2022 23:05:18 +0200 Subject: [PATCH] miuicamera: Rework way to prevent adding duplicate dependencies Change-Id: I2eb6484dbe3a9fddc883bf1290da1b76c4e1c54c --- extract-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index b1442fd..374a72b 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -56,7 +56,7 @@ fi function blob_fixup() { case "${1}" in system/lib64/libcamera_algoup_jni.xiaomi.so|system/lib64/libcamera_mianode_jni.xiaomi.so) - "${PATCHELF}" --add-needed "libgui_shim_miuicamera.so" "${2}" + grep -q "libgui_shim_miuicamera.so" "${2}" || "${PATCHELF}" --add-needed "libgui_shim_miuicamera.so" "${2}" ;; system/lib64/libmicampostproc_client.so) "${PATCHELF}" --remove-needed "libhidltransport.so" "${2}"