From 23125cda7e7ef0dfcf9ea0c67f2e02c8f97a8657 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sat, 26 Jul 2025 04:15:47 +0700 Subject: [PATCH] chore: patch.sh: "Remove new root detection": enforce version restriction Signed-off-by: Cuynu --- MBCPApp/patch.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MBCPApp/patch.sh b/MBCPApp/patch.sh index ca6e01e..2615a53 100755 --- a/MBCPApp/patch.sh +++ b/MBCPApp/patch.sh @@ -538,8 +538,7 @@ fi fi elif [ "$opt" == 'Remove new root detection' ]; then - if [ -d ~/mbbpatch/MBCPApp/mbapk/mbapk_unpacked ] - then + if [ $(get_mb_ver) -lt 59 ] ; then echo "Applying [Remove new root detection] patch..." echo 'Removing [libZDefend.so]...' rm -f 'mbapk/mbapk_unpacked/lib/arm64-v8a/libZDefend.so' @@ -576,9 +575,8 @@ fi manifest_remove 'android:authorities="com.mbmobile.inserted.thumbzilla.ireland' patch_finish "remove_new_root_detection" echo "Applied [Remove new root detection] patch !!!" - else - echo "[mbapk_unpacked] not found ! Please unpack APK first ! " + echo "WARN : This patch is only applicable for v6.4.58 and lower" fi elif [ "$opt" == 'Add modified resources' ]; then