Skip to content

Commit

Permalink
begonia: Make shim for libem_support_jni.so
Browse files Browse the repository at this point in the history
* dlopen failed: cannot locate symbol "_ZN7android21SurfaceComposerClient23getInternalDisplayTokenEv" referenced by "/system/lib64/libem_support_jni.so"...

Signed-off-by: Saikrishna1504 <[email protected]>
  • Loading branch information
Saikrishna1504 committed Feb 9, 2024
1 parent 8525e87 commit 85f95f1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,9 @@ PRODUCT_PACKAGES += \
PresencePolling \
RcsService

# Engineering mode
PRODUCT_PACKAGES += \
libjni_shim

# Inherit vendor
$(call inherit-product, vendor/redmi/begonia/begonia-vendor.mk)
3 changes: 3 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ function blob_fixup {
vendor/bin/hw/[email protected])
"${PATCHELF}" --add-needed "libshim_beanpod.so" "${2}"
;;
lib64/libem_support_jni.so)
"${PATCHELF}" --add-needed "libjni_shim.so" "${2}"
;;
esac
}

Expand Down
4 changes: 4 additions & 0 deletions libshims/engineering_mode/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cc_library_shared {
name: "libjni_shim",
srcs: ["libjni_shim.c"]
}
1 change: 1 addition & 0 deletions libshims/engineering_mode/libjni_shim.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
void _ZN7android21SurfaceComposerClient23getInternalDisplayTokenEv() {}

0 comments on commit 85f95f1

Please sign in to comment.