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.

15 lines
416 B

3 years ago
#!/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"
2 years ago
rm -f "$dir.zip"
( cd "$dir" ; zip -9r "../$dir.zip" . )