From 0a712cce0d9c8a1ef23ed5a28d31c1d5d4fa6671 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Thu, 16 Jan 2020 01:20:48 -0400 Subject: AK3: add stderr hints for signing debugging --- tools/ak3-core.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') diff --git a/tools/ak3-core.sh b/tools/ak3-core.sh index 01e8236..9822a08 100755 --- a/tools/ak3-core.sh +++ b/tools/ak3-core.sh @@ -360,6 +360,7 @@ flash_boot() { cd $home; if [ -f "$bin/futility" -a -d "$bin/chromeos" ]; then if [ -f "$split_img/chromeos" ]; then + echo "Signing with CHROMEOS..." >&2; $bin/futility vbutil_kernel --pack boot-new-signed.img --keyblock $bin/chromeos/kernel.keyblock --signprivate $bin/chromeos/kernel_data_key.vbprivk --version 1 --vmlinuz boot-new.img --bootloader $bin/chromeos/empty --config $bin/chromeos/empty --arch arm --flags 0x1; fi; test $? != 0 && signfail=1; @@ -372,6 +373,7 @@ flash_boot() { *) avbtype=boot;; esac; if [ "$(/system/bin/dalvikvm -Xnoimage-dex2oat -cp $bin/BootSignature_Android.jar com.android.verity.BootSignature -verify boot.img 2>&1 | grep VALID)" ]; then + echo "Signing with AVBv1..." >&2; /system/bin/dalvikvm -Xnoimage-dex2oat -cp $bin/BootSignature_Android.jar com.android.verity.BootSignature /$avbtype boot-new.img $pk8 $cert boot-new-signed.img; fi; fi; -- cgit v1.2.3