Simple magisk modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
397 B

#!/bin/sh
set -e
dir="${1:-.}"
if [ ! -f module_installer.sh ]; then
wget -c https://raw.githubusercontent.com/topjohnwu/Magisk/master/scripts/module_installer.sh
fi
mkdir -p "$dir/META-INF/com/google/android"
cat module_installer.sh > "$dir/META-INF/com/google/android/update-binary"
echo "#MAGISK" > "$dir/META-INF/com/google/android/updater-script"
( cd "$dir" ; zip -9r package.zip . )