This is a squash of the following:
Author: LuK1337 <priv.luk@gmail.com>
Date: Sun Sep 27 16:12:10 2020 +0200
wahoo: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
stdio.h will cause errors due to redefined macros.
Change-Id: I2f753a64f760b636be1325873e17697466fbf33d
Author: LuK1337 <priv.luk@gmail.com>
Date: Mon Sep 9 22:38:02 2019 +0200
wahoo: gpt-utils: Drop unnecessary include
* When using generated_kernel_headers including
asm/byteorder.h will cause a warning due to
unused static functions.
Change-Id: I2a74ec92487c13c4645048c96da8cb92b3cbd9f0
Author: Rashed Abdel-Tawab <rashed@linux.com>
Date: Sun Sep 29 15:37:38 2019 -0400
wahoo: Switch gpt-utils to generated_kernel_headers
Change-Id: Ia6e2f7e140e6ffbd3a93dd823f836aaf399d03fb
Change-Id: Ia1f608778b5b37fec770abbf185c5e313cd5ba16
When markBoolSuccessful is invoked, we update
the partition table. These writes should be
synced before merge operation is resumed post OTA.
If not, any crash before these writes are landed to
backing storage will lead to incorrect switching of
slots.
BUG: 175711601
Test: Verify slot switching correctly after crash when merge in progress
(on redbull)
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: I4d30342b44aaeb7a4fdc915cc1e53ffb20c17a2f
This commit replaces sparse_crc32() with crc32() from libz.so because
libsparse.so won't be vendor available.
Bug: 38303202
Test: android builds
Change-Id: Ib318da74b5d55f729cbd40d9a62da53e6316fe7b