Commit graph mbbpatch/MBCPApp
Message SHA1
chore: remove fun fact
Well, this project no longer be maintained by just only me, it's contain real developer logic now, so this fact must be dropped

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 00:56:44 +07:00
6adee9ae20
refactor: mbcpapp.sh: move more thing out to func
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 00:47:20 +07:00
9d9ae555b9
refactor: mbcpapp.sh: use case switch instead of if-else
also move mbshield check strings out as vars

still ongoing

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 00:43:25 +07:00
103a931a85
chore: patch.sh: update some strings
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-15 00:05:56 +07:00
361794a074
fix: mbcpapp.sh: Convert apks to apk: drop multi threading flag
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:04:36 +07:00
98ec1a66ba
fix: patch.sh: Remove protection shield: shield doesn't actually disabled
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:04:22 +07:00
784aa3f3a5
fix: patch.sh: Remove protection shield: patch doesn't work
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:04:06 +07:00
2e407bf555
feat: patch.sh: introduce [Remove protection shield] patch
This patch does not remove app protection patch, it's just remove the MIC Shield protection, which appears on the left side of profile picture.

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:03:42 +07:00
28392bbaa0
feat: mbcpapp.sh: Bypass new zimperium detection: also remove related libraries
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:03:27 +07:00
491264f50c
fix: mbcpapp.sh: drop multi-threading for apkeditor
this flag does not exist on APKEditor.

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:03:13 +07:00
cf091759e0
feat: patch.sh: Autopatch strings: modify more strings
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:03:01 +07:00
9ddcc3a2e8
fix: patch.sh: Autopatch strings: modify more strings
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-15 00:02:53 +07:00
8311bc5650
refactor: mbcpapp.sh: commonize more stuff and move some more stuff to func
commit message does not make sense

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-15 00:01:32 +07:00
39a33d0392
refactor: mbcpapp.sh: unpack: move out to separate func
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:44:52 +07:00
7be718be7d
refactor: mbcpapp.sh: repack: move out to separate func
set -e to catch error properly

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:38:59 +07:00
15695aa39f
refactor: impr logging
Signed-off-by: NgankBakaa <ngankbakaa@gmail.com>

NgankBakaa   commited 2026-03-14 23:35:24 +07:00
55c834e994
chore: wrap su -c commands in quotes for consistency and safety
Signed-off-by: NgankBakaa <ngankbakaa@gmail.com>

NgankBakaa   commited 2026-03-14 23:35:24 +07:00
33d65d19c3
refactor: mbcpapp.sh: "Extract assets": move to copy_assets
ideally id push a script to /data/local/tmp to reduce overhead but tis aint that noticeable anyways

also remove redundant sleeps

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:34:47 +07:00
3afe6d6341
refactor: mbcpapp.sh: introduce copy_assets
small shorthand for an uh

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:34:17 +07:00
98762d2fb9
refactor: enable multi-threading for apktool
Signed-off-by: NgankBakaa <ngankbakaa@gmail.com>

NgankBakaa   commited 2026-03-14 23:32:52 +07:00
3d0675ec93
chore: legacy_patch.sh: move to commonized tools name
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:31:52 +07:00
610cb63314
refactor: mbcpapp.sh: move tool downloading to separate funcs, commonize filename
reduce bumping efforts

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:23:14 +07:00
89e47b9844
chore: mbcpapp.sh: include vim formattings, tidy up some comments
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 23:17:08 +07:00
71b075af54
fix: patch.sh: Bypass new zimperium detection: missing manifest_remove
Fixes EKYC3002-MS6998 error with DF16246.6 when processing eKYC

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:12:26 +07:00
4d4c11ecea
refactor: patch.sh: also remove unpacked app if unpack apk function is used
If you already unpacked APK, then if you use unpack apk function again, it will remove the unpacked app, and you will be able to unpack again without copying apks once again.

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:12:16 +07:00
57cf28a431
fix: patch.sh: Bypass new zimperium detection: missing patch_finish
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:11:52 +07:00
a31f781b53
feat: patch.sh: introduce bypass new zimperium detection patch
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:10:52 +07:00
0a8a7f84bd
fix: mbcpapp.sh: wrong APKEditor download link
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:09:48 +07:00
e22e5b9ff1
chore: legacy_patch.sh: fix grammar mistakes
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:04:39 +07:00
b4d8a65dd5
chore: patch.sh: quote get_mb_ver invokes
In patch.sh line 540:
    if [ $(get_mb_ver) -lt 59 ] ; then
         ^-----------^ SC2046 (warning): Quote this to prevent word splitting.

Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:04:25 +07:00
e3cc418478
chore: patch.sh: "Remove new root detection": enforce version restriction
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:03:30 +07:00
23125cda7e
feat: patch.sh: introduce sed_libzdefend
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:02:58 +07:00
39811a1fbd
feat: legacy_patch.sh: add back [Remove v6.4.56 root detection] patch
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 23:00:12 +07:00
b2b8aa6dad
feat: patch.sh: modify more strings
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 22:54:01 +07:00
456d39b39f
[TMP] chore: patch.sh: "Exit": just exit
no frills
we probably have to redesign the UI, hence TMP

