commit | 1eb3ea37dcbad0265d5eac8c6cfc57fdcd2edc16 | [log] [tgz] |
---|---|---|
author | David Anderson <dvander@google.com> | Tue Aug 14 17:18:09 2018 -0700 |
committer | David Anderson <dvander@google.com> | Wed Aug 22 10:03:09 2018 -0700 |
tree | 85e9d08f8022bf4f9fb160ebfaaf58099d536e8a | |
parent | f1222908f4f1fab47a23f765944f6346206e9a0f [diff] |
liblp: Refactor ParseMetadata to read from non-descriptors. This is in preparation for "fastboot flash super", where we want to verify the validity of a super image before writing it. To do so, we need to parse the image from the download buffer, and it is useful to do this from memory rather than a file descriptor. Bug: 78793464 Test: liblp_test gtest Change-Id: I7fb1ef4fdf2e8f1d93aea38f75626157fcb4bfc1