diff options
author | Huang Jianan <huangjianan@oppo.com> | 2021-08-02 15:00:02 +0800 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 190df0bdb26adbc7f654e8945e54180ed0e901e3 (patch) | |
tree | 885a3499f06bdcfeb6299c2a21f2712ef3b82fff /apexd/apex_file.cpp | |
parent | 81b8907194b55146d7e1a10b824d0202dddaa62f (diff) |
Add EROFS support for APEXHEADlineage-18.1
Bug: 195274797
Test: ./apxer/runtests.sh
Change-Id: I19019d2809496bfc37eca1964e58a4e04d8bbbe7
Signed-off-by: Huang Jianan <huangjianan@oppo.com>
Diffstat (limited to 'apexd/apex_file.cpp')
-rw-r--r-- | apexd/apex_file.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apexd/apex_file.cpp b/apexd/apex_file.cpp index abcda7d..212b295 100644 --- a/apexd/apex_file.cpp +++ b/apexd/apex_file.cpp @@ -60,7 +60,8 @@ struct FsMagic { const char* magic; }; constexpr const FsMagic kFsType[] = {{"f2fs", 1024, 4, "\x10\x20\xf5\xf2"}, - {"ext4", 1024 + 0x38, 2, "\123\357"}}; + {"ext4", 1024 + 0x38, 2, "\123\357"}, + {"erofs", 1024, 4, "\xe2\xe1\xf5\xe0"}}; Result<std::string> RetrieveFsType(borrowed_fd fd, int32_t image_offset) { for (const auto& fs : kFsType) { |