Merge branch 'mbflutter' into 'mbflutter'

impr logging and fix some shellcheck warn?

See merge request mbcp/mbbpatch!2
This commit is contained in:
Cuynu 2025-07-26 21:17:33 +07:00
commit b945f25e96
2 changed files with 10 additions and 10 deletions

View file

@ -27,7 +27,7 @@ if [ "$opt" == 'Bypass 1200 error [v6.4.45]' ]; then
## MB Forced update to 658, it must be spoofed!
echo "Patching [apktool.yml]..."
sed -i 's|658|700|g' ~/mbbpatch/MBCPApp/mbapk/mbapk_unpacked/apktool.yml
echo "This patch are applied by MBCPApp Patcher on $(uname -s -r) with commit :" $(git rev-parse --short HEAD) at $(date). > 'mbapk/mbapk_unpacked/assets/mbcp_info/bypass_1200_error.inf'
echo "This patch are applied by MBCPApp Patcher on $(uname -s -r) with commit :" $(git rev-parse --short HEAD) at $(git show -s --format=%cd HEAD). > 'mbapk/mbapk_unpacked/assets/mbcp_info/bypass_1200_error.inf'
# Placeholder patch, not yet implemented
@ -40,18 +40,18 @@ if [ "$opt" == 'Bypass 1200 error [v6.4.45]' ]; then
then
echo "INFO : MBShield found on unpacked APK ! Bypass signature checks won't be possible if MBShield is present on current unpacked APK !"
echo "INFO : Please use supported version !!!"
echo For React Native : MBBank/MB Lite v1.0 up to v6.3.11
echo For Flutter : MBBank v6.4.0 up to v6.4.21
echo Some specific version has no MBShield can also be used :
echo MBBank v6.4.24 [versionCode : 624]
echo MBBank v6.4.26 [versionCode : 626]
echo MBBank v6.4.45 [versionCode : 658]
echo "For React Native : MBBank/MB Lite v1.0 up to v6.3.11"
echo "For Flutter : MBBank v6.4.0 up to v6.4.21"
echo "Some specific version has no MBShield can also be used :"
echo "MBBank v6.4.24 [versionCode : 624]"
echo "MBBank v6.4.26 [versionCode : 626]"
echo "MBBank v6.4.45 [versionCode : 658]"
else
echo "Function not yet implemented due to issues with original repo, check back later !"
fi
else
echo APK are not unpacked ! Please unpack APK first !
echo "APK are not unpacked ! Please unpack APK first !"
fi
elif [ "$opt" == '[TEST] Remove v6.4.56 root detection' ]; then

View file

@ -318,11 +318,11 @@ do
adb start-server
adb install 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk'
echo "ATTENTION : Network traffic will be redirected to [medium.com] for 20 seconds !!!"
adb shell su -c iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443
adb shell su -c 'iptables -t nat -A OUTPUT -p tcp -d 0/0 -j DNAT --to-destination 162.159.153.4:443'
adb shell am start -n com.mbmobile/io.flutter.plugins.MainActivity
sleep 20
echo "Restoring network traffic"
adb shell su -c iptables -t nat -F OUTPUT
adb shell su -c 'iptables -t nat -F OUTPUT'
echo "Press [Try again] after got 1005/1007 error on MB, so it's can skip device not secure dialog !"
else
echo "[MBCP_Flutter_SelfPatched.apk] not found, cannot continue !"