From: Jan Altensen Date: Thu, 15 Oct 2020 17:11:06 +0000 (+0200) Subject: kane: remove libhidltransport/libhwbinder dependencies from proprietary files X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d5def34a02b1e3615273894c48dd3fe4edf0052;p=GitHub%2FLineageOS%2Fandroid_device_motorola_kane.git kane: remove libhidltransport/libhwbinder dependencies from proprietary files Change-Id: I8dd7aab2ce7a09d5ba605a2ce89f1de51cef16a3 --- 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"