-
-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
magisk: Allow limited installation on Android 7 and older
Key attestation was introduced in Android 7.0, but Android 7.x doesn't have InMemoryDexClassLoader so our Zygisk module is incompatible. In general, users on such old versions of Android don't need to bypass hardware-backed attestation (which isn't even applicable on Android 6 and older), so allow them to install the module without the Zygisk part. Closes #156.
- Loading branch information
Showing
1 changed file
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,13 @@ | |
|
||
# 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." | ||
ui_print "" | ||
ui_print "Functionality is limited on Android 7 and older." | ||
ui_print "Hardware-backed attestation will not be disabled." | ||
ui_print "" | ||
|
||
# Abort install and clean up | ||
rm -fr "$TMPDIR" "$MODPATH" | ||
exit 1 | ||
# Remove Zygisk module, but keep props and scripts | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
kdrag0n
Author
Owner
|
||
rm -fr "$MODPATH/zygisk" | ||
fi | ||
|
||
chmod 755 "$MODPATH/service.sh" "$MODPATH/post-fs-data.sh" |
Should
post-fs-data.sh
be kept?https://github.com/kdrag0n/safetynet-fix/blob/master/magisk/post-fs-data.sh#L5