You've already forked ZygiskNext
mirror of
https://github.com/Dr-TSNG/ZygiskNext.git
synced 2025-08-27 23:46:34 +00:00
25 lines
575 B
Bash
25 lines
575 B
Bash
#!/system/bin/sh
|
|
|
|
MODDIR=${0%/*}
|
|
if [ "$ZYGISK_ENABLED" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
cd "$MODDIR"
|
|
export NATIVE_BRIDGE=$(getprop ro.dalvik.vm.native.bridge)
|
|
|
|
if [ $(which magisk) ] && [ ".." -ef "/data/adb/modules" ]; then
|
|
for file in ../*; do
|
|
if [ -d "$file" ] && [ -d "$file/zygisk" ] && ! [ -f "$file/disable" ]; then
|
|
if [ -f "$file/post-fs-data.sh" ]; then
|
|
cd "$file"
|
|
log -p i -t "zygisksu" "Manually trigger post-fs-data.sh for $file"
|
|
sh "$(realpath ./post-fs-data.sh)"
|
|
cd "$MODDIR"
|
|
fi
|
|
fi
|
|
done
|
|
fi
|
|
|
|
sh -c "./daemon.sh $@&"
|