Only run bootsigner on Android 5.0+

Close #2712
This commit is contained in:
topjohnwu 2020-04-20 22:12:14 -07:00
parent 554ebe7206
commit 44b7a3c3f1

View File

@ -438,8 +438,10 @@ install_magisk() {
BOOTIMAGE=boot.img
fi
if [ $API -ge 21 ]; then
eval $BOOTSIGNER -verify < $BOOTIMAGE && BOOTSIGNED=true
$BOOTSIGNED && ui_print "- Boot image is signed with AVB 1.0"
fi
$IS64BIT && mv -f magiskinit64 magiskinit 2>/dev/null || rm -f magiskinit64