You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
24 lines
607 B
Bash
24 lines
607 B
Bash
#!/system/bin/sh
|
|
|
|
MODDIR=${0%/*}
|
|
if [ "$ZYGISK_ENABLED" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
cd "$MODDIR"
|
|
getprop ro.dalvik.vm.native.bridge > /dev/.native_bridge
|
|
resetprop ro.dalvik.vm.native.bridge libzygisk_loader.so
|
|
|
|
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
|