diff --git a/device.mk b/device.mk index 4010502f40dcc83a4e8344555cf979755bd0508c..8b9b883c258d5b4bd817efb0aa0aa063e50dc7e9 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 4a3a6853bed563b825dfebaa5a7b640b3c0e2b43..abf89e3cd6dd26b4a6587ac0b542f145e9f1edcb 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 0000000000000000000000000000000000000000..94526917802ac60ed09822fcef9e716e0d6453c9 --- /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 0000000000000000000000000000000000000000..ee5d641f9e81115653c1c8e60a4a1879256ae33b --- /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(); + } + +}