]> git.otsuka.systems Git - onyx-boox-note-air2-plus-custom-fonts/commitdiff
magisk boilerplate
authorCameron Otsuka <cameron@otsuka.haus>
Tue, 31 Dec 2024 01:12:15 +0000 (17:12 -0800)
committerCameron Otsuka <cameron@otsuka.haus>
Tue, 31 Dec 2024 01:12:15 +0000 (17:12 -0800)
META-INF/com/google/android/update-binary [new file with mode: 0755]
META-INF/com/google/android/updater-script [new file with mode: 0755]
module.prop [new file with mode: 0644]

diff --git a/META-INF/com/google/android/update-binary b/META-INF/com/google/android/update-binary
new file mode 100755 (executable)
index 0000000..28b48e5
--- /dev/null
@@ -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 100755 (executable)
index 0000000..11d5c96
--- /dev/null
@@ -0,0 +1 @@
+#MAGISK
diff --git a/module.prop b/module.prop
new file mode 100644 (file)
index 0000000..c39c3d1
--- /dev/null
@@ -0,0 +1,6 @@
+id=onyx-boox-note-air2-plus-custom-fonts
+name=onyx-boox-note-air2-plus-custom-fonts
+version=1
+versionCode=1
+author=cotsuka
+description=Magisk module to add custom fonts for system-wise usage.