Merge pull request #88 from chenxiaolong/old_magisk

Drop support for Magisk versions <25102
This commit is contained in:
Andrew Gunnerson
2023-04-05 18:43:48 -04:00
committed by GitHub
+9 -4
View File
@@ -52,11 +52,16 @@ class MagiskRootPatch(BootImagePatch):
Root the boot image with Magisk.
'''
# Half-open intervals. Versions 25207 through 25210, which temporarily
# introduced the rules device stored in rdev major/minor form, are not
# supported.
# - Half-open intervals.
# - Versions <25102 are not supported because they're missing commit
# 1f8c063dc64806c4f7320ed66c785ff7bc116383, which would leave devices
# that use Android 13 GKIs unable to boot into recovery
# - Versions 25207 through 25210 are not supported because they used the
# RULESDEVICE config option, which stored the writable block device as an
# rdev major/minor pair, which was not consistent across reboots and was
# replaced by PREINITDEVICE
VERS_SUPPORTED = (
util.Range(22000, 25207),
util.Range(25102, 25207),
util.Range(25211, 26002),
)
VER_PREINIT_DEVICE = util.Range(25211, VERS_SUPPORTED[-1].end)