Skip to content

Commit

Permalink
Fix survival script for AVB 1.0 signed boot image
Browse files Browse the repository at this point in the history
  • Loading branch information
xingrz authored and topjohnwu committed Jun 19, 2018
1 parent bfddef2 commit 196f15d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/addon.d.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
main() {
# Magisk binaries
MAGISKBIN=/data/adb/magisk
APK=/data/magisk.apk

mount /data 2>/dev/null

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 196f15d

Please sign in to comment.