aboutsummaryrefslogtreecommitdiffstats
path: root/META-INF/com/google
diff options
context:
space:
mode:
authorLeonard Kugis <leonard@kug.is>2025-09-16 18:56:22 +0000
committerLeonard Kugis <leonard@kug.is>2025-09-16 18:56:22 +0000
commitd25d1ac9e53b3333944ef4e18795cf1354c179f0 (patch)
tree3c56294e1c7ed460a72ded4c7fbca0832897be68 /META-INF/com/google
downloadmagisk-fstab-d25d1ac9e53b3333944ef4e18795cf1354c179f0.tar.gz
Initial commit
Diffstat (limited to 'META-INF/com/google')
-rw-r--r--META-INF/com/google/android/update-binary33
-rw-r--r--META-INF/com/google/android/updater-script1
2 files changed, 34 insertions, 0 deletions
diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
new file mode 100644
index 0000000..28b48e5
--- /dev/null
+++ b/META-INF/com/google/android/update-binary
@@ -0,0 +1,33 @@
+#!/sbin/sh
+
+#################
+# Initialization
+#################
+
+umask 022
+
+# echo before loading util_functions
+ui_print() { echo "$1"; }
+
+require_new_magisk() {
+ ui_print "*******************************"
+ ui_print " Please install Magisk v20.4+! "
+ ui_print "*******************************"
+ exit 1
+}
+
+#########################
+# Load util_functions.sh
+#########################
+
+OUTFD=$2
+ZIPFILE=$3
+
+mount /data 2>/dev/null
+
+[ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk
+. /data/adb/magisk/util_functions.sh
+[ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk
+
+install_module
+exit 0
diff --git a/META-INF/com/google/android/updater-script b/META-INF/com/google/android/updater-script
new file mode 100644
index 0000000..11d5c96
--- /dev/null
+++ b/META-INF/com/google/android/updater-script
@@ -0,0 +1 @@
+#MAGISK