diff options
author | osm0sis <osm0sis@outlook.com> | 2020-01-16 01:20:48 -0400 |
---|---|---|
committer | osm0sis <osm0sis@outlook.com> | 2020-01-16 01:20:48 -0400 |
commit | 0a712cce0d9c8a1ef23ed5a28d31c1d5d4fa6671 (patch) | |
tree | e7ef3c8bd195009be17b3d46266f46c242d76fed | |
parent | 21ee68f5a8c1ea0db9af10e3c23e0c635112bb91 (diff) |
AK3: add stderr hints for signing debugging
-rwxr-xr-x | tools/ak3-core.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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; |