2
0
mirror of https://github.com/topjohnwu/Magisk synced 2025-09-04 08:45:13 +00:00

signing: fixes for bootimg hdr_v1 and hdr_v2

- increase SignBoot bootimg header version maximum from 4 to 8 (upstream AOSP is already at 3) and make a variable for future ease
- hdr read size of 1024 bytes was too small as hdr_v1 and hdr_v2 have increased the used header page areas to 1632 and 1648 bytes, respectively, so raise this to the minimum page size of 2048 and also make a variable for future ease
- do not return "not signed" for all caught exceptions, show StackTrace for future debugging then still return false for script purposes
- correct "test keys" boot image signing strings (scripts and app) to "verity keys"
This commit is contained in:
osm0sis
2019-11-02 00:26:53 -03:00
committed by John Wu
parent 6dd34aec47
commit c85b1c56af
3 changed files with 15 additions and 8 deletions

View File

@@ -256,7 +256,7 @@ flash_image() {
esac
if $BOOTSIGNED; then
CMD2="$BOOTSIGNER -sign"
ui_print "- Sign image with test keys"
ui_print "- Sign image with verity keys"
else
CMD2="cat -"
fi