mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-10-04 13:49:51 +00:00
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:
parent
296dc42777
commit
12f9cbca26
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user