diff --git a/MBCPApp/mbcpapp.sh b/MBCPApp/mbcpapp.sh index d318856..d73ab68 100755 --- a/MBCPApp/mbcpapp.sh +++ b/MBCPApp/mbcpapp.sh @@ -144,19 +144,19 @@ fi echo "Repacking APK..." touch mbcpinfo.txt 'mbapk/mbapk_unpacked/assets' echo "This app are patched by MBCPApp Patcher on $(uname -s -r) with commit :" $(git rev-parse --short HEAD) at $(date). "That's all xD" > 'mbapk/mbapk_unpacked/assets/mbcpinfo.txt' - java -jar tools/apktool_2.11.1.jar b mbapk/mbapk_unpacked -o mbcpapp_apk/MBCP_Flutter.zip - echo App repacked to [mbcpapp_apk/MBCP_Flutter.zip] !!! - echo ------------------------------------------ - echo ------------------------------------------ - echo You MUST use MT Manager on Android, and copy ALL FILE and FOLDERS on [MBCP_Flutter.zip] to [mbsig.apk] - echo So patched MBBank [MBCPApp] can pass MBShield signature check [if have] and works. - echo "!!! MT Manager are required because Apktool can't handle and keep APK signature scheme v2 and v3 !!!" - echo ----------------------------------------------------- - echo ----------------------------------------------------- - echo Both file will be copied to [/sdcard] !!! - adb push mbcpapp_apk/MBCP_Flutter.zip /sdcard - adb push mbsig/mbsig.apk /sdcard - echo "In case if you want to copy again, use [Copy patched app again function]." + java -jar tools/apktool_2.11.1.jar b mbapk/mbapk_unpacked -o mbcpapp_apk/MBCP_Flutter_TMP.apk + echo "Processing APK signature scheme v2/v3..." + rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml' + java -jar tools/APKEditor-1.4.3.jar d -i 'mbcpapp_apk/MBCP_Flutter_TMP.apk' + cp -r 'mbsig/signatures' 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml/' + java -jar tools/APKEditor-1.4.3.jar b -i 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml' + mv 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml_out.apk' 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk' + rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml' + rm MBCP_Flutter_TMP.apk + echo "Completed! Repacked APK are saved as [mbcpapp_apk/MBCP_Flutter_SelfPatched.apk] !!!" + echo "Install and trying to open it when ಠ‿ಠ" + echo "If you are facing issues, report it on Telegram [@mbbpatch] or GitLab : mbbpatch !!" + else echo "[mbapk_unpacked] folder not found ! Please unpack APK first !" fi diff --git a/MBCPApp/mbsig/README.md b/MBCPApp/mbsig/README.md index 0ead9f9..1c5ce28 100644 --- a/MBCPApp/mbsig/README.md +++ b/MBCPApp/mbsig/README.md @@ -1,5 +1,7 @@ # Notice -`mbsig.apk` and `mblitesig.apk` are only contain the APK signature scheme of original MB Bank / MB Lite app, which is used after repacking APK to make patched app works. it's NOT closed-source part. +`mbsig.apk` and `mblitesig.apk` are only contain the APK signature scheme of original MB Bank / MB Lite app, which is used after repacking APK to make patched app works. it's NOT closed-source parts. -- The closed source part is whole original MB Bank app and MT Manager (which used to preserve APK signature scheme V2/V3), while MBCPApp Patcher which patches original MB Bank open source. \ No newline at end of file +`signature` folder contains the APK signature scheme of original MB Bank extracted from APKEditor, likes `mbsig.apk` but more easily cuz don't need MT Manager anymore, it's will be used during repacking APK process to make patched app works. it's NOT closed-soruce parts. + +- The closed source part is whole original MB Bank app and MT Manager (which used to preserve APK signature scheme V2/V3), while MBCPApp Patcher which patches original MB Bank open source. diff --git a/MBCPApp/mbsig/signatures/0_V2.signature.info.bin b/MBCPApp/mbsig/signatures/0_V2.signature.info.bin new file mode 100644 index 0000000..b833a7b Binary files /dev/null and b/MBCPApp/mbsig/signatures/0_V2.signature.info.bin differ diff --git a/MBCPApp/mbsig/signatures/1_V3.signature.info.bin b/MBCPApp/mbsig/signatures/1_V3.signature.info.bin new file mode 100644 index 0000000..f4ed5cd Binary files /dev/null and b/MBCPApp/mbsig/signatures/1_V3.signature.info.bin differ diff --git a/MBCPApp/mbsig/signatures/2_STAMP_V2.signature.info.bin b/MBCPApp/mbsig/signatures/2_STAMP_V2.signature.info.bin new file mode 100644 index 0000000..4144261 Binary files /dev/null and b/MBCPApp/mbsig/signatures/2_STAMP_V2.signature.info.bin differ diff --git a/MBCPApp/mbsig/signatures/3_0x2146444e.signature.info.bin b/MBCPApp/mbsig/signatures/3_0x2146444e.signature.info.bin new file mode 100644 index 0000000..4035844 Binary files /dev/null and b/MBCPApp/mbsig/signatures/3_0x2146444e.signature.info.bin differ diff --git a/MBCPApp/mbsig/signatures/4_PADDING.signature.info.bin b/MBCPApp/mbsig/signatures/4_PADDING.signature.info.bin new file mode 100644 index 0000000..68e2f05 Binary files /dev/null and b/MBCPApp/mbsig/signatures/4_PADDING.signature.info.bin differ