From 00af9f95a22c14ebcd7089637325984cfd90564a Mon Sep 17 00:00:00 2001 From: Cuynu Date: Wed, 17 Sep 2025 02:36:48 +0700 Subject: [PATCH] patches: hook up confirm() for more patches Signed-off-by: Cuynu --- MBCPApp/patches/disable_membership.sh | 3 +++ MBCPApp/patches/legacy_hide_vtap.sh | 2 ++ MBCPApp/patches/remove_app_from_launcher.sh | 3 +++ MBCPApp/patches/remove_custompfp.sh | 1 + MBCPApp/patches/remove_embee.sh | 2 ++ MBCPApp/patches/remove_mbstore.sh | 1 + MBCPApp/patches/remove_protection_shield.sh | 2 ++ 7 files changed, 14 insertions(+) diff --git a/MBCPApp/patches/disable_membership.sh b/MBCPApp/patches/disable_membership.sh index b391e6b..f9310ff 100644 --- a/MBCPApp/patches/disable_membership.sh +++ b/MBCPApp/patches/disable_membership.sh @@ -5,6 +5,9 @@ # shellcheck disable=SC1091 . "$DIRPATH"/common.sh +warn "This patch will disable the MB Membership function !" +confirm "Are you sure you want to apply this patch?" || exit 69 + warn "You won't be able to use any of Membership benefits if you already subscribed to !" sed_libapp 's|get-customer-subs|get-customer-apps|g' diff --git a/MBCPApp/patches/legacy_hide_vtap.sh b/MBCPApp/patches/legacy_hide_vtap.sh index c8e3722..79db56b 100644 --- a/MBCPApp/patches/legacy_hide_vtap.sh +++ b/MBCPApp/patches/legacy_hide_vtap.sh @@ -8,6 +8,8 @@ checkVtap . +confirm "Are you sure you want to apply this patch?" || exit 69 + # Adapt with v6.4.64+ warn "Use cases : Some devices that crashes with standard hide VTAP patch" warn "It is better to use the standard hide VTAP patch, so you don't have to hide anything" diff --git a/MBCPApp/patches/remove_app_from_launcher.sh b/MBCPApp/patches/remove_app_from_launcher.sh index dfda6b0..86c06ad 100644 --- a/MBCPApp/patches/remove_app_from_launcher.sh +++ b/MBCPApp/patches/remove_app_from_launcher.sh @@ -4,4 +4,7 @@ # MINVER: # shellcheck disable=SC1091 . "$DIRPATH"/common.sh + +confirm "Are you sure you want to apply this patch?" || exit 69 + sed -i 's|||g' "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml diff --git a/MBCPApp/patches/remove_custompfp.sh b/MBCPApp/patches/remove_custompfp.sh index 8a2a196..e8307e7 100644 --- a/MBCPApp/patches/remove_custompfp.sh +++ b/MBCPApp/patches/remove_custompfp.sh @@ -6,6 +6,7 @@ . "$DIRPATH"/common.sh warn "This will force the default app profile picture instead of the one you already set before on the MB server-side!" +confirm "Are you sure you want to apply this patch?" || exit 69 sed_libapp 's|getPhoto|nonPhoto|g' sed_libapp 's|savePhoto|nonePhoto|g' diff --git a/MBCPApp/patches/remove_embee.sh b/MBCPApp/patches/remove_embee.sh index eb27e53..6c85ca1 100644 --- a/MBCPApp/patches/remove_embee.sh +++ b/MBCPApp/patches/remove_embee.sh @@ -6,6 +6,8 @@ . "$DIRPATH"/common.sh warn "Remove eMBee also remove customer support and any other options on eMBee Helper !" +confirm "Are you sure you want to apply this patch?" || exit 69 + info "Removing eMBee Customer support function..." sed_libapp 's|group_button_support|itsnotworthittouseem|g' sed_libapp 's|Customer support| |g' diff --git a/MBCPApp/patches/remove_mbstore.sh b/MBCPApp/patches/remove_mbstore.sh index b415a36..84facff 100644 --- a/MBCPApp/patches/remove_mbstore.sh +++ b/MBCPApp/patches/remove_mbstore.sh @@ -7,6 +7,7 @@ warn "You won't be able to access MB Store Themes in the change theme section on the app !" info "Theme installation like specific theme modules that redirect to MB Store Themes will still work!" +confirm "Are you sure you want to apply this patch?" || exit 69 info "Removing MB Store Themes banner..." rm -f "mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/theme_bg_cuaHang.webp" diff --git a/MBCPApp/patches/remove_protection_shield.sh b/MBCPApp/patches/remove_protection_shield.sh index c294ca7..0352d08 100644 --- a/MBCPApp/patches/remove_protection_shield.sh +++ b/MBCPApp/patches/remove_protection_shield.sh @@ -5,6 +5,8 @@ # shellcheck disable=SC1091 . "$DIRPATH"/common.sh +confirm "Are you sure you want to apply this patch?" || exit 69 + sed_libapp 's|get-protective-cyber-risk|get_protective_cyber_none|g' sed_libapp 's|Activate for Protection|Protection are disabled|g' info "Removing resources..."