feat: preserve apk signature scheme v2/v3 after repacking apk
This commit is contained in:
parent
b3121133af
commit
7cc8b27d09
7 changed files with 17 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
`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.
|
||||
|
|
|
|||
BIN
MBCPApp/mbsig/signatures/0_V2.signature.info.bin
Normal file
BIN
MBCPApp/mbsig/signatures/0_V2.signature.info.bin
Normal file
Binary file not shown.
BIN
MBCPApp/mbsig/signatures/1_V3.signature.info.bin
Normal file
BIN
MBCPApp/mbsig/signatures/1_V3.signature.info.bin
Normal file
Binary file not shown.
BIN
MBCPApp/mbsig/signatures/2_STAMP_V2.signature.info.bin
Normal file
BIN
MBCPApp/mbsig/signatures/2_STAMP_V2.signature.info.bin
Normal file
Binary file not shown.
BIN
MBCPApp/mbsig/signatures/3_0x2146444e.signature.info.bin
Normal file
BIN
MBCPApp/mbsig/signatures/3_0x2146444e.signature.info.bin
Normal file
Binary file not shown.
BIN
MBCPApp/mbsig/signatures/4_PADDING.signature.info.bin
Normal file
BIN
MBCPApp/mbsig/signatures/4_PADDING.signature.info.bin
Normal file
Binary file not shown.
Loading…
Reference in a new issue