From 02e2c533a011222e5f09a44c8a90a026d7aed1b4 Mon Sep 17 00:00:00 2001 From: Joel Stein Date: Sat, 17 Sep 2022 22:33:39 +0100 Subject: [PATCH] GS290: Shim missing libshowlogo symbols Change-Id: I4d28bfaf1654e535c88631ff66d2d7b5990160a3 Signed-off-by: Jackeagle --- device.mk | 3 ++- extract-files.sh | 3 +++ libshims/Android.bp | 8 ++++++++ libshims/libshim_showlogo.cpp | 19 +++++++++++++++++++ 4 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 libshims/Android.bp create mode 100644 libshims/libshim_showlogo.cpp diff --git a/device.mk b/device.mk index 4010502..8b9b883 100644 --- a/device.mk +++ b/device.mk @@ -79,7 +79,8 @@ PRODUCT_PACKAGES += \ # Charger PRODUCT_PACKAGES += \ - libsuspend + libsuspend \ + libshim_showlogo # Display PRODUCT_PACKAGES += \ diff --git a/extract-files.sh b/extract-files.sh index 4a3a685..abf89e3 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -48,6 +48,9 @@ function blob_fixup() { lib/libmtk_vt_service.so) "${PATCHELF}" --add-needed "libshim_vtservice.so" "${2}" ;; + lib/libshowlogo.so) + "${PATCHELF}" --add-needed "libshim_showlogo.so" "${2}" + ;; esac } diff --git a/libshims/Android.bp b/libshims/Android.bp new file mode 100644 index 0000000..9452691 --- /dev/null +++ b/libshims/Android.bp @@ -0,0 +1,8 @@ +cc_library_shared { + name: "libshim_showlogo", + srcs: ["libshim_showlogo.cpp"], + shared_libs: [ + "libgui", + "libutils", + ], +} diff --git a/libshims/libshim_showlogo.cpp b/libshims/libshim_showlogo.cpp new file mode 100644 index 0000000..ee5d641 --- /dev/null +++ b/libshims/libshim_showlogo.cpp @@ -0,0 +1,19 @@ +#include + +using namespace android; + +extern "C" { + +void _ZN7android21SurfaceComposerClient13createSurfaceERKNS_7String8EjjijRKNS_2spINS_7IBinderEEENS_13LayerMetadataEPj(const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, const sp& parentHandle, LayerMetadata metadata, uint32_t* outTransformHint); + +void _ZN7android21SurfaceComposerClient13createSurfaceERKNS_7String8EjjijPNS_14SurfaceControlENS_13LayerMetadataEPj(const String8& name, uint32_t w, uint32_t h, PixelFormat format, uint32_t flags, SurfaceControl* parent, LayerMetadata metadata, uint32_t* outTransformHint) { + _ZN7android21SurfaceComposerClient13createSurfaceERKNS_7String8EjjijRKNS_2spINS_7IBinderEEENS_13LayerMetadataEPj(name, w, h, format, flags, nullptr, metadata, nullptr); + } + +void _ZN7android14SurfaceControl10getSurfaceEv(void); + +void _ZNK7android14SurfaceControl10getSurfaceEv(void) { + _ZN7android14SurfaceControl10getSurfaceEv(); + } + +} -- GitLab