otter: Shim WFD with libgui_shim/libinput_shim
Change-Id: I42bf06bc6b19942303031ef0147dafa6df127fe5
diff --git a/extract-files.sh b/extract-files.sh
index d2f491a..9a85469 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -59,6 +59,10 @@
function blob_fixup() {
case "${1}" in
+ system_ext/lib/libwfdmmsrc_system.so)
+ [ "$2" = "" ] && return 0
+ grep -q "libgui_shim.so" "${2}" || "${PATCHELF}" --add-needed "libgui_shim.so" "${2}"
+ ;;
system_ext/lib/libwfdservice.so)
[ "$2" = "" ] && return 0
"${PATCHELF}" --replace-needed "android.media.audio.common.types-V2-cpp.so" "android.media.audio.common.types-V3-cpp.so" "${2}"
@@ -66,6 +70,7 @@
system_ext/lib64/libwfdnative.so)
[ "$2" = "" ] && return 0
sed -i "s/android.hidl.base@1.0.so/libhidlbase.so\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00/" "${2}"
+ grep -q "libinput_shim.so" "${2}" || "${PATCHELF}" --add-needed "libinput_shim.so" "${2}"
;;
vendor/lib64/hw/fingerprint.lahaina.so)
[ "$2" = "" ] && return 0