Commit 196f15d2 authored by XiNGRZ's avatar XiNGRZ Committed by John Wu

Fix survival script for AVB 1.0 signed boot image

parent bfddef26
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
main() { main() {
# Magisk binaries # Magisk binaries
MAGISKBIN=/data/adb/magisk MAGISKBIN=/data/adb/magisk
APK=/data/magisk.apk
mount /data 2>/dev/null mount /data 2>/dev/null
...@@ -42,6 +43,9 @@ main() { ...@@ -42,6 +43,9 @@ main() {
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image" [ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
ui_print "- Found boot image: $BOOTIMAGE" 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 SOURCEDMODE=true
cd $MAGISKBIN cd $MAGISKBIN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment