diff --git a/action.sh b/action.sh index cb915f9..31063e6 100755 --- a/action.sh +++ b/action.sh @@ -1,7 +1,5 @@ #!/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 b910e28..876a2c6 100755 --- a/customize.sh +++ b/customize.sh @@ -1,14 +1,9 @@ #!/system/bin/sh -# 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 +# Delete old MBZDefend-Fix module +rm -rf /data/adb/modules/zdefend-fix +# 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 @@ -32,10 +27,3 @@ 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 - diff --git a/module.prop b/module.prop index 2ab6d9b..2b74bb2 100755 --- a/module.prop +++ b/module.prop @@ -1,7 +1,7 @@ id=mbcp-fix name=MB-to-MBCP Fix -version=v1.4-mbcp -versionCode=14 +version=v1.2-mbcp +versionCode=12 author=cuynu description=Fixes device not secure issue after install MBCP from original MB with MBZDefend-Fix updateJson=