Invert vbmeta header patching config

vbmeta header should not be patched in most cases
This commit is contained in:
topjohnwu
2021-12-14 04:52:15 -08:00
parent 56eb1a1cf9
commit f4ed6274a4
4 changed files with 8 additions and 8 deletions

View File

@@ -756,7 +756,7 @@ void repack(const char *src_img, const char *out_img, bool skip_comp) {
memcpy(footer, boot.avb_footer, sizeof(AvbFooter));
footer->original_image_size = __builtin_bswap64(off.total);
footer->vbmeta_offset = __builtin_bswap64(off.vbmeta);
if (!check_env("KEEPVBMETAFLAG")) {
if (check_env("PATCHVBMETAFLAG")) {
vbmeta->flags = __builtin_bswap32(3);
}
}