From aa470d6a7550047d6483068099fd8878591c4004 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Fri, 22 Aug 2025 15:15:36 +0700 Subject: [PATCH 1/4] feat: action.sh: customize.sh: add original app check and then redirect to mbcpinstall if users on original app Signed-off-by: Cuynu --- action.sh | 2 ++ customize.sh | 3 +++ 2 files changed, 5 insertions(+) diff --git a/action.sh b/action.sh index 31063e6..cb915f9 100755 --- a/action.sh +++ b/action.sh @@ -1,5 +1,7 @@ #!/system/bin/sh +for library in $(find /data/app -name libtoolChecker.so | grep com.mbmobile) ; do echo "Please install MBCP v6.4.60+ !" && am start -a android.intent.action.VIEW -d https://git.disroot.org/mbcp/info/wiki/mbcpinstall && exit 1 ; done + # Check if users trying to install this module under KernelSU/Next/RKSU/APatch [[ -f /data/adb/apd ]] && echo "APatch detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 [[ -f /data/adb/ksud ]] && echo "KernelSU/Next/RKSU detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 diff --git a/customize.sh b/customize.sh index 876a2c6..96c3751 100755 --- a/customize.sh +++ b/customize.sh @@ -1,6 +1,9 @@ #!/system/bin/sh # Delete old MBZDefend-Fix module +echo "Removing old MBZDefend-Fix module..." rm -rf /data/adb/modules/zdefend-fix +# Check if users running original unpatched app +for library in $(find /data/app -name libtoolChecker.so | grep com.mbmobile) ; do echo "Please install MBCP v6.4.60+ !" && am start -a android.intent.action.VIEW -d https://git.disroot.org/mbcp/info/wiki/mbcpinstall && exit 1 ; done # Check if users trying to install this module under KernelSU/Next/RKSU/APatch [[ -f /data/adb/apd ]] && echo "APatch detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 [[ -f /data/adb/ksud ]] && echo "KernelSU/Next/RKSU detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 From ebd255b585f81a0bffa5d84a28a1116e854a8105 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Fri, 22 Aug 2025 15:16:13 +0700 Subject: [PATCH 2/4] feat: module.prop: bump v1.3-mbcp Signed-off-by: Cuynu --- module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.prop b/module.prop index 2b74bb2..37bf418 100755 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=mbcp-fix name=MB-to-MBCP Fix -version=v1.2-mbcp -versionCode=12 +version=v1.3-mbcp +versionCode=13 author=cuynu description=Fixes device not secure issue after install MBCP from original MB with MBZDefend-Fix updateJson= From 00e67ad0f32cca37f7404faec58fac67d282ea18 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:34:48 +0700 Subject: [PATCH 3/4] feat: customize.sh: check if MB is installed or nope redirect to mbcpinstall if MB is not found :) Signed-off-by: Cuynu --- customize.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/customize.sh b/customize.sh index 96c3751..b910e28 100755 --- a/customize.sh +++ b/customize.sh @@ -1,12 +1,14 @@ #!/system/bin/sh -# Delete old MBZDefend-Fix module -echo "Removing old MBZDefend-Fix module..." -rm -rf /data/adb/modules/zdefend-fix -# Check if users running original unpatched app -for library in $(find /data/app -name libtoolChecker.so | grep com.mbmobile) ; do echo "Please install MBCP v6.4.60+ !" && am start -a android.intent.action.VIEW -d https://git.disroot.org/mbcp/info/wiki/mbcpinstall && exit 1 ; done -# Check if users trying to install this module under KernelSU/Next/RKSU/APatch -[[ -f /data/adb/apd ]] && echo "APatch detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 -[[ -f /data/adb/ksud ]] && echo "KernelSU/Next/RKSU detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 +# Check if MB is installed or nope +if [[ -d /data/data/com.mbmobile ]]; then + # Delete old MBZDefend-Fix module + echo "Removing old MBZDefend-Fix module..." + rm -rf /data/adb/modules/zdefend-fix + # Check if users running original unpatched app + for library in $(find /data/app -name libtoolChecker.so | grep com.mbmobile) ; do echo "Please install MBCP v6.4.60+ !" && am start -a android.intent.action.VIEW -d https://git.disroot.org/mbcp/info/wiki/mbcpinstall && exit 1 ; done + # Check if users trying to install this module under KernelSU/Next/RKSU/APatch + [[ -f /data/adb/apd ]] && echo "APatch detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 + [[ -f /data/adb/ksud ]] && echo "KernelSU/Next/RKSU detected!" && echo "Enabling provider..." && pm enable com.mbmobile/androidx.UnderlyingVcl && for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done && exit 0 # Magisk related code # Delete /data/magisk if it exists so MB doesnt failling when eKYC with error code EKYC3002-MS6998 for Magisk users @@ -30,3 +32,10 @@ pm enable com.mbmobile/androidx.UnderlyingVcl echo "Finding for MBCP app..." for library in $(find /data/app -name libweneedfreedom.so | grep com.mbmobile) ; do am start -n com.mbmobile/io.flutter.plugins.MainActivity ; done exit 0 + +else + echo "MB/MBCP not found! Please install it!" + am start -a android.intent.action.VIEW -d https://git.disroot.org/mbcp/info/wiki/mbcpinstall + exit 1 +fi + From 9df0cecfd5d81b8b8608a1c4b22073752f859176 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Tue, 26 Aug 2025 03:36:51 +0700 Subject: [PATCH 4/4] feat: module.prop: bump v1.4-mbcp Signed-off-by: Cuynu --- module.prop | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module.prop b/module.prop index 37bf418..2ab6d9b 100755 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=mbcp-fix name=MB-to-MBCP Fix -version=v1.3-mbcp -versionCode=13 +version=v1.4-mbcp +versionCode=14 author=cuynu description=Fixes device not secure issue after install MBCP from original MB with MBZDefend-Fix updateJson=