Skip to content

Commit

Permalink
breeze: Patchelf keystore.itrusty.so to load VNDK 28 of libkeymaster_…
Browse files Browse the repository at this point in the history
…messages.so

* E: Could not load /vendor/lib64/hw/keystore.itrusty.so from default namespace: dlopen failed: cannot locate symbol "_ZN9keymaster19GenerateKeyResponseD1Ev" referenced by "/vendor/lib64/hw/keystore.itrusty.so"....

Signed-off-by: Hadenix <vsegda_online_007@bk.ru>
  • Loading branch information
Hadenix committed Oct 9, 2023
1 parent 9d2a20a commit 8065130
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ PRODUCT_COPY_FILES += \
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libmedia_helper.so:$(TARGET_COPY_OUT_VENDOR)/lib/libmedia_helper-v28.so \
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libxml2.so:$(TARGET_COPY_OUT_VENDOR)/lib/libxml2-v28.so \
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libui.so:$(TARGET_COPY_OUT_VENDOR)/lib/libui-v28.so \
prebuilts/vndk/v28/arm64/arch-arm64-armv8-a/shared/vndk-core/libgatekeeper.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libgatekeeper-v28.so
prebuilts/vndk/v28/arm64/arch-arm64-armv8-a/shared/vndk-core/libgatekeeper.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libgatekeeper-v28.so \
prebuilts/vndk/v28/arm64/arch-arm64-armv8-a/shared/vndk-core/libkeymaster_messages.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libkeymaster_messages-v28.so

PRODUCT_COPY_FILES += \
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-sp/libcompiler_rt.so:$(TARGET_COPY_OUT_VENDOR)/lib/libcompiler_rt.so \
Expand Down
3 changes: 3 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ function blob_fixup() {
vendor/lib64/hw/gatekeeper.itrusty.so)
"${PATCHELF}" --replace-needed "libgatekeeper.so" "libgatekeeper-v28.so" "${2}"
;;
vendor/lib64/hw/keystore.itrusty.so)
"${PATCHELF}" --replace-needed "libkeymaster_messages.so" "libkeymaster_messages-v28.so" "${2}"
;;
vendor/lib64/libmtk-ril.so)
sed -i 's|AT+EAIC=2|AT+EAIC=3|g' "${2}"
;;
Expand Down

0 comments on commit 8065130

Please sign in to comment.