sm7325-common: Shim WFD with libgui_shim/libinput_shim

Change-Id: I42bf06bc6b19942303031ef0147dafa6df127fe5
This commit is contained in:
LuK1337 2024-10-12 17:42:02 +02:00 committed by Nolen Johnson
parent 6877ce4086
commit 986ed29e19
2 changed files with 7 additions and 0 deletions

View File

@ -528,6 +528,8 @@ PRODUCT_VENDOR_MOVE_ENABLED := true
# WiFi Display # WiFi Display
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
libavservices_minijail \ libavservices_minijail \
libgui_shim \
libinput_shim \
libnl \ libnl \
libpng.vendor \ libpng.vendor \
libwfdaac_vendor libwfdaac_vendor

View File

@ -65,9 +65,14 @@ fi
function blob_fixup() { function blob_fixup() {
case "${1}" in 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/lib64/libwfdnative.so) system_ext/lib64/libwfdnative.so)
[ "$2" = "" ] && return 0 [ "$2" = "" ] && return 0
"${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}" "${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}"
grep -q "libinput_shim.so" "${2}" || "${PATCHELF}" --add-needed "libinput_shim.so" "${2}"
;; ;;
system_ext/etc/permissions/moto-telephony.xml) system_ext/etc/permissions/moto-telephony.xml)
[ "$2" = "" ] && return 0 [ "$2" = "" ] && return 0