platform_build/tools/releasetools
Tao Bao 294651d7b4 releasetools: Add an ImgdiffStats class that reports imgdiff stats.
We have a couple of active imgdiff workarounds (and likely with one more
inbounding that allows having shared blocks in ext4 image). Most of
these workarounds need extending imgdiff's capability. While us not
getting there anytime soon, collect the stats to better understand the
impact of each kind so we can prioritize accordingly.

A sample report is as follows.

  Imgdiff Stats Report
========================

 APK files diff'd with imgdiff (count: 88)
-------------------------------------------

  /system/priv-app/Shell/Shell.apk
  ...

 Large APK files split and diff'd with imgdiff (count: 4)
----------------------------------------------------------

  /system/priv-app/Settings/Settings.apk
  ...

Bug: 68016761
Test: Generate an incremental BBOTA package. Check the stats report.
Test: python -m unittest test_blockimgdiff
Change-Id: I27ad862cde472ab2806db877632ce5a0607420f2
2018-02-09 23:02:32 -08:00
..
testdata releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
add_img_to_target_files
add_img_to_target_files.py releasetools: Move the AVB salt setup into common.LoadInfoDict(). 2018-01-31 12:25:10 -08:00
blockimgdiff.py releasetools: Add an ImgdiffStats class that reports imgdiff stats. 2018-02-09 23:02:32 -08:00
build_image.py Support /product partition 2018-01-25 09:33:58 +09:00
check_ota_package_signature.py releasetools: Capture stderr output when calling delta_generator. 2018-02-05 23:39:23 -08:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Add a note for the ZipInfo._decodeExtra() workaround. 2018-01-17 10:10:00 -08:00
common.py releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
edify_generator.py releasetools: Add a BuildInfo class. 2018-01-09 15:08:23 -08:00
img_from_target_files
img_from_target_files.py Remove the obsolete logic in img_from_target_files.py. 2017-05-31 11:17:56 -07:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py releasetools: Support packaging secondary payload. 2018-02-05 13:28:52 -08:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00
pylintrc releasetools: Remove deprecated pylint options. 2017-12-04 12:15:23 -08:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
sparse_img.py Protect SparseImage._GetRangeData() with lock 2018-01-29 11:52:10 -08:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_add_img_to_target_files.py releasetools: Refactor AddImagesToTargetFiles(). 2018-01-18 23:37:23 -08:00
test_blockimgdiff.py releasetools: Add an ImgdiffStats class that reports imgdiff stats. 2018-02-09 23:02:32 -08:00
test_build_image.py releasetools: Move assertions into CheckHeadroom(). 2018-01-03 11:52:16 -08:00
test_common.py releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
test_ota_from_target_files.py releasetools: Support packaging secondary payload. 2018-02-05 13:28:52 -08:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
test_sign_target_files_apks.py releasetools: Clean up ReplaceVerityKeyId and add tests. 2018-01-02 12:29:31 -08:00
test_utils.py releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
validate_target_files.py releasetools: Detect incomplete block ranges. 2018-02-01 12:35:48 -08:00