sm8450-common: Patch keymint to use ndk backend

Change-Id: I45d2e0adebdc3c1f63220698e283f0a6471bc350
This commit is contained in:
Arian
2024-08-29 16:59:23 +02:00
parent eb8c5d864a
commit d88e19e3da

View File

@@ -65,6 +65,9 @@ fi
function blob_fixup() { function blob_fixup() {
case "${1}" in case "${1}" in
vendor/bin/hw/android.hardware.security.keymint-service-qti|vendor/lib64/libqtikeymint.so) vendor/bin/hw/android.hardware.security.keymint-service-qti|vendor/lib64/libqtikeymint.so)
"${PATCHELF_0_17_2}" --replace-needed "android.hardware.security.keymint-V1-ndk_platform.so" "android.hardware.security.keymint-V1-ndk.so" "${2}"
"${PATCHELF_0_17_2}" --replace-needed "android.hardware.security.secureclock-V1-ndk_platform.so" "android.hardware.security.secureclock-V1-ndk.so" "${2}"
"${PATCHELF_0_17_2}" --replace-needed "android.hardware.security.sharedsecret-V1-ndk_platform.so" "android.hardware.security.sharedsecret-V1-ndk.so" "${2}"
grep -q "android.hardware.security.rkp-V1-ndk.so" "${2}" || "${PATCHELF_0_17_2}" --add-needed "android.hardware.security.rkp-V1-ndk.so" "${2}" grep -q "android.hardware.security.rkp-V1-ndk.so" "${2}" || "${PATCHELF_0_17_2}" --add-needed "android.hardware.security.rkp-V1-ndk.so" "${2}"
;; ;;
vendor/etc/init/init.embmssl_server.rc) vendor/etc/init/init.embmssl_server.rc)