Skip to content

Commit

Permalink
common: Patch libmemperfd to use libprotobuf-cpp-full-21.12
Browse files Browse the repository at this point in the history
Fixes:
E ANDR-PERF-GLUELAYER: ANDR-PERF-GLUELAYER: LoadPerfLib() 389: LoadPerfLib Failed to (dl)open libmemperfd.so dlopen failed: library "libprotobuf-cpp-lite-21.7.so" not found: needed by /vendor/lib64/libmemperfd.so in namespace (default)

Change-Id: I5c13e066fd6c123e8d631e8ae8afc3450b142fa8
Signed-off-by: Jyotiraditya Panda <[email protected]>
  • Loading branch information
imjyotiraditya committed Sep 22, 2024
1 parent 8d3d1b4 commit f90d8f3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions vendor/extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ if [ -z "${SRC}" ]; then
SRC="adb"
fi

function blob_fixup() {
case "${1}" in
vendor/lib64/libmemperfd.so)
"${PATCHELF}" --replace-needed "libprotobuf-cpp-lite-21.7.so" "libprotobuf-cpp-full-21.12.so" "${2}"
;;
esac
}

# Initialize the helper
if [ -f "${MY_DIR}/${COMPONENT}/${KERNEL_VERSION}/proprietary-files.txt" ] && [ ! -z ${KERNEL_VERSION} ]; then
setup_vendor "${COMPONENT}/${KERNEL_VERSION}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}" "${COMPONENT}" true
Expand Down

0 comments on commit f90d8f3

Please sign in to comment.