Commit graph mbbpatch/MBCPApp/patches/modify_app_theme.sh
Message SHA1
fix: patches(modify_app_theme): failing when apply certain theme
caused by calling a function before the function is created

incorrectly error 1 handling too

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

Cuynu   commited 2026-04-30 23:28:12 +07:00
4527305c67
feat: patches(modify_app_theme): adapt [Viet Nam] theme with new [giaiphong] built-in theme
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-04-23 20:38:53 +07:00
56ff0f6f8d
fix: patches(modify_app_theme): trungthu being applied even the actual theme is not found
this commit checks if the trungthu folder is exist or not before copying.

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

Cuynu   commited 2026-04-04 00:25:29 +07:00
e4e61f6e2e
fix: patches(modify_app_theme): wrong mbcp_info folder name
it should be `mbcp_info` instead, not `mbcpinfo`

my mistake when write ts

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

Cuynu   commited 2026-03-18 20:59:01 +07:00
fc01fa4dcd
feat: patches(modify_app_theme): theme folder checks & minor changes
this commit adds folder check for themes

prevent noel 2024 theme from being applied if SemiPriority theme is already applied

some other stuff i can imagine

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

Cuynu   commited 2026-03-18 20:55:25 +07:00
2aee963a02
chore: move some patch specific functions from common.sh to separate patches
i have no idea why it was put to `common.sh`

maybe bcz im too dumb

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

Cuynu   commited 2026-03-16 04:14:08 +07:00
2e8ab1b1fe
feat: patches(modify_app_theme): override tetbinhngo theme with [Tu Hao Viet Nam] theme
Lunar New Year is now over, but the latest app is still not removes that theme from their app.

this commits adds [Viet Nam] function as theme, it will override the [tetbinhngo] theme with [Tu Hao Viet Nam] one.

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

Cuynu   commited 2026-03-16 04:08:31 +07:00
5974a4bdba
fix: patches: *.sh: kill all trailing whitespaces
sed -i 's/[ \t]*$//' *

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

fukiame   commited 2026-03-16 04:06:24 +07:00
bac96f2324
feat: modify_app_theme.sh: check for libapp.so first before patching links
save times for v6.4.67+

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

Cuynu   commited 2026-03-16 04:03:01 +07:00
f564981164
fix: modify_app_theme.sh: wrong function location
it must be in common.sh instead

also some syntax ahh moment

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

Cuynu   commited 2026-03-16 03:59:07 +07:00
e96ab6b05e
feat: modify_app_theme.sh: support for new enforced priority logo
looks bad, but still usable

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

Cuynu   commited 2026-03-16 03:58:37 +07:00
23ae45495f
feat: tretrung_theme: override noel 2025 theme with tretrung theme
christmas is now over, it's nearly 2026. it is better to replace them with standard tretrung theme

tomorrow is 2026, my aim is still programming and youtuber

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

Cuynu   commited 2026-03-16 03:42:51 +07:00
809f6346bb
feat: misc: check for [libZDefend.so] before requiring app resources extraction
app resources only encrypted inside [mbshield.szip] for v6.4.47 or older, which uses [libZDefend.so]

from v6.4.48 and above, the app resources no longer fully encrypted, and the old [libZDefend.so] is moved to [libdesignersactivists.so]

this will notice whether app resources extraction is required or not

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

Cuynu   commited 2026-03-16 03:33:55 +07:00
c2d2eea626
feat: modify_app_theme.sh: adapt noel 2024 with new trungthu changes
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 02:54:22 +07:00
171e0e5be4
feat: trungthu: adapt with v6.4.68+ trungthu theme
also mark todo as done

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

Cuynu   commited 2026-03-16 02:52:18 +07:00
1a98863c99
fix: trungthu_theme: wrong path dir
my brain faults

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

Cuynu   commited 2026-03-16 02:35:44 +07:00
399f02246e
fix: trungthu_theme: missing resources
some place on the app still showing quockhanh background due to missing resources

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

Cuynu   commited 2026-03-16 02:35:44 +07:00
928b3b521f
fix: modify_app_theme.sh: useless resources did not removed properly
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 02:32:34 +07:00
0fe061a9ca
feat: trungthu: add new bulit-in theme
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 02:32:27 +07:00
1be3fc4e2d
feat: partially move to apkeditor (1/2)
MB server-side now enforcing checksum checks, omehow it also make app doesn't work with GW934 error when logging in after compiled with apktool

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

Cuynu   commited 2026-03-16 02:11:24 +07:00
e4c15802b0
feat: remove_banner_miniapp.sh: declare demo screenshot on first startup
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 01:53:04 +07:00
decb3c2bde
feat: modify_app_theme.sh: also apply patch_finish to themes
Signed-off-by: Cuynu <cuynu@proton.me>

Cuynu   commited 2026-03-16 01:51:50 +07:00
3c387f85d6
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
[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