summaryrefslogtreecommitdiff
path: root/META-INF/com
diff options
context:
space:
mode:
Diffstat (limited to 'META-INF/com')
-rwxr-xr-xMETA-INF/com/google/android/update-binary23
-rwxr-xr-xMETA-INF/com/google/android/updater-script1
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
3umask 022
4
5OUTFD="$2"
6ZIPFILE="$3"
7
8echo "OUTFD=$OUTFD"
9echo "ZIPFILE=$ZIPFILE"
10
11ui_print() { echo "$*"; }
12
13set -x
14
15mount /data 2>/dev/null
16
17source /data/adb/magisk/util_functions.sh
18
19ui_print "Verifying that Magisk is new enough"
20[ "$MAGISK_VER_CODE" -ge 20400 ] || exit 1
21
22ui_print "Installing module"
23install_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