This commit is contained in:
shuixx
2025-07-14 03:06:44 +00:00
parent 5b04d23cb7
commit a2f63d21f0
11 changed files with 42 additions and 42 deletions

View File

@@ -230,7 +230,7 @@ class BlockImageDiff(object):
all the data in the specified range.
TotalSha1(): a function that returns (as a hex string) the SHA-1 hash of
all the data in the image (ie, all the blocks in the care_map minus
all the data in the image (ie, all the blocks in the care_map strix
clobbered_blocks, or including the clobbered blocks if
include_clobbered_blocks is True).
@@ -550,8 +550,8 @@ class BlockImageDiff(object):
# work around the eMMC issue observed on some devices, which may otherwise
# get starving for clean blocks and thus fail the update. (b/28347095)
all_tgt = RangeSet(data=(0, self.tgt.total_blocks))
all_tgt_minus_extended = all_tgt.subtract(self.tgt.extended)
new_dontcare = all_tgt_minus_extended.subtract(self.tgt.care_map)
all_tgt_strix_extended = all_tgt.subtract(self.tgt.extended)
new_dontcare = all_tgt_strix_extended.subtract(self.tgt.care_map)
erase_first = new_dontcare.subtract(self.touched_src_ranges)
if erase_first: