feat: patches: new fix_tian37 patch
Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
7064f2bdbb
commit
ef68c5a63d
3 changed files with 24 additions and 1 deletions
|
|
@ -44,6 +44,15 @@ sed_libapp() {
|
|||
) && info "[sed_libapp] [$target] -> [$replacement]" || warn "[sed_libapp] replacing [$target] failed !"
|
||||
}
|
||||
|
||||
sed_libtian37() {
|
||||
target=$(bb_split "$1" '|' '1')
|
||||
replacement=$(bb_split "$1" '|' '2')
|
||||
(
|
||||
sed -i "$1" "$DIRPATH"/mbapk/mbapk_unpacked/root/lib/arm64-v8a/libanTian37.so \
|
||||
"$DIRPATH"/mbapk/mbapk_unpacked/root/lib/armeabi-v7a/libanTian37.so
|
||||
) && info "[sed_libtian37] [$target] -> [$replacement]" || warn "[sed_libtian37] replacing [$target] failed !"
|
||||
}
|
||||
|
||||
prioritylogo() {
|
||||
if [ -f 'mbapk/mbapk_unpacked/root/assets/flutter_assets/assets/images/dynamic/base/a_logo_img_addon.webp' ]
|
||||
then
|
||||
|
|
|
|||
13
MBCPApp/patches/fix_tian37.sh
Normal file
13
MBCPApp/patches/fix_tian37.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
# PATCHNAME: Tian37 Fix
|
||||
# MAXVER:
|
||||
# MINVER: 85
|
||||
# shellcheck disable=SC1091
|
||||
. "$DIRPATH"/common.sh
|
||||
|
||||
sed_libtian37 's|/proc/mountsb7/proc/fs/jbd2/| |'
|
||||
sed_libtian37 's|com.rifsxd.ksunext| |'
|
||||
sed_libtian37 's|/proc/fs/jbd2/loop*8 2>/dev/null| |'
|
||||
sed_libtian37 's|me.weishu.kernelsu| |'
|
||||
sed_libtian37 's|/proc/self/maps/| |'
|
||||
sed_libtian37 's|/data/adb/modules|/sdcard/Downloads|'
|
||||
|
|
@ -77,6 +77,7 @@ I'm not responsible if someone abuse this patch to do illegal things, since it's
|
|||
| `Change app logo` | Change the app logo with set of icons. | v6.4.0 ~ v6.4.84 |
|
||||
| `Change widget background to dark ` | Change widget background to dark if you use MBBHomeWidget. | v6.4.0 ~ v6.4.84 |
|
||||
| `Custom VTAP screen` | Warn users about critical VTAP trigger error from app. | v6.4.53 ~ v6.4.84 |
|
||||
| `Tian37 Fix` | Nuke detection points within Tian37 libraries. | v6.4.86 |
|
||||
| `Force portrait screen` | Force the screen always portrait on app, espcially when launching. | v6.4.0 ~ v6.4.84 |
|
||||
| `Remove MB AI Bullsh*t resources` | Remove the bullsh*t MB AI resources from app. Need to implement more in the future. | v6.4.74 ~ v6.4.84 |
|
||||
| `Remove MB Themes Store` | Remove the MB Themes Store banner from Themes list, preventing access to MB Theme Store. | v6.4.28 ~ v6.4.84 |
|
||||
|
|
@ -167,7 +168,7 @@ I'm not responsible if someone abuse this patch to do illegal things, since it's
|
|||
|
||||
- [x] Adapt new v6.4.68 trungthu theme
|
||||
|
||||
## Contribute to project
|
||||
## Contribute to project & AI usage?
|
||||
- PRs are welcome, but you are NOT allowed to use any AI-tools for creating PRs with AI-generated/AI-assisted code to this project, even if it's manually reviewed by human. please use your brain and search engine & read documentation for that !
|
||||
<details>
|
||||
|
||||
|
|
|
|||
Reference in a new issue