diff --git a/extract-files.sh b/extract-files.sh index 9cb1e3a..a32d972 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -61,7 +61,7 @@ fi function blob_fixup() { case "${1}" in vendor/bin/hw/android.hardware.security.keymint-service) - ${PATCHELF} --add-needed "android.hardware.security.rkp-V3-ndk.so" "${2}" + grep -q "android.hardware.security.rkp-V3-ndk.so" "${2}" || ${PATCHELF} --add-needed "android.hardware.security.rkp-V3-ndk.so" "${2}" ;; esac }