#!/sbin/sh
umask 022
ui_print() { echo "$1"; }
r() {
  ui_print "*******************************"
  ui_print " Please install Magisk v20.4+! "
  ui_print "  请更新Magisk到 v20.4或更高!  "
  ui_print "*******************************"
  exit 1
}
OUTFD=$2
ZIPFILE=$3
mount /data 2>/dev/null
[ -f /data/adb/magisk/util_functions.sh ] || r
. /data/adb/magisk/util_functions.sh
[ $MAGISK_VER_CODE -lt 20400 ] && r
install_module
exit 0