feat: preserve apk signature scheme v2/v3 after repacking apk

This commit is contained in:
Cuynu 2025-06-23 18:09:29 +07:00
commit fb771ba368
7 changed files with 17 additions and 15 deletions

View file

@ -144,19 +144,19 @@ fi
echo "Repacking APK..." echo "Repacking APK..."
touch mbcpinfo.txt 'mbapk/mbapk_unpacked/assets' 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' 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 java -jar tools/apktool_2.11.1.jar b mbapk/mbapk_unpacked -o mbcpapp_apk/MBCP_Flutter_TMP.apk
echo App repacked to [mbcpapp_apk/MBCP_Flutter.zip] !!! echo "Processing APK signature scheme v2/v3..."
echo ------------------------------------------ rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml'
echo ------------------------------------------ java -jar tools/APKEditor-1.4.3.jar d -i 'mbcpapp_apk/MBCP_Flutter_TMP.apk'
echo You MUST use MT Manager on Android, and copy ALL FILE and FOLDERS on [MBCP_Flutter.zip] to [mbsig.apk] cp -r 'mbsig/signatures' 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml/'
echo So patched MBBank [MBCPApp] can pass MBShield signature check [if have] and works. java -jar tools/APKEditor-1.4.3.jar b -i 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml'
echo "!!! MT Manager are required because Apktool can't handle and keep APK signature scheme v2 and v3 !!!" mv 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml_out.apk' 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk'
echo ----------------------------------------------------- rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml'
echo ----------------------------------------------------- rm MBCP_Flutter_TMP.apk
echo Both file will be copied to [/sdcard] !!! echo "Completed! Repacked APK are saved as [mbcpapp_apk/MBCP_Flutter_SelfPatched.apk] !!!"
adb push mbcpapp_apk/MBCP_Flutter.zip /sdcard echo "Install and trying to open it when ಠ‿ಠ"
adb push mbsig/mbsig.apk /sdcard echo "If you are facing issues, report it on Telegram [@mbbpatch] or GitLab : mbbpatch !!"
echo "In case if you want to copy again, use [Copy patched app again function]."
else else
echo "[mbapk_unpacked] folder not found ! Please unpack APK first !" echo "[mbapk_unpacked] folder not found ! Please unpack APK first !"
fi fi

View file

@ -1,5 +1,7 @@
# Notice # 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. `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.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.