Skip to content

Commit

Permalink
Update to Zygisk API v4
Browse files Browse the repository at this point in the history
Skip checking magisk version on KernelSU or APatch
Close JingMatrix#44 as completed
  • Loading branch information
JingMatrix committed Sep 23, 2024
1 parent e50a3f3 commit ea2e1c8
Show file tree
Hide file tree
Showing 7 changed files with 403 additions and 331 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ Android 8.1 ~ 15 Beta 4

## Install

1. Install Magisk v24+
2. (For Riru flavor) Install [Riru](https://github.com/RikkaApps/Riru/releases/latest) v26.1.7+
3. [Download](#download) and install LSPosed in Magisk app
4. Reboot
5. Open LSPosed manager from notification
6. Have fun :)
1. Install Magisk v26+
2. [Download](#download) and install LSPosed in Magisk app
3. Reboot
4. Open LSPosed manager from notification
5. Have fun :)

## Download

Expand Down
2 changes: 1 addition & 1 deletion magisk-loader/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ fun afterEval() = android.applicationVariants.forEach { variant ->
"updateJson" to "https://raw.githubusercontent.com/JingMatrix/LSPosed/master/magisk-loader/update/${flavorLowered}.json",
"requirement" to when (flavorLowered) {
"riru" -> "Requires Riru $moduleMinRiruVersionName or above installed"
"zygisk" -> "Requires Magisk 24.0+ and Zygisk enabled"
"zygisk" -> "Requires Magisk 26.0+ and Zygisk enabled"
else -> "No further requirements"
},
"api" to flavorCapped,
Expand Down
4 changes: 3 additions & 1 deletion magisk-loader/magisk_module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ extract "$ZIPFILE" 'verify.sh' "$TMPDIR"
extract "$ZIPFILE" 'util_functions.sh' "$TMPDIR"
. "$TMPDIR/util_functions.sh"
check_android_version
check_magisk_version
if [ -z "$KSU" ] && [ -z "$APATCH" ]; then
check_magisk_version
fi
check_incompatible_module

if [ "$FLAVOR" == "riru" ]; then
Expand Down
4 changes: 2 additions & 2 deletions magisk-loader/magisk_module/util_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
check_magisk_version() {
ui_print "- Magisk version: $MAGISK_VER_CODE"
if [ "$FLAVOR" == "riru" ] || [ "$FLAVOR" == "zygisk" ]; then
if [ "$MAGISK_VER_CODE" -lt 24000 ]; then
if [ "$MAGISK_VER_CODE" -lt 26000 ]; then
ui_print "*********************************************************"
ui_print "! Please install Magisk v24+"
ui_print "! Please install Magisk v26+"
abort "*********************************************************"
fi
else
Expand Down
320 changes: 0 additions & 320 deletions magisk-loader/src/main/jni/api/zygisk.h

This file was deleted.

Loading

0 comments on commit ea2e1c8

Please sign in to comment.