chore: mbcpapp.sh: Repack: directly restore sig with one apkeditor invocation
massively speed up repacking, again on my Acer Aspire E1-471 with an i3-2328M and an HDD, repacking time under apkeditor part is cut short from 2+ minutes to 3 seconds Test: repack, app install successfully Tested-by: fukiame <fukiame@proton.me> Signed-off-by: fukiame <fukiame@proton.me>
This commit is contained in:
parent
4697030844
commit
86818ccaaf
1 changed files with 2 additions and 5 deletions
|
|
@ -140,11 +140,8 @@ repack_mbcp() {
|
|||
set -e
|
||||
java -jar tools/apktool.jar b mbapk/mbapk_unpacked -o mbcpapp_apk/MBCP_Flutter_TMP.apk -j"$(nproc)"
|
||||
info "Processing APK signature scheme v2/v3..."
|
||||
rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml'
|
||||
java -jar tools/apkeditor.jar d -i 'mbcpapp_apk/MBCP_Flutter_TMP.apk'
|
||||
cp -r 'mbsig/signatures' 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml/'
|
||||
java -jar tools/apkeditor.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'
|
||||
java -jar tools/apkeditor.jar b -t sig -i 'mbcpapp_apk/MBCP_Flutter_TMP.apk' -sig 'mbsig/signatures' -o 'mbcpapp_apk/MBCP_Flutter_sig.apk'
|
||||
mv 'mbcpapp_apk/MBCP_Flutter_sig.apk' 'mbcpapp_apk/MBCP_Flutter_SelfPatched.apk'
|
||||
rm -rf 'mbcpapp_apk/MBCP_Flutter_TMP_decompile_xml'
|
||||
rm 'mbcpapp_apk/MBCP_Flutter_TMP.apk'
|
||||
) && {
|
||||
|
|
|
|||
Loading…
Reference in a new issue