2020-01-02 10:40:48 +00:00
|
|
|
#!/sbin/sh
|
|
|
|
|
|
|
|
#################
|
|
|
|
# Initialization
|
|
|
|
#################
|
|
|
|
|
|
|
|
umask 022
|
|
|
|
|
|
|
|
# echo before loading util_functions
|
|
|
|
ui_print() { echo "$1"; }
|
|
|
|
|
|
|
|
require_new_magisk() {
|
|
|
|
ui_print "*******************************"
|
2020-11-06 10:31:38 +00:00
|
|
|
ui_print " Please install Magisk v20.4+! "
|
2020-01-02 10:40:48 +00:00
|
|
|
ui_print "*******************************"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
2020-05-23 08:45:56 +00:00
|
|
|
#########################
|
|
|
|
# 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
|
2020-11-06 10:31:38 +00:00
|
|
|
[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
|
2020-05-23 08:45:56 +00:00
|
|
|
|
2020-11-06 10:31:38 +00:00
|
|
|
install_module
|
2020-01-02 10:40:48 +00:00
|
|
|
exit 0
|