From 19377a394c0cd6e966b4b5d8a94e538a16b84fee Mon Sep 17 00:00:00 2001 From: fukiame Date: Sun, 14 Sep 2025 09:36:30 +0700 Subject: [PATCH] [HACK] [2/2] Revert "feat(func)!: common.sh: temporarily disable manifest_remove function" now its back to one line, though dirty and also needs an additional dependency ideally we should have some apkeditor flag to unpack apktool-like ones This reverts commit a89d47e280fa257b2499a82948902713e2486a30. Signed-off-by: fukiame --- MBCPApp/common.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/MBCPApp/common.sh b/MBCPApp/common.sh index 9855485..1f8f624 100644 --- a/MBCPApp/common.sh +++ b/MBCPApp/common.sh @@ -56,12 +56,11 @@ sed_libzdefend() { ) && info "[sed_libzdefend] [$target] -> [$replacement]" || warn "[sed_libzdefend] replacing [$target] failed !" } -## currently causing crashes after migration to apkeditor, waiting for fukiame to fix -## manifest_remove() { -## sed -i "/$1/d" "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml && \ -## info "[manifest_remove] removing $1" || \ -## warn "[manifest_remove] removing $1 failed" -##} +manifest_remove() { + sed -i "/$1/d" "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml && \ + info "[manifest_remove] removing $1" || \ + warn "[manifest_remove] removing $1 failed" +} get_mb_ver() { a="$(grep -m1 'android:versionName' "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml | tr ' ' '\n' | grep -m1 'android:versionName')"