2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-08-31 04:05:12 +00:00

Add recommend KEEPVERITY and KEEPFORCEENCRYPT flags

This commit is contained in:
topjohnwu
2017-12-21 15:42:03 +08:00
parent a3c49de6a5
commit f7b4935677
5 changed files with 24 additions and 10 deletions

View File

@@ -113,6 +113,13 @@ $BOOTMODE || recovery_actions
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
ui_print "- Found boot image: $BOOTIMAGE"
find_dtbo_image
if [ ! -z $DTBOIMAGE ]; then
ui_print "- Found dtbo image: $DTBOIMAGE"
# Disable dtbo patch by default
[ -z $KEEPVERITY ] && KEEPVERITY=true
fi
eval $BOOTSIGNER -verify < $BOOTIMAGE && BOOTSIGNED=true
$BOOTSIGNED && ui_print "- Signed boot image detected"