From eeac8a83d6248dc8b81042b9763c24276d717055 Mon Sep 17 00:00:00 2001 From: Jan Altensen Date: Thu, 15 Oct 2020 19:11:06 +0200 Subject: [PATCH] troika: 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 1a8810d..cc6a91b 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