Skip to content

Commit 89cff6a

Browse files
committed
Use Magisk 22.0.
Works when (temporarily) working around the broken 64-bit detection, cf. topjohnwu/Magisk#3961.
1 parent e904fa5 commit 89cff6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install-magisk

+5-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ readonly LOADER_BUILD_DIR="$(dirname "$(readlink -f "$0")")" # script directory
1111
readonly SCRIPT_TMP_PATH="/data/local/tmp/magiskinstall-tmp"
1212

1313
# Magisk version and URL. URL may be overriden from $1.
14-
readonly MAGISK_VERSION="21.4"
15-
readonly MAGISK_URL="${1:-https://github.com/topjohnwu/Magisk/releases/download/v${MAGISK_VERSION}/Magisk-v${MAGISK_VERSION}.zip}"
14+
readonly MAGISK_VERSION="22.0"
15+
readonly MAGISK_URL="${1:-https://github.com/topjohnwu/Magisk/releases/download/v${MAGISK_VERSION}/Magisk-v${MAGISK_VERSION}.apk}"
1616

1717
# boot, recovery and recoveryB partitions. boot is backed up to recoveryB before patching, whose
1818
# content should match recovery.
@@ -164,6 +164,9 @@ else
164164
fi
165165
unzip -d "$tmp/m" "$tmp/Magisk.zip"
166166

167+
echo "Patching boot_patch.sh..." # https://github.com/topjohnwu/Magisk/issues/3961
168+
find "$tmp/m" -name boot_patch.sh -exec sed -i.orig -re 's,/system/lib64,/system/XXXXXlib64XXXXX,g' {} \;
169+
167170
echo "Copying Magisk installer to device..."
168171
if echo "$MAGISK_URL" | grep -q 'apk$'; then
169172
adb push "$tmp/m/assets"/*.sh "$INSTALLER_DIR"

0 commit comments

Comments
 (0)