[SQUASH] refactor: treewide: separate patches, provide common common, refactor change_app_logo, commonize and enhance logging
...
adding new patches is now trivial:
cd patches
cp TEMPLATE patch_name_whatever.sh
# then just fill in patch name and ver clamp if desired
this gets rid of the need for excessive if-elses and not-so-pleasing indents
for logging, instead of using pure echo, 4 new "levels" can be utilized
- `info` : normal
- `good` : info but have green color?
- `warn` : warning
- `err` : error
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:14:26 +07:00
0a89bce342
chore: patches: mv patches/ blob_patches/
...
preparing for separation
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:11:15 +07:00
d69960cba9
[DNM] refactor: patch.sh: drop
...
for the upcoming separation
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:10:48 +07:00
7104402f86
[DIRTY] fix: mbcpapp.sh: guard all guard clause usage with return
...
for whatever reason set -e does not work properly inside functions
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:09:47 +07:00
979a010692
chore: mbcpapp.sh: commonize is_unpacked usage
...
the only oddball using this was purged out
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:09:19 +07:00
51b0753ba2
chore: mbcpapp.sh: fix remaining shellcheck warnings
...
- drop unnessecary condition for SC2015 on line 93 since rm -rf always return with status 0
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:06:51 +07:00
e5595a3323
chore: treewide: double quote all $DIRPATH usage
...
shouldve made this into the initial treewide sed me noob
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:05:03 +07:00
3e1e7318a1
chore: patch.sh: shellcheck -f diff | git apply
...
quote all $DIRPATH usage, fix SC2086
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:04:41 +07:00
5470fd718f
refactor: mbcpapp.sh: (3/3) remove leftover home dir notice
...
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:04:33 +07:00
6f613cf07f
refactor: treewide: (2/3) break free from home dir restriction
...
git grep -lz . | xargs -0 sed -i -e 's|~/mbbpatch/MBCPApp|$DIRPATH|g'
now we can clone to whereever we want, not just $HOME
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 01:03:28 +07:00
6714f1450d
refactor: mbcpapp.sh: (1/3) export script dir path
...
Signed-off-by: fukiame <fukiame@proton.me>
fukiame
commited 2026-03-16 00:59:58 +07:00
b3f09eb9c3
README: bump suggested version to v6.4.60
...
Signed-off-by: Cuynu <cuynu@proton.me>
Cuynu
commited 2026-03-16 00:59:05 +07:00
ce2ece4c3d
chore: mbcpapp.sh: remove continue echo after download tools
...
Signed-off-by: Cuynu <cuynu@proton.me>
Cuynu
commited 2026-03-16 00:58:51 +07:00
7eb4e8d462
README: remove extract assets in usage
...
Signed-off-by: Cuynu <cuynu@proton.me>
Cuynu
commited 2026-03-16 00:57:40 +07:00
0567ad4cab
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
...
v6.4.59
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
README: add [Bypass new zimperium detection] patch to patches list
...
Signed-off-by: Cuynu <cuynu@proton.me>
Cuynu
commited 2026-03-14 23:12:06 +07:00
4aec802243
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
README: minor changes
...
Signed-off-by: Cuynu <cuynu@proton.me>
Cuynu
commited 2026-03-14 23:08:02 +07:00
d72c0be3ce
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