chore: patcher(mbcpapp.sh): rename mbshield to zshield

mbshield does not exist, MB does not have any such shield, they used zShield from Zimperium since v6.4.22, and rename the branding from zShield to [bank name + shield]

with new MB v6.5.7 update, there is a major changes to how zShield work, they randomized the name, not [mbshield] anymore

so I used regex* to look for it, more effective.

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2026-06-28 15:27:23 +07:00
commit ac845ff247

View file

@ -51,11 +51,11 @@ COMMIT="$(git rev-parse --short HEAD)"
BRANCH="$(git rev-parse --abbrev-ref HEAD)" BRANCH="$(git rev-parse --abbrev-ref HEAD)"
clear clear
mbshield_found='MBShield found on [mbapk_unpacked/assets/mbshield.szip] !!! zshield_found='zShield found on [mbapk_unpacked/assets/mbshield.szip] !!!
Patching operation is limited due to MBShield :( Patching operation is limited due to zShield :(
You need to extract assets from Android device for some patching operation to works properly !!!' You need to extract assets from Android device for some patching operation to works properly !!!'
mbshield_not_found='MBShield NOT found on [mbapk_unpacked/assets/] zshield_not_found='zShield NOT found on [mbapk_unpacked/assets/]
Patching operation are all not limited at all ! Patching operation are all not limited at all !
Asset extraction are not needed :)' Asset extraction are not needed :)'
@ -262,14 +262,14 @@ successunpack() {
fi fi
} }
check_mbshield() { check_zshield() {
is_unpacked || return 1 is_unpacked || return 1
if [ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/mbshield.szip ] if [ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/*.szip ]
then then
info "$mbshield_found" info "$zshield_found"
iszdefend iszdefend
else else
info "$mbshield_not_found" info "$zshield_not_found"
fi fi
} }
@ -312,7 +312,7 @@ echo App status : $(successunpack)
echo ------------------------------------------------------------- echo -------------------------------------------------------------
# Main functions # Main functions
PS3='Please select options to continue : ' PS3='Please select options to continue : '
select opt in 'Pull latest commit' 'Unpack APK' 'Convert apks to apk' 'Repack APK' 'Install patched app' 'MBShield Check' 'Patch App' 'Legacy patches' 'Extract assets [ROOT]' 'Launch MBCPApp/MBBank' 'Force close MBCPApp/MBBank' 'Clear MBCPApp/MBBank app data' 'Clean patched app' 'Download/update tools' 'Restart script' 'Exit' select opt in 'Pull latest commit' 'Unpack APK' 'Convert apks to apk' 'Repack APK' 'Install patched app' 'zShield Check' 'Patch App' 'Legacy patches' 'Extract assets [ROOT]' 'Launch MBCPApp/MBBank' 'Force close MBCPApp/MBBank' 'Clear MBCPApp/MBBank app data' 'Clean patched app' 'Download/update tools' 'Restart script' 'Exit'
do do
case "$opt" in case "$opt" in
'Download/update tools' ) download_tools ;; 'Download/update tools' ) download_tools ;;
@ -320,7 +320,7 @@ do
'Repack APK' ) repack_mbcp ;; 'Repack APK' ) repack_mbcp ;;
'Patch App' ) run_patcher ;; 'Patch App' ) run_patcher ;;
'Legacy patches' ) run_legacy_patcher ;; 'Legacy patches' ) run_legacy_patcher ;;
'MBShield Check' ) check_mbshield ;; 'zShield Check' ) check_zshield ;;
'Convert apks to apk' ) convert_apks ;; 'Convert apks to apk' ) convert_apks ;;
'Extract assets [ROOT]' ) 'Extract assets [ROOT]' )
is_unpacked || exit 1 is_unpacked || exit 1
@ -341,9 +341,9 @@ do
elif [ "$opt" == 'Extract assets' ]; then elif [ "$opt" == 'Extract assets' ]; then
if [ -d "$DIRPATH"/mbapk/mbapk_unpacked/ ] if [ -d "$DIRPATH"/mbapk/mbapk_unpacked/ ]
then then
if [ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/mbshield.szip ] if [ -f "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/*.szip ]
then then
info "MBShield found ! Continuing !!!" info "zShield found ! Continuing !!!"
warn 'You MUST grant root access to [com.android.shell] in order to extract assets !' warn 'You MUST grant root access to [com.android.shell] in order to extract assets !'
info 'Trying to extract assets...' info 'Trying to extract assets...'
adb shell am force-stop com.mbmobile adb shell am force-stop com.mbmobile