beyondx: Patch audio HAL to load audioparams shim
Change-Id: I2e3647b0dee6b6899dd2d73abb511c3d45a96bdf
diff --git a/extract-files.sh b/extract-files.sh
index 709c974..db9778d 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -8,6 +8,10 @@
function blob_fixup() {
case "${1}" in
+ vendor/lib/hw/audio.primary.exynos9820.so)
+ "${PATCHELF}" --add-needed libshim_audioparams.so "${2}"
+ sed -i 's/str_parms_get_str/str_parms_get_mod/g' "${2}"
+ ;;
vendor/lib64/libexynoscamera3.so)
xxd -p "${2}" | sed "s/8b022036/1f2003d5/g" | xxd -r -p > "${2}".patched
mv "${2}".patched "${2}"