From 888ac5c0d4643b060a0450cdd835bb6668fda6dd Mon Sep 17 00:00:00 2001 From: Cuynu Date: Thu, 5 Feb 2026 21:49:28 +0700 Subject: [PATCH] feat: patches: new fix_tian37 patch Signed-off-by: Cuynu --- MBCPApp/common.sh | 9 +++++++++ MBCPApp/patches/fix_tian37.sh | 13 +++++++++++++ README.md | 3 ++- 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 MBCPApp/patches/fix_tian37.sh diff --git a/MBCPApp/common.sh b/MBCPApp/common.sh index 26ba512..a300c4a 100644 --- a/MBCPApp/common.sh +++ b/MBCPApp/common.sh @@ -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 diff --git a/MBCPApp/patches/fix_tian37.sh b/MBCPApp/patches/fix_tian37.sh new file mode 100644 index 0000000..ac4b2d5 --- /dev/null +++ b/MBCPApp/patches/fix_tian37.sh @@ -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|' diff --git a/README.md b/README.md index 8be068d..a7298dc 100644 --- a/README.md +++ b/README.md @@ -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 | @@ -192,7 +193,7 @@ cd ~/mbbpatch/MBCPApp - [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 !