diff options
-rwxr-xr-x | extract-files.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/extract-files.sh b/extract-files.sh index 930ad0b..a140fa6 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -74,7 +74,9 @@ function blob_fixup() { sed -i 's|/product/framework/qcrilhook.jar|/system_ext/framework/qcrilhook.jar|g' "${2}" ;; system_ext/lib64/libdpmframework.so) - "${PATCHELF}" --add-needed "libshim_dpmframework.so" "${2}" + for LIBSHIM_DPMFRAMEWORK in $(grep -L "libshim_dpmframework.so" "${2}"); do + "${PATCHELF}" --add-needed "libshim_dpmframework.so" "$LIBSHIM_DPMFRAMEWORK" + done ;; vendor/bin/mlipayd@1.1) "${PATCHELF}" --remove-needed vendor.xiaomi.hardware.mtdservice@1.0.so "${2}" |