Skip to content

Commit

Permalink
add files required by Magisk
Browse files Browse the repository at this point in the history
  • Loading branch information
tehcneko committed Aug 7, 2024
1 parent 4db0bd9 commit ec54d43
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 19 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/build.sh

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Run a one-line script
env:
USER_AGENT: ${{ secrets.USER_AGENT }}
run: .github/workflows/build.sh

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
Expand Down
29 changes: 29 additions & 0 deletions module/META-INF/com/google/android/update-binary
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#################
# 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

[ -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
1 change: 1 addition & 0 deletions module/META-INF/com/google/android/updater-script
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#MAGISK
1 change: 0 additions & 1 deletion module/system/product/priv-app/MIUIEsimLPA/.gitignore

This file was deleted.

Binary file not shown.

0 comments on commit ec54d43

Please sign in to comment.