sm8550-common: Shim Samsung keymint service with libcrypto-v33.so

Current asn1t.h structs aren't binary compatible with our keymaster.

Change-Id: Id78b71c1f08216f861a033097cd015ba3c109925
This commit is contained in:
LuK1337
2024-03-27 18:41:12 +08:00
committed by chaptsand
parent 14f9a37725
commit aacb95b6fc
2 changed files with 5 additions and 0 deletions

View File

@@ -426,6 +426,10 @@ PRODUCT_COPY_FILES += \
PRODUCT_PACKAGES += \
android.hardware.weaver@1.0.vendor
# VNDK
PRODUCT_COPY_FILES += \
prebuilts/vndk/v33/arm64/arch-arm64-armv8-a/shared/vndk-core/libcrypto.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libcrypto-v33.so
# Vibrator
PRODUCT_PACKAGES += \
android.hardware.vibrator-V2-ndk.vendor

View File

@@ -62,6 +62,7 @@ function blob_fixup() {
case "${1}" in
vendor/bin/hw/android.hardware.security.keymint-service)
grep -q "android.hardware.security.rkp-V3-ndk.so" "${2}" || ${PATCHELF} --add-needed "android.hardware.security.rkp-V3-ndk.so" "${2}"
${PATCHELF} --replace-needed libcrypto.so libcrypto-v33.so "${2}"
;;
vendor/etc/vintf/manifest/sec_c2_manifest_default0_1_0.xml)
sed -i 's/default0/software/g' "${2}"