feat: do not block installation for kitsune 30.6 & nirtal magisk users
with warning about data risk and 15 seconds delay someone created the another fork of mbzdefend-fix and push it to guthib and bullying me Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
c045f59ce3
commit
b342a54841
1 changed files with 12 additions and 10 deletions
|
|
@ -10,17 +10,16 @@ INSTALLEN="https://git.disroot.org/mbcp/info_en/wiki/mbcpinstall"
|
|||
iptables -t nat -F
|
||||
|
||||
nonfosskitsune() {
|
||||
echo "Kitsune Mask v30.4+ is proprietary and is not compatible with this module!"
|
||||
echo "Please install older FOSS Kitsune Mask!"
|
||||
am start -a android.intent.action.VIEW -d https://github.com/1q23lyc45/KitsuneMagisk/releases
|
||||
exit 1
|
||||
echo "Proprietary Kitsune found! Your data might be at risk!"
|
||||
echo "Consider install older FOSS Kitsune Mask to protect your data!"
|
||||
echo "If you agree with the risk, wait 10 seconds then module will continue to install"
|
||||
sleep 15
|
||||
}
|
||||
|
||||
maliciousmagisk() {
|
||||
echo "Nirtal Magisk found! it's not compatible with this module..."
|
||||
echo "Please install official Magisk, or older Kitsune Mask!"
|
||||
am start -a android.intent.action.VIEW -d https://github.com/topjohnwu/Magisk/releases
|
||||
exit 1
|
||||
echo "Nirtal Magisk found! Your data might be at risk!"
|
||||
echo "Consider install official Magisk to protect your data !"
|
||||
echo "If you agree with the risk, wait 15 seconds then module will continue to install"
|
||||
sleep 15
|
||||
}
|
||||
|
||||
notmbcp() {
|
||||
|
|
@ -30,7 +29,6 @@ notmbcp() {
|
|||
exit 1
|
||||
}
|
||||
|
||||
|
||||
# Replacement for /system/etc/hosts
|
||||
# Fixes module being disabled due to bindhosts module
|
||||
nobindhosts() {
|
||||
|
|
@ -46,6 +44,7 @@ bindhosts() {
|
|||
|
||||
[ -d /data/adb/bindhosts ] && bindhosts || nobindhosts
|
||||
|
||||
|
||||
tsnghma() {
|
||||
echo "Dr-TSNG HideMyAppList detected!"
|
||||
echo "Hiding app..."
|
||||
|
|
@ -60,6 +59,7 @@ tsnghma() {
|
|||
|
||||
|
||||
# Check if MB is installed or nope
|
||||
# Remove this one can cause the module does not work properly!
|
||||
if [ -d /data/data/com.mbmobile ]; then
|
||||
echo ""
|
||||
else
|
||||
|
|
@ -69,6 +69,7 @@ else
|
|||
fi
|
||||
|
||||
# Check if Termux and it's bootstrap is initialized or not
|
||||
# Remove this code broke Termux support
|
||||
if [ -d /data/data/com.termux ]; then
|
||||
if [[ -d /data/data/com.termux/files/home ]]; then
|
||||
echo "Termux bootstrap found!"
|
||||
|
|
@ -86,6 +87,7 @@ else
|
|||
fi
|
||||
|
||||
# Check for original MB Bank app
|
||||
# The module does NOT work with original unpatched app. It's pointless to remove the check. You think it works with original app? Nah.
|
||||
for library in $(find /data/app -name libvvb2060.so | grep com.mbmobile) ; do notmbcp ; done
|
||||
|
||||
# Grant permission for MB/MBCP app
|
||||
|
|
|
|||
Loading…
Reference in a new issue