commit | 7f8c2a8db9f9383313ef55bfc586b8c5975f1881 | [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 | 5ff75452ff71f65e4c01c9156b02080976630e46 [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