AK2: add DHTB signed image support
- add built-in support for dhtbsign for Samsung/Spreadtrum board devices signature header (see: https://github.com/osm0sis/dhtbsign)
This commit is contained in:
1 parent
1787580bf9
commit
d60281c8b2
1 file changed
+5
-1
+5
-1
@@ -226,7 +226,11 @@ write_boot() {
|
||||
fi;
|
||||
fi;
|
||||
if [ "$(strings /tmp/anykernel/boot.img | grep SEANDROIDENFORCE )" ]; then
|
||||
printf 'SEANDROIDENFORCE' >> /tmp/anykernel/boot-new.img;
|
||||
printf 'SEANDROIDENFORCE' >> boot-new.img;
|
||||
fi;
|
||||
if [ -f "$bin/dhtbsign" ]; then
|
||||
$bin/dhtbsign -i boot-new.img -o boot-new-signed.img;
|
||||
mv -f boot-new-signed.img boot-new.img;
|
||||
fi;
|
||||
if [ -f "$bin/flash_erase" -a -f "$bin/nandwrite" ]; then
|
||||
$bin/flash_erase $block 0 0;
|
||||
|
||||
Reference in new issue
Block a user