magisk: Prevent installation on Android 7.x and older

Android 7.x lacks the InMemoryDexClassLoader API, which is necessary for
the module to load Java code, and is unlikely to support hardware
attestation on any production devices anyway.

Fixes #124, #127
This commit is contained in:
Danny Lin 2021-12-21 16:22:38 -08:00
parent 296dc42777
commit 12f9cbca26
No known key found for this signature in database
GPG Key ID: 1988FAA1797EE5AC

View File

@ -33,6 +33,11 @@ else
ui_print "- Device platform: $ARCH"
fi
# Check Android version
if [[ "$(getprop ro.build.version.sdk)" -lt 26 ]]; then
abort "! This module only supports Android 8.0 and newer."
fi
# Extract libs
ui_print "- Extracting module files"