Skip to content

Commit

Permalink
magisk: Prevent installation on Android 7.x and older
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kdrag0n committed Dec 22, 2021
1 parent 296dc42 commit 12f9cbc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions riru/template/magisk_module/customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 12f9cbc

Please sign in to comment.