mirror of
https://github.com/kdrag0n/safetynet-fix.git
synced 2024-11-02 02:26:36 +00:00
8ea2649fa0
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
13 lines
301 B
Bash
Executable File
13 lines
301 B
Bash
Executable File
#!/system/bin/sh
|
|
|
|
# Android 8.0 or newer
|
|
if [[ "$(getprop ro.build.version.sdk)" -lt 26 ]]; then
|
|
ui_print "This module only supports Android 8.0 and newer."
|
|
|
|
# Abort install and clean up
|
|
rm -fr "$TMPDIR" "$MODPATH"
|
|
exit 1
|
|
fi
|
|
|
|
chmod 755 "$MODPATH/service.sh" "$MODPATH/post-fs-data.sh"
|