21#include <unordered_map>
22#include <unordered_set>
25#include <liblp/liblp.h>
26#include <liblp/super_layout_builder.h>
36 bool AddPartition(
const std::string& partition,
const std::string& image_name,
bool optional);
42 bool WillFlash(
const std::string& partition)
const {
50 std::vector<android::fs_mgr::SuperImageExtent>
extents_;
54 std::unordered_map<std::string, android::base::unique_fd>
image_fds_;
Definition: super_flash_helper.h:30
std::unique_ptr< android::fs_mgr::LpMetadata > base_metadata_
Definition: super_flash_helper.h:49
SuperFlashHelper(const ImageSource &source)
Definition: super_flash_helper.cpp:27
const ImageSource & source_
Definition: super_flash_helper.h:47
bool IncludeInSuper(const std::string &partition)
Definition: super_flash_helper.cpp:39
bool WillFlash(const std::string &partition) const
Definition: super_flash_helper.h:42
SparsePtr GetSparseLayout()
Definition: super_flash_helper.cpp:73
std::unordered_set< std::string > will_flash_
Definition: super_flash_helper.h:55
std::unordered_map< std::string, android::base::unique_fd > image_fds_
Definition: super_flash_helper.h:54
bool Open(android::base::borrowed_fd fd)
Definition: super_flash_helper.cpp:29
std::vector< android::fs_mgr::SuperImageExtent > extents_
Definition: super_flash_helper.h:50
bool AddPartition(const std::string &partition, const std::string &image_name, bool optional)
Definition: super_flash_helper.cpp:43
android::fs_mgr::SuperLayoutBuilder builder_
Definition: super_flash_helper.h:48
std::unique_ptr< sparse_file, decltype(&sparse_file_destroy)> SparsePtr
Definition: util.h:30
Definition: unique_fd.h:292