Skip to content

Commit 29bc161

Browse files
committed
fix: disable built-in Zygisk warning
This commit fixes the warning about disabling built-in Zygisk on Magisk. Without the mount to make it show in the manager, it wasn't showing at all. This not only makes it show on the manager, but also simplifies the process of doing so.
1 parent b477393 commit 29bc161

2 files changed

Lines changed: 6 additions & 12 deletions

File tree

loader/src/ptracer/monitor.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -984,18 +984,6 @@ static bool prepare_environment() {
984984

985985
fclose(orig_prop);
986986

987-
/* INFO: This environment variable is related to Magisk Zygisk/Manager. It
988-
it used by Magisk's Zygisk to communicate to Magisk Manager whether
989-
Zygisk is working or not.
990-
991-
Because of that behavior, we can knowledge built-in Zygisk is being
992-
used and stop the continuation of initialization of ReZygisk.*/
993-
if (getenv("ZYGISK_ENABLED")) {
994-
update_status("❌ Disable Magisk's built-in Zygisk");
995-
996-
return false;
997-
}
998-
999987
return true;
1000988
}
1001989

module/src/service.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@
33
DEBUG=@DEBUG@
44

55
MODDIR=${0%/*}
6+
7+
export TMP_PATH=/data/adb/rezygisk
68
if [ "$ZYGISK_ENABLED" ]; then
9+
cp "$MODDIR/module.prop" "$TMP_PATH/module.prop"
10+
sed -i "s|^description=|description=[❌ Disable Magisk's built-in Zygisk] |" "$TMP_PATH/module.prop"
11+
mount --bind "$TMP_PATH/module.prop" "$MODDIR/module.prop"
12+
713
exit 0
814
fi
915

0 commit comments

Comments
 (0)