troika: remove libhidltransport/libhwbinder dependencies from proprietary files
authorJan Altensen <info@stricted.net>
Thu, 15 Oct 2020 17:11:06 +0000 (19:11 +0200)
committerJan Altensen <info@stricted.net>
Tue, 22 Dec 2020 16:30:11 +0000 (17:30 +0100)
Change-Id: I8dd7aab2ce7a09d5ba605a2ce89f1de51cef16a3

extract-files.sh

index 1a8810df08cbcd284e4c51be5817225c7b168061..cc6a91bc47e74f577aef532a1cf2ad75bb2ad177 100755 (executable)
@@ -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"