+21
−14
+104
−0
fs_mgr/liblp/liblp_test.xml
deleted100644 → 0
+0
−26
fs_mgr/liblp/super_layout_builder.cpp
0 → 100644
+241
−0
+141
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This class helps export a list of regions comprising a super partition, and what the contents of those regions should be. It is very similar to ImageBuilder, except that it does not require actual partition image files, nor does it actually write an image file to disk. The goal is to support building an in-memory super image that uses as little memory and backing storage as possible. For example, fastboot can use this to upload a super image without having to read and write gigabytes of unnecessary data. Since the goal is to optimize fastboot, we've taken some shortcuts here. Retrofit devices and other edge-casey behavior are safely rejected. We also don't rely on libsparse behavior here, and attempt to make the translation to sparse records as trivial as possible, by explicitly declaring where fill/dontcare gaps are, and only exporting 4KB aligned regions. Hopefully this will allow the code to be portable to non-fastboot consumers. Bug: 266982466 Test: liblp_test Change-Id: I1b41d233bc4512c4b62e19603e8e77bc5867cfab