summaryrefslogtreecommitdiff
path: root/scripts/payload_info.py
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-11-04 15:49:53 -0700
committerSen Jiang <senj@google.com>2018-05-10 22:28:51 +0000
commit51c264e33e6769f37d56a4f6aa28a4c2cc771e16 (patch)
tree030ac68f71c39b8c2e64556df3174e83c8455041 /scripts/payload_info.py
parent96e36724112591c8c08129c66a7ceeb35a3d934c (diff)
Recover source hash failures on SOURCE_COPY operations.
SOURCE_COPY operations may fail due to a mismatch in the source data read from the device and the expected hash of such data as specified in the operation. This means either a failure to read the source partition block device or corrupt data on the source partition. A device in this state may continue to work even with a corrupt source partition if the corrupt block has not be accessed or if the error correction data stored with the verity metadata is able to correct that block. This patch attempts to use libfec to parse the error-correction data and correct the corrupt blocks when the source hash mismatches in SOURCE_COPY operations. Bug: 34284069 Test: Added unittests to the error-correction fallback logic. Change-Id: I9400405071de0d124ab3330c335b8ab87e60532e
Diffstat (limited to 'scripts/payload_info.py')
0 files changed, 0 insertions, 0 deletions