mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-07-28 13:03:38 +00:00
Skip avb 1,0 verify if tail contains avb 2.0 header
This way, magiskboot will not print "unexpected ASN.1 DER tag: expected SEQUENCE, got APPLICATION [1] (primitive)".
This commit is contained in:
parent
cd9851a1fe
commit
a54bdb54e4
@ -523,10 +523,8 @@ bool boot_img::parse_image(const uint8_t *p, FileFormat type) {
|
|||||||
} else if (tail.sz() >= 16 && BUFFER_MATCH(tail.buf(), LG_BUMP_MAGIC)) {
|
} else if (tail.sz() >= 16 && BUFFER_MATCH(tail.buf(), LG_BUMP_MAGIC)) {
|
||||||
fprintf(stderr, "LG_BUMP_IMAGE\n");
|
fprintf(stderr, "LG_BUMP_IMAGE\n");
|
||||||
flags[LG_BUMP_FLAG] = true;
|
flags[LG_BUMP_FLAG] = true;
|
||||||
}
|
} else if (!(tail.sz() >= 4 && BUFFER_MATCH(tail.buf(), AVB_MAGIC)) && verify()) {
|
||||||
|
// Check if the image is avb 1.0 signed
|
||||||
// Check if the image is signed
|
|
||||||
if (verify()) {
|
|
||||||
fprintf(stderr, "AVB1_SIGNED\n");
|
fprintf(stderr, "AVB1_SIGNED\n");
|
||||||
flags[AVB1_SIGNED_FLAG] = true;
|
flags[AVB1_SIGNED_FLAG] = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user