this patch clears out the last remaining shellcheck warning

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 22:01:22 +07:00
9b7945dce8
chore: patch.sh: "Remove VNPAY VMB20": satisfy SC2164
In patch.sh line 261:
     cd ~/mbbpatch/MBCPApp
     ^-------------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 22:01:04 +07:00
37d6b47978
chore: patch.sh: quote get_mb_ver invokes
In patch.sh line 163:
    if [ $(get_mb_ver) -lt 55 ] ; then
         ^-----------^ SC2046 (warning): Quote this to prevent word splitting.

In patch.sh line 234:
     if [ $(get_mb_ver) -gt 56 ] ; then
          ^-----------^ SC2046 (warning): Quote this to prevent word splitting.

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 22:00:52 +07:00
a0a03510a2
chore: patch.sh: get_mb_ver: drop useless echo and double quote properly
In patch.sh line 47:
    echo $(bb_split "$a" '.' '2')
         ^----------------------^ SC2046 (warning): Quote this to prevent word splitting.
         ^----------------------^ SC2005 (style): Useless echo? Instead of 'echo $(cmd)', just use 'cmd'.

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 22:00:32 +07:00
e7c0bbafa8
chore: patch.sh: get_mb_ver: drop useless cat
In patch.sh line 45:
    a="$(cat ~/mbbpatch/MBCPApp/mbapk/mbapk_unpacked/apktool.yml | grep -m1 'versionName')"
             ^-- SC2002 (style): Useless cat. Consider 'cmd < file | ..' or 'cmd file | ..' instead.

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:59:45 +07:00
c18491e28c
chore: patch.sh: silence shellcheck SC2016
In patch.sh line 894:
    rm -f 'mbapk/mbapk_unpacked/smali_classes4/com/vtap/MaintenanceActivity$1.smali'
          ^-- SC2016 (info): Expressions don't expand in single quotes, use double quotes for that.

since this behavior is intentional ($1 is part of the filename), silence it

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:58:12 +07:00
ca46d9cc02
chore: patch.sh: fix some small grammar mistakes
this patch should incur no functional changes

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:56:33 +07:00
2e2a627f1b
feat: patch.sh: "Remove invoke to mbshield": also remove unnecessary EP*.smali
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-14 21:44:42 +07:00
92708130ad
chore: mbcpapp.sh: move clear down below after all checks
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:40:29 +07:00
714d8b6904
[TMP] fix: patch.sh: call self via bash
TODO either properly "goto" or make normal break works

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:36:48 +07:00
f20b4e39aa
fix: mbcpapp.sh: explicitly use bash
posix sh != bash, avoid failing

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:36:26 +07:00
c13a0812b0
fixup! mbcpapp.sh: fix $COMMIT
my eyes arent that good anymore

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-14 21:35:16 +07:00
1c19df530a
fix: mbcpapp.sh: use ls for glob existence checking
In mbcpapp.sh line 78:
    if [ -f ~/mbbpatch/MBCPApp/mbapk/*.apk ]
            ^----------------------------^ SC2144 (error): -f doesn't work with globs. Use a for loop.

In mbcpapp.sh line 169:
    if [ -f ~/mbbpatch/MBCPApp/mbapk/*.apks ]
            ^-----------------------------^ SC2144 (error): -f doesn't work with globs. Use a for loop.

we do not care about the actual result,
we just need to know whether the files exist,
tis probably fine

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   authored and   Cuynu   commited 2026-03-14 21:24:04 +07:00
e1b4f0e88b
chore: mbcpapp.sh: single quote all stray echo commands
fix tray SC2102

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   authored and   Cuynu   commited 2026-03-14 21:23:46 +07:00
2cb040dffd
chore: mbcpapp.sh: actually use $COMMIT
appears unused despite being set

also fix some stray SC2086

also move var down after all runtime checks

fukiame   commited 2026-03-14 21:20:44 +07:00
011ba1b8c7
chore: mbcpapp.sh: dont use /usr/bin as command check
command -v and or executing the binary itself is a good enough rudimentary check
"fix" "nonexistent" command on Termux

also drop redundant $JAVA

Signed-off-by: fukiame <fukiame@proton.me>

fukiame   authored and   Cuynu   commited 2026-03-14 20:29:12 +07:00
5726882cc9