commit | 5667feb0ac8c2efa6c46aff171e2768245978ed1 | [log] [tgz] |
---|---|---|
author | Alessandro Astone <ales.astone@gmail.com> | Sat May 04 20:06:48 2019 +0200 |
committer | bigbiff <bigbiff@teamw.in> | Sun Dec 22 21:20:48 2019 +0000 |
tree | e38aca4b65617095b0e2eb6c330e0903c44f4df7 | |
parent | 7ec5fd9e6d413860c8ecf68e5d14111f8e12e434 [diff] |
recovery: wipe bootloader message from index 0 when using custom offsets * We may use a custom offset to: a) preserve data that oem wrote to the first bytes of misc b) skip recovery flags written by the bootloader (e.g. --wipe_data) For case a) one should set the offset 'x' to be at least greater than the size of bootloader_message struct (2048 bytes). If this is the case, then we zero out bytes x ~ x + 2047 For case b) one should set the offset to be strictly smaller than the size of bootloader_message struct. If this is the case, then we zero out bytes 0 ~ 2047. This allows to clear any additional flag set by the bootloader, that would otherwise be forgotten in misc. This also guarantees that we do not involountarily wipe any data that the oem may have written starting at byte 2048 (coff coff LG) Change-Id: I2d4e0702a2d8cbbef6274a87ce9499b0f69310dd
Team Win Recovery Project (TWRP)
You can find a compiling guide here.