Fix survival script for AVB 1.0 signed boot image

This commit is contained in:
XiNGRZ 2018-06-19 22:05:44 +08:00 committed by John Wu
parent bfddef2671
commit 196f15d240

View File

@ -13,6 +13,7 @@
main() {
# Magisk binaries
MAGISKBIN=/data/adb/magisk
APK=/data/magisk.apk
mount /data 2>/dev/null
@ -42,6 +43,9 @@ main() {
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
ui_print "- Found boot image: $BOOTIMAGE"
eval $BOOTSIGNER -verify < $BOOTIMAGE && BOOTSIGNED=true
$BOOTSIGNED && ui_print "- Boot image is signed with AVB 1.0"
SOURCEDMODE=true
cd $MAGISKBIN