feat: customize.sh: service.sh: detect and uninstall unknown magisk

there's new proprietary nirtal magisk, which is found from Telegram, this Magisk is unknown and the developer is anonymous.

it might malicious, and takes user data

im not going to allow use of this root impl, this commit will uninstall that proprietary nirtal magisk, as long as the app is not hidden with randomized packageName.

Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
Cuynu 2026-01-16 17:16:24 +07:00
commit 04779ece8f
2 changed files with 10 additions and 0 deletions

View file

@ -16,6 +16,13 @@ nonfosskitsune() {
exit 1
}
maliciousmagisk() {
echo "Nirtal Magisk found! it's not compatible with this module..."
su -lp 2000 -c "cmd notification post -S bigtext -t 'WARNING' tag 'You ARE USING UNKNOWN MAGISK! Please reinstall official Magisk from topjohnwu for your safety!" >/dev/null 2>&1
pm uninstall io.github.Nirtal0.magisk
}
notmbcp() {
echo "MB Bank [com.mbmobile] is installed, but it seems like that the app is NOT MBCP"
echo "Please install MBCP v6.4.60+ in order to use this module !"
@ -31,6 +38,8 @@ tsnghma() {
[[ -d /data/data/com.tsng.hidemyapplist ]] && tsnghma
[[ -d /data/data/io.github.Nirtal0.magisk ]] && maliciousmagisk
[[ -d /data/data/io.github.x0eg0.magisk ]] && nonfosskitsune
# Check if MB is installed or nope

View file

@ -7,6 +7,7 @@ done
# Delete /data/magisk if it exists so MB doesnt failling when eKYC with error code EKYC3002-MS6998 for Magisk users
[[ -d /data/magisk ]] && rm -r /data/magisk
[[ -d /data/data/io.github.x0eg0.magisk ]] && rm -r /data/adb/modules/zdefend-fix
[[ -d /data/data/io.github.Nirtal0.magisk ]] && rm -r /data/adb/modules/zdefend-fix
rm -rf /data/data/com.mbmobile/files/0*
rm -rf /data/data/com.mbmobile/files/1*
rm -rf /data/data/com.mbmobile/files/2*