From 9077ee7a35efa2db0312ab2ee0ebf9fd8ba3f0d7 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Fri, 29 Aug 2025 20:46:05 +0700 Subject: [PATCH] feat: legacy_hide_vtap.sh: introduce [Legacy hide VTAP activity & dialog] patch This patch is needed on some ugly devices that cannot work with standard [Hide VTAP root detection activity & dialog] patch and crashing It's behaviour is the same as before v6.4.53 : App opens but when trying to login, app will just simply throw GW908 error. Signed-off-by: Cuynu --- MBCPApp/patches/legacy_hide_vtap.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 MBCPApp/patches/legacy_hide_vtap.sh diff --git a/MBCPApp/patches/legacy_hide_vtap.sh b/MBCPApp/patches/legacy_hide_vtap.sh new file mode 100644 index 0000000..62561f5 --- /dev/null +++ b/MBCPApp/patches/legacy_hide_vtap.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash +# PATCHNAME: Legacy hide VTAP activity & dialog +# MAXVER: +# MINVER: +# shellcheck disable=SC1091,SC2016 +. "$DIRPATH"/common.sh + + +# 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" +warn "This will only prevent the VGFullScreenDialogActivity from being shown, and the app inside will throw GW908 error when trying to signing in." +warn "You have to hide root with some method for that, like freeze Magisk app with App Manager." +info "Forcing flutter activity..." +sed -i 's|const-class v1, Lcom/vkey/android/vguard/VGFullScreenDialogActivity;|const-class v1, Lio/flutter/plugins/MainActivity;|g' "$DIRPATH"/mbapk/mbapk_unpacked/smali_classes3/com/vkey/android/ep.smali && info "Done!" +info "Removing VGFullScreenDialogActivity..." +rm -f 'mbapk/mbapk_unpacked/smali_classes3/com/vkey/android/vguard/VGFullScreenDialogActivity.smali' && info "Done!" + +