Commit graph mbbpatch/MBCPApp
Message SHA1
fix: mbcpapp.sh: SelfPatched apk did not deleted when repack apk multiple times
fixes file already exist when processing v2/v3 signature scheme after repack apk multiple times

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

Cuynu   commited 2026-03-16 01:26:19 +07:00
fa61e36618
chore: mbcpapp.sh: further simplify repacking
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:25:09 +07:00
39edb2bb65
chore: mbcpapp.sh: Repack: directly restore sig with one apkeditor invocation
massively speed up repacking, again

on my Acer Aspire E1-471 with an i3-2328M and an HDD, repacking time
under apkeditor part is cut short from 2+ minutes to 3 seconds

Test: repack, app install successfully
Tested-by: fukiame <fukiame@proton.me>
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:21:26 +07:00
8abfaf7256
fix: mbcpapp.sh: [Install patched app] use break to exit, reset PS3
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:21:13 +07:00
63c2333ef4
chore: common.sh: sed_*: operate both file in one invocation
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:21:04 +07:00
f3c6385e55
chore: mbcpapp.sh: switch to new logging commons
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:20:16 +07:00
6fa513a43d
fixup! mbcpapp.sh: move common include sooner
make logging functions available earlier

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

fukiame   commited 2026-03-16 01:16:27 +07:00
dd00ac019e
fixup! patches: modify_app_theme: drop patch_finish
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:15:08 +07:00
986817784a
fixup! patches: modify_app_theme: place wildcard outside of quotes
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:15:01 +07:00
4f2ccae58e
chore: treewide: switch shebang
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-03-16 01:14:43 +07:00
6bdd999774
chore: mbcpapp.sh: cd to current dir
execute anywhere, works anywhere

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

fukiame   commited 2026-03-16 01:14:36 +07:00
cfd7bd24dd
[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
[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
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
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