From 75ec8a7bab12f58e48a090501b7c2d98dff099fe Mon Sep 17 00:00:00 2001 From: fukiame Date: Wed, 17 Sep 2025 10:27:31 +0700 Subject: [PATCH] patches: bypass_checksum: small stuff - use `mkdir -p` to exit peacefully if dir already exist, also move it down after confirm() - dont repeatedly download apksignaturekiller Signed-off-by: fukiame --- MBCPApp/patches/bypass_checksum.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/MBCPApp/patches/bypass_checksum.sh b/MBCPApp/patches/bypass_checksum.sh index e4cff3f..54a5de1 100644 --- a/MBCPApp/patches/bypass_checksum.sh +++ b/MBCPApp/patches/bypass_checksum.sh @@ -5,13 +5,17 @@ # shellcheck disable=SC1091 . "$DIRPATH"/common.sh -mkdir tools/bypass warn "Source code for [app-debug.apk] are on [https://git.disroot.org/cuynu/ApkSignatureKillerEx]" warn "Ensure that you applied all patches you want, and then apply this as the last one!" confirm "Are you sure you want to apply this patch?" || exit 69 -info "Downloading pre-compiled ApkSignatureKillerEx..." -wget -q --show-progress -O 'tools/bypass/app-debug.apk' 'https://git.disroot.org/cuynu/ApkSignatureKillerEx/releases/download/1.0/app-debug.apk' +mkdir -p tools/bypass + +if ! [ -f 'tools/bypass/app-debug.apk' ] ; then + info "Downloading pre-compiled ApkSignatureKillerEx..." + wget -q --show-progress -O 'tools/bypass/app-debug.apk' 'https://git.disroot.org/cuynu/ApkSignatureKillerEx/releases/download/1.0/app-debug.apk' +fi + info "Extracting [app-debug.apk]..." unzip -o 'tools/bypass/app-debug.apk' -d 'tools/bypass' mv 'tools/bypass/lib/arm64-v8a/libSignatureKiller.so' 'tools/bypass/lib/arm64-v8a/libmodft3.so'