From 2d5def34a02b1e3615273894c48dd3fe4edf0052 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Thu, 15 Oct 2020 19:11:06 +0200 Subject: [PATCH] kane: remove libhidltransport/libhwbinder dependencies from proprietary files Change-Id: I8dd7aab2ce7a09d5ba605a2ce89f1de51cef16a3 --- extract-files.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/extract-files.sh b/extract-files.sh index 5c03380..f67d5ff 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -65,4 +65,15 @@ setup_vendor "${DEVICE}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VENDOR}" extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \ "${KANG}" --section "${SECTION}" +# Fix proprietary blobs +BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary + +# Remove libhidltransport dependency +patchelf --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib/libril_sitril.so +patchelf --remove-needed libhidltransport.so $BLOB_ROOT/vendor/lib64/libril_sitril.so + +# Remove libhwbinder dependency +patchelf --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib/libril_sitril.so +patchelf --remove-needed libhwbinder.so $BLOB_ROOT/vendor/lib64/libril_sitril.so + "${MY_DIR}/setup-makefiles.sh" -- 2.20.1