dre: Shim widevine with libcrypto_shim

The following change
e202e51cb0
removed symbols that our libs require.

Change-Id: I1325c34ecec3d339dd68c665010ecb36fa2e6a29
This commit is contained in:
Michael Bestas 2024-09-11 00:04:13 +03:00 committed by Albert Tang
parent 0c8d606929
commit fa9d414d86
2 changed files with 6 additions and 1 deletions

View file

@ -208,7 +208,8 @@ PRODUCT_PACKAGES += \
# DRM
PRODUCT_PACKAGES += \
android.hardware.drm@1.3.vendor \
android.hardware.drm-service.clearkey
android.hardware.drm-service.clearkey \
libcrypto_shim
# fastbootd
PRODUCT_PACKAGES += \

View file

@ -59,6 +59,10 @@ fi
function blob_fixup() {
case "${1}" in
odm/lib64/libwvhidl.so|odm/lib64/mediadrm/libwvdrmengine.so)
[ "$2" = "" ] && return 0
grep -q "libcrypto_shim.so" "${2}" || "${PATCHELF}" --add-needed "libcrypto_shim.so" "${2}"
;;
product/etc/sysconfig/com.android.hotwordenrollment.common.util.xml)
[ "$2" = "" ] && return 0
sed -i "s/\/my_product/\/product/" "${2}"