gta4xl: rename stock libril to libril-samsung

* To prevent conflicts with AOSP libril

Change-Id: Ica28bb75a041beb6956d23040cfda825e0a9c137
diff --git a/extract-files.sh b/extract-files.sh
index 1b14409..c448efd 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -6,6 +6,14 @@
 # SPDX-License-Identifier: Apache-2.0
 #
 
+function blob_fixup() {
+    case "${1}" in
+        vendor/bin/hw/rild|vendor/lib*/libsec-ril.so)
+            "${PATCHELF}" --replace-needed libril.so libril-samsung.so "${2}"
+            ;;
+    esac
+}
+
 # If we're being sourced by the common script that we called,
 # stop right here. No need to go down the rabbit hole.
 if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
diff --git a/proprietary-files.txt b/proprietary-files.txt
index 0d28ab5..179a0d0 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -40,7 +40,7 @@
 vendor/etc/plmn_delta_usagsm.bin
 vendor/etc/plmn_se13.bin
 vendor/lib/libengmode_client.so
-vendor/lib/libril.so
+vendor/lib/libril.so:vendor/lib/libril-samsung.so
 vendor/lib/libsec-ril.so
 vendor/lib/libsemnativecarrierfeature.so
 vendor/lib/vendor.samsung.hardware.radio.bridge@2.0.so
@@ -48,7 +48,7 @@
 vendor/lib/vendor.samsung.hardware.radio@2.0.so
 vendor/lib/vendor.samsung.hardware.radio@2.1.so
 vendor/lib64/libengmode_client.so
-vendor/lib64/libril.so
+vendor/lib64/libril.so:vendor/lib64/libril-samsung.so
 vendor/lib64/libsec-ril.so
 vendor/lib64/libsemnativecarrierfeature.so
 vendor/lib64/libvkmanager_vendor.so