sdm710-common: Link libwvhidl against libcrypto from vndk 33

* It depends on symbol CBS_init which is removed from the latest libcrypto.

F linker  : CANNOT LINK EXECUTABLE "/vendor/bin/hw/android.hardware.drm@1.3-service.widevine": cannot locate symbol "CBS_init" referenced by "/vendor/lib64/libwvhidl.so"...

Change-Id: I835f53be4970754bfffc37e8a5f5ddf0d16995ff
This commit is contained in:
Signed-off-by: lahaina 2024-09-13 16:57:04 +00:00 committed by CakesTwix
parent 648cf6451a
commit feaa34a9d5
2 changed files with 8 additions and 1 deletions

View file

@ -61,7 +61,10 @@ fi
function blob_fixup() {
case "${1}" in
vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy)
echo 'madvise: 1' >> ${2}
echo 'madvise: 1' >> "${2}"
;;
vendor/lib/libwvhidl.so)
"${PATCHELF}" --replace-needed "libcrypto.so" "libcrypto-v33.so" "${2}"
;;
esac
}

View file

@ -197,6 +197,10 @@ PRODUCT_PACKAGES += \
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey
# CBS_init
PRODUCT_PACKAGES += \
libcrypto-v33
# Fastbootd
PRODUCT_PACKAGES += \
fastbootd