Compare commits

...
Message SHA1
chore: {parse.sh, common.sh}: get_mb_ver -> mb_ver
shorter, why not?

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

fukiame   commited 2026-02-08 01:29:02 +07:00
1e07a99f7b
just math it i cant logic smh retar
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-08 01:26:03 +07:00
0321f71fb0
brain_is_air
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-08 00:28:54 +07:00
aba48e35b2
Revert "logitech"
This reverts commit bd750e2097.

fukiame   commited 2026-02-08 00:24:12 +07:00
79538e4147
logitech
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-08 00:20:50 +07:00
bd750e2097
eioqkfigne
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:54:43 +07:00
ef92fda269
common_sc2152
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:50:24 +07:00
9d5c7acdcf
lmfao
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:40:38 +07:00
022a003941
bruh
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:39:59 +07:00
ab18d0ae1f
fix: common.sh: getvar: reset i
usually not a problem though?

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

fukiame   commited 2026-02-07 23:34:55 +07:00
37f1be740c
aejnfksosmx
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:22:13 +07:00
26047ba4de
brok
Signed-off-by: fukiame <fukiame@proton.me>

fukiame   commited 2026-02-07 23:17:41 +07:00
11fcfd98b5
[2/2] fix: patches: *.sh: adapt for y2k
sed -i 's/MAXVER: /MAXVER: 6.4./' *
sed -i 's/MINVER: /MINVER: 6.4./' *

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

fukiame   commited 2026-02-07 22:44:54 +07:00
4cd3357a68
fix: patches: *.sh: kill all trailing whitespaces
sed -i 's/[ \t]*$//' *

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

fukiame   commited 2026-02-07 22:42:23 +07:00
64f49764fe
[1/2] feat: {parse.sh, common.sh}: "y2k" support
parse whole version, avoid potential patches leak when, for example, 6.5.0 lands

get_mb_ver now must have an argument,
for any usage outside of what ive grep'd, to retain the previous behavior, pass '2'

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

fukiame   commited 2026-02-07 22:32:20 +07:00
a81ef58501
29 changed files with 124 additions and 98 deletions

View file

@ -29,6 +29,7 @@ strip_all() {
getvar() {
# Usage: getline "n" "pattern" "file"
i=0
while IFS= read -r line; do
i=$((i+1))
[ "$i" = "$1" ] && printf '%s\n' "${line##$2}" && return
@ -117,11 +118,12 @@ pblock() {
echo "$1" > "$blocker"
}
get_mb_ver() {
mb_ver() {
[ -z "$1" ] && return 42
a="$(grep -m1 'android:versionName' "$DIRPATH"/mbapk/mbapk_unpacked/AndroidManifest.xml | tr ' ' '\n' | grep -m1 'android:versionName')"
a="$(bb_split "$a" '=' '1')"
a="$(strip_all "$a" '"')"
bb_split "$a" '.' '2'
bb_split "$a" '.' "$1"
}
good() {

View file

@ -77,12 +77,36 @@ for f in patches/*.sh ; do
continue
}
[ -n "$minver" ] && {
[ "$(get_mb_ver)" -gt "$minver" ] || {
chk="${minver//[^.]}"
[ "${#chk}" -ne 2 ] && {
warn "[parser] skipping [$pname] with malformed minver"
continue
}
minmajor="$(bb_split "$minver" '.' '0')"
minminor="$(bb_split "$minver" '.' '1')"
minpatch="$(bb_split "$minver" '.' '2')"
[ "$(( $(mb_ver 0) * 10000 + $(mb_ver 1) * 100 + $(mb_ver 2) ))" -lt \
"$(( minmajor * 10000 + minminor * 100 + minpatch ))" \
] && {
info "[parser] skipping [$pname] as current version is lower than patch version clamp"
continue ; }
} || :
[ -n "$maxver" ] && {
[ "$(get_mb_ver)" -lt "$maxver" ] || {
chk="${maxver//[^.]}"
[ "${#chk}" -ne 2 ] && {
warn "[parser] skipping [$pname] with malformed maxver"
continue
}
maxmajor="$(bb_split "$maxver" '.' '0')"
maxminor="$(bb_split "$maxver" '.' '1')"
maxpatch="$(bb_split "$maxver" '.' '2')"
[ "$(( $(mb_ver 0) * 10000 + $(mb_ver 1) * 100 + $(mb_ver 2) ))" -gt \
"$(( maxmajor * 10000 + maxminor * 100 + maxpatch ))" \
] && {
info "[parser] skipping [$pname] as current version is higher than patch version clamp"
continue ; }
} || :

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Autopatch strings
# MAXVER: 67
# MAXVER: 6.4.67
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# PATCHNAME: Better custom background screen
# MAXVER:
# MINVER: 83
# MINVER: 6.4.83
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Bypass accessibility & malicious apps check
# MAXVER: 55
# MAXVER: 6.4.55
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# PATCHNAME: Bypass GW934 checksum
# MAXVER: 67
# MINVER: 63
# MAXVER: 6.4.67
# MINVER: 6.4.63
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Bypass new zimperium detection
# MAXVER: 63
# MAXVER: 6.4.63
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# PATCHNAME: Custom VTAP screen
# MAXVER:
# MINVER: 52
# MINVER: 6.4.52
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Disable MB Membership
# MAXVER: 67
# MAXVER: 6.4.67
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# PATCHNAME: Tian37 Fix
# MAXVER:
# MINVER: 85
# MINVER: 6.4.85
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Remove banners & MiniApp
# MAXVER: 67
# MAXVER: 6.4.67
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Remove custom profile picture
# MAXVER: 67
# MAXVER: 6.4.67
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# PATCHNAME: Remove eMBee
# MAXVER: 67
# MAXVER: 6.4.67
# MINVER:
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# PATCHNAME: Remove invoke to mbshield
# MAXVER:
# MINVER: 21
# MINVER: 6.4.21
# shellcheck disable=SC1091
. "$DIRPATH"/common.sh

Some files were not shown because too many files have changed in this diff Show more