Files
build/tools
Tao Bao cb73aed1f0 releasetools: Refactor the condition checking for using imgdiff.
In Transfer class, unbundle 'intact' with the monotonicity of the input
ranges. Negate the logic of 'intact', and thus rename it to 'trimmed'.
Move this property from an attribute of Transfer class as the one in
RangeSet.extra. 'trimmed' indicates whether the source / target ranges
have been modified after creating the Transfer() instance.

The logic that determines whether we can apply imgdiff has been
refactored and consolidated into BlockImageDiff.CanUseImgdiff(). Now
both of the two paths call this single copy, i.e. the one that detects
large APKs (before creating Transfer()'s), and the other that's about to
generate the patch for a given Transfer instance.

Bug: 68016761
Test: python -m unittest test_blockimgdiff
Test: Generate an incremental BBOTA package.
Change-Id: Id07195f63f1fa6c3af6e9091940d251cf09fa104
2018-02-09 12:46:01 -08:00
..
2017-10-03 13:53:13 -07:00
2017-10-03 13:53:13 -07:00
2017-09-09 13:47:34 -07:00
2017-10-03 13:53:13 -07:00
2017-11-09 15:11:34 -08:00
2017-11-21 03:26:31 +00:00
2017-10-03 13:53:13 -07:00
2016-09-15 14:40:39 -07:00
2017-06-21 16:09:56 -07:00
2018-01-25 12:25:20 -08:00