From b72155d3a28f5b5ebf3a89414fd43cac46a16533 Mon Sep 17 00:00:00 2001 From: osm0sis Date: Thu, 4 May 2017 17:20:05 -0300 Subject: [PATCH] AK2: add SignBlob support - add built-in support for blobpack for Asus SignBlob devices (see https://github.com/AndroidRoot/BlobTools) --- tools/ak2-core.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/ak2-core.sh b/tools/ak2-core.sh index 97d71bf..0b7de80 100755 --- a/tools/ak2-core.sh +++ b/tools/ak2-core.sh @@ -150,6 +150,12 @@ write_boot() { fi; mv -f boot-new-signed.img boot-new.img; fi; + if [ -f "$bin/blobpack" ]; then + printf '-SIGNED-BY-SIGNBLOB-\00\00\00\00\00\00\00\00' > boot-new-signed.img; + $bin/blobpack tempblob LNX boot-new.img; + cat tempblob >> boot-new-signed.img; + mv -f boot-new-signed.img boot-new.img; + fi; if [ -f "/data/custom_boot_image_patch.sh" ]; then ash /data/custom_boot_image_patch.sh /tmp/anykernel/boot-new.img; if [ $? != 0 ]; then