fix: patches(fix_vtap_cert): do not throw nofwfound if no profile found

also skip copying `profile` if it not found.

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2026-06-19 10:32:35 +07:00
commit 34d379a7c1
Signed by: cuynu
GPG key ID: 1F01341D0B42B51A

View file

@ -27,13 +27,11 @@ mkdir -p "$DIRPATH"/fixcert/
[ ! -f "$DIRPATH"/fixcert/firmware ] && nofwfound [ ! -f "$DIRPATH"/fixcert/firmware ] && nofwfound
[ ! -f "$DIRPATH"/fixcert/profile ] && nofwfound
# fw # fw
cp -f "$DIRPATH"/fixcert/firmware "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/ cp -f "$DIRPATH"/fixcert/firmware "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/
# profile # profile
cp -f "$DIRPATH"/fixcert/profile "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/ [ -f "$DIRPATH"/fixcert/profile ] && cp -f "$DIRPATH"/fixcert/profile "$DIRPATH"/mbapk/mbapk_unpacked/root/assets/
info "Remove [firmware] and [profile] file from [/data/data/com.mbmobile/files] or clear app data" info "Remove [firmware] and [profile] file from [/data/data/com.mbmobile/files] or clear app data"
info "If the app still keep crashing or throwing expired certificate screen or the detection is still the same." info "If the app still keep crashing or throwing expired certificate screen or the detection is still the same."