You've already forked ZygiskNext
mirror of
https://github.com/Dr-TSNG/ZygiskNext.git
synced 2025-08-27 23:46:34 +00:00
27 lines
515 B
Bash
27 lines
515 B
Bash
#!/system/bin/sh
|
|
|
|
DEBUG=@DEBUG@
|
|
|
|
MODDIR=${0%/*}
|
|
if [ "$ZYGISK_ENABLED" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
cd "$MODDIR"
|
|
|
|
MAGIC_PATH=/dev/zygisk_$(cat ./magic)
|
|
export MAGIC_PATH
|
|
|
|
if [ "$(which magisk)" ]; then
|
|
for file in ../*; do
|
|
if [ -d "$file" ] && [ -d "$file/zygisk" ] && ! [ -f "$file/disable" ]; then
|
|
if [ -f "$file/service.sh" ]; then
|
|
cd "$file"
|
|
log -p i -t "zygisk-sh" "Manually trigger service.sh for $file"
|
|
sh "$(realpath ./service.sh)"
|
|
cd "$MODDIR"
|
|
fi
|
|
fi
|
|
done
|
|
fi
|