Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Check zygisk's status
Browse files Browse the repository at this point in the history
To be compatible with topjohnwu/Magisk@fef44bd
  • Loading branch information
yujincheng08 committed Dec 14, 2021
1 parent 40b1832 commit 8e394f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions template/magisk_module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ else
fi

extract "$ZIPFILE" 'module.prop' "$MODPATH"
cp "$MODPATH/module.prop" "$MODPATH/module.prop.bk"
extract "$ZIPFILE" 'post-fs-data.sh' "$MODPATH"
extract "$ZIPFILE" 'service.sh' "$MODPATH"
extract "$ZIPFILE" 'system.prop' "$MODPATH"
Expand Down
5 changes: 5 additions & 0 deletions template/magisk_module/post-fs-data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ MODDIR=${0%/*}
if [ -z "$SHELL" ]; then
export SHELL=sh
fi
cp -f "$MODDIR/module.prop.bk" "$MODDIR/module.prop"
if [ "$ZYGISK_ENABLE" = "1" ]; then
sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ Riru is not loaded because of Zygisk. ] /g' "$MODDIR/module.prop"
exit
fi
sed -Ei 's/^description=(\[.*][[:space:]]*)?/description=[ app_process fails to run. ] /g' "$MODDIR/module.prop"
export CLASSPATH=$MODDIR/rirud.apk
cd $MODDIR
Expand Down

0 comments on commit 8e394f4

Please sign in to comment.