refactor: move from copy patched app again to install patched app

This commit is contained in:
Cuynu 2025-06-27 23:38:46 +07:00
commit 677b35f95c
2 changed files with 10 additions and 5 deletions

View file

@ -77,7 +77,7 @@ echo -------------------------------------------------------------
# Main functions
PS3='Please select options to continue : '
select opt in 'Pull latest commit' 'Unpack APK' 'Convert apks to apk' 'Repack APK' 'Copy patched app again' 'MBShield Check' 'Patch App' 'Extract assets [ROOT]' 'Launch MBCPApp/MBBank' 'Force close MBCPApp/MBBank' 'Clear MBCPApp/MBBank app data' 'Clean patched app' 'Download tools' 'Install platform-tools' 'Exit'
select opt in 'Pull latest commit' 'Unpack APK' 'Convert apks to apk' 'Repack APK' 'Install patched app' 'MBShield Check' 'Patch App' 'Extract assets [ROOT]' 'Launch MBCPApp/MBBank' 'Force close MBCPApp/MBBank' 'Clear MBCPApp/MBBank app data' 'Clean patched app' 'Download tools' 'Install platform-tools' 'Exit'
do
if [ "$opt" == 'Download tools' ]; then
echo "Downloading apktool_2.11.1.jar..."
@ -310,11 +310,15 @@ done
rm -rf mbapk/mbapk_unpacked
echo "Cleared !"
elif [ "$opt" == 'Copy patched app again' ]; then
if [ -f ~/mbbpatch/MBCPApp/mbcpapp_apk/MBCP_Flutter.zip ]
elif [ "$opt" == 'Install patched app' ]; then
if [ -f ~/mbbpatch/MBCPApp/mbcpapp_apk/MBCP_Flutter_SelfPatched.apk ]
then
adb push mbcpapp_apk/MBCP_Flutter.zip /sdcard
adb push mbsig/mbsig.apk /sdcard
echo "MBCP Helper / CorePatch must be installed with disable digest verify on !!!"
echo "You must have connected Android device with USB debugging turned on in order to install !!!"
adb kill-server
adb start-server
adb install 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk'
adb shell am start -n com.mbmobile/io.flutter.plugins.MainActivity
else
echo "Repacked app not found! Did you repacked apk?"
fi

View file

@ -12,6 +12,7 @@ Lightweight "open source" tool for patching MB Bank Flutter (Android) app for ro
- Licensed as MIT License : [View license.](https://gitlab.com/cuynu/mbbpatch/-/blob/mbflutter/LICENSE)
## Introduction
- This project was made to remove or limit annoying features & root detection & accessibility detection that implemented by the development team of "MB Bank" Android app with additional feature such as custom themes. It's not PoC project.
- [MBCP (MBBank CorePatch)](https://t.me/mbbpatch) are closed source before, and many people don't like it cuz worry about security & privacy issues.
- In order to support community and make MBCP open source, We spend days to rewritten whole `MBCPApp` patches in Bash and open it so you can patch it yourself on (Bare metal, not WSL) Linux environment (where we used to patch `MBCP`)