From d5fd2bf4ab2a300c5c9b1431866ed40a8c7e72e2 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 19 Jun 2020 12:44:50 -0700 Subject: Initial commit. --- META-INF/com/google/android/update-binary | 23 +++++++++++++++++++++++ META-INF/com/google/android/updater-script | 1 + 2 files changed, 24 insertions(+) create mode 100755 META-INF/com/google/android/update-binary create mode 100755 META-INF/com/google/android/updater-script (limited to 'META-INF/com/google') diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary new file mode 100755 index 0000000..3d2e088 --- /dev/null +++ b/META-INF/com/google/android/update-binary @@ -0,0 +1,23 @@ +#!/system/bin/sh + +umask 022 + +OUTFD="$2" +ZIPFILE="$3" + +echo "OUTFD=$OUTFD" +echo "ZIPFILE=$ZIPFILE" + +ui_print() { echo "$*"; } + +set -x + +mount /data 2>/dev/null + +source /data/adb/magisk/util_functions.sh + +ui_print "Verifying that Magisk is new enough" +[ "$MAGISK_VER_CODE" -ge 20400 ] || exit 1 + +ui_print "Installing module" +install_module || exit 1 diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script new file mode 100755 index 0000000..11d5c96 --- /dev/null +++ b/META-INF/com/google/android/updater-script @@ -0,0 +1 @@ +#MAGISK -- cgit v1.2.3