2017-12-25 21:21:25 +00:00
|
|
|
#!/sbin/sh
|
|
|
|
|
2021-01-14 21:01:33 +00:00
|
|
|
#################
|
|
|
|
# Initialization
|
|
|
|
#################
|
2017-12-25 21:21:25 +00:00
|
|
|
|
2021-01-14 21:01:33 +00:00
|
|
|
umask 022
|
|
|
|
|
|
|
|
# echo before loading util_functions
|
|
|
|
ui_print() { echo "$1"; }
|
|
|
|
|
|
|
|
require_new_magisk() {
|
|
|
|
ui_print "*******************************"
|
|
|
|
ui_print " Please install Magisk v20.4+! "
|
|
|
|
ui_print "*******************************"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
#########################
|
|
|
|
# Load util_functions.sh
|
|
|
|
#########################
|
|
|
|
|
|
|
|
OUTFD=$2
|
|
|
|
ZIPFILE=$3
|
|
|
|
|
|
|
|
mount /data 2>/dev/null
|
|
|
|
|
|
|
|
[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
|
|
|
|
. /data/adb/magisk/util_functions.sh
|
|
|
|
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
|
|
|
|
|
|
|
|
install_module
|
2021-09-04 11:11:35 +00:00
|
|
|
exit 0
|