patches: hook up confirm() for more patches

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2025-09-17 02:36:48 +07:00
commit 00af9f95a2
7 changed files with 14 additions and 0 deletions

View file

@ -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'

View file

@ -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"

View file

@ -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|<category android:name="android.intent.category.LAUNCHER"/>||g' "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml

View file

@ -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'

View file

@ -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'

View file

@ -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"

View file

@ -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..."