diff options
| author | Julian Blake Kongslie | 2020-05-23 20:04:45 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2020-05-23 22:39:54 -0700 |
| commit | bcc5f7eb90feccd1e4b1d2058ea5205bcccf450c (patch) | |
| tree | a519bb8efbebee1f065d902de18af406183176b6 /META-INF/com/google/android | |
| download | magisk-ssh-bcc5f7eb90feccd1e4b1d2058ea5205bcccf450c.tar.xz | |
Initial commit.
Diffstat (limited to '')
| -rwxr-xr-x | META-INF/com/google/android/update-binary | 23 | ||||
| -rwxr-xr-x | META-INF/com/google/android/updater-script | 1 |
2 files changed, 24 insertions, 0 deletions
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 @@ | |||
| 1 | #!/system/bin/sh | ||
| 2 | |||
| 3 | umask 022 | ||
| 4 | |||
| 5 | OUTFD="$2" | ||
| 6 | ZIPFILE="$3" | ||
| 7 | |||
| 8 | echo "OUTFD=$OUTFD" | ||
| 9 | echo "ZIPFILE=$ZIPFILE" | ||
| 10 | |||
| 11 | ui_print() { echo "$*"; } | ||
| 12 | |||
| 13 | set -x | ||
| 14 | |||
| 15 | mount /data 2>/dev/null | ||
| 16 | |||
| 17 | source /data/adb/magisk/util_functions.sh | ||
| 18 | |||
| 19 | ui_print "Verifying that Magisk is new enough" | ||
| 20 | [ "$MAGISK_VER_CODE" -ge 20400 ] || exit 1 | ||
| 21 | |||
| 22 | ui_print "Installing module" | ||
| 23 | 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 | |||
