mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-08-26 09:37:43 +00:00
Invert vbmeta header patching config
vbmeta header should not be patched in most cases
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
@@ -35,8 +35,8 @@ Supported actions:
|
||||
If '-n' is provided, it will not attempt to recompress ramdisk.cpio,
|
||||
otherwise it will compress ramdisk.cpio and kernel with the same format
|
||||
as in <origbootimg> if the file provided is not already compressed.
|
||||
All disable flags will be set in the vbmeta header, unless env variable
|
||||
KEEPVBMETAFLAG is set to true.
|
||||
If env variable PATCHVBMETAFLAG is set to true, all disable flags will
|
||||
be set in the vbmeta header.
|
||||
|
||||
hexpatch <file> <hexpattern1> <hexpattern2>
|
||||
Search <hexpattern1> in <file>, and replace with <hexpattern2>
|
||||
|
Reference in New Issue
Block a user