mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
rosemary: Shim missing libshowlogo symbols
Change-Id: I72dbe1012455a410ad01ceeb0cb9db53ac8f69f5
This commit is contained in:
committed by
Matsvei Niaverau
parent
6ea74b4999
commit
cb797b3eb4
@@ -98,6 +98,9 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_PACKAGES += \
|
||||
libsuspend
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
libshim_showlogo
|
||||
|
||||
# Display
|
||||
TARGET_SCREEN_DENSITY := 440
|
||||
TARGET_SCREEN_HEIGHT := 2400
|
||||
|
||||
@@ -64,6 +64,9 @@ function blob_fixup {
|
||||
vendor/bin/hw/android.hardware.keymaster@4.0-service.beanpod)
|
||||
"${PATCHELF}" --add-needed "libshim_beanpod.so" "${2}"
|
||||
;;
|
||||
lib/libshowlogo.so)
|
||||
"${PATCHELF}" --add-needed "libshim_showlogo.so" "${2}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
||||
@@ -28,3 +28,12 @@ cc_library_shared {
|
||||
],
|
||||
include_dirs: [ "system/keymaster/include" ],
|
||||
}
|
||||
|
||||
cc_library_shared {
|
||||
name: "libshim_showlogo",
|
||||
srcs: ["libshim_showlogo.cpp"],
|
||||
shared_libs: [
|
||||
"libgui",
|
||||
"libutils",
|
||||
],
|
||||
}
|
||||
|
||||
19
libshims/libshim_showlogo.cpp
Normal file
19
libshims/libshim_showlogo.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <gui/SurfaceComposerClient.h>
|
||||
|
||||
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<IBinder>& 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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user