j7elte: Add plmn binaries lineage-16.0
authorDario Trombello <dariotr@outlook.de>
Thu, 21 May 2020 22:44:54 +0000 (00:44 +0200)
committerDario Trombello <dariotr@outlook.de>
Thu, 18 Jun 2020 19:42:50 +0000 (21:42 +0200)
I ran the command strings on libsec-ril.so and found these files as dependencies.

extract-files.sh
proprietary-files.txt

index ec1bdb4dcab33b2e61b839f57d0e1266c36caa9d..b57f42bf6a22dd12212eb778f428390b8d99f495 100755 (executable)
@@ -69,5 +69,9 @@ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
 BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE"/proprietary
 patchelf --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril.so
 patchelf --replace-needed libprotobuf-cpp-full.so libprotobuf-cpp-fl26.so $BLOB_ROOT/lib/libsec-ril-dsds.so
+(perl -pi -e "s/\/system\/etc\/plmn_delta.bin/\/vendor\/etc\/plmn_delta.bin/g" $BLOB_ROOT/lib/libsec-ril.so)
+(perl -pi -e "s/\/system\/etc\/plmn_delta.bin/\/vendor\/etc\/plmn_delta.bin/g" $BLOB_ROOT/lib/libsec-ril-dsds.so)
+(perl -pi -e "s/\/system\/etc\/plmn_se13.bin/\/vendor\/etc\/plmn_se13.bin/g" $BLOB_ROOT/lib/libsec-ril.so)
+(perl -pi -e "s/\/system\/etc\/plmn_se13.bin/\/vendor\/etc\/plmn_se13.bin/g" $BLOB_ROOT/lib/libsec-ril-dsds.so)
 
 "${MY_DIR}/setup-makefiles.sh"
index c08f171f96eb424bf4b93c34e410224eed7c748e..3314e35898399279030eada8ba049e60b00a2eea 100644 (file)
@@ -37,6 +37,8 @@ vendor/firmware/setfile_3l2.bin
 vendor/firmware/setfile_5e3.bin
 
 # RIL
+etc/plmn_delta.bin:vendor/etc/plmn_delta.bin
+etc/plmn_se13.bin:vendor/etc/plmn_se13.bin
 lib/libsec-ril.so
 lib/libsec-ril-dsds.so