platform_build/tools
Kelvin Zhang 25ab998d82 Fix a bug in computing streaming property of payload.bin
When computing the data offset of an entry in zip file, we used length
of extra field from central directory. That is correct most of the time
but wrong if the extra field in central directory has different length
than the one in local file directory. Since python's zipfile doesn't
provide an API to access local file header, we need to parse local file
header ourselves and extract length of extra field.

An incorrect offset will cause magic mismatch error from update_engine,
as update_engine expects to find uncompressed payload at the recorded
offset.

Test: th, partner verification
Bug: 191443484

Change-Id: Id670cd79b0bd65adffaaa5224ae4f8065d66b358
2021-07-28 11:40:18 -04:00
..
acp [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
apicheck [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
atree [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
docker
droiddoc [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
fs_config fs_config reads headers from snapshots, if available 2021-07-13 11:42:18 +09:00
fs_get_stats [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
libhost [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
product_config ALLOW_RULES_IN_PRODUCT_CONFIG 2021-02-23 22:40:39 -08:00
rbcrun Always use /bin/sh to run the command. 2021-04-01 16:44:47 -07:00
releasetools Fix a bug in computing streaming property of payload.bin 2021-07-28 11:40:18 -04:00
signapk signapk: --align-file-size flag 2021-07-21 00:19:07 +00:00
signtos [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
warn Add one more Java warning pattern 2021-06-10 14:33:54 -07:00
zipalign zipalign: use getopt 2021-07-17 07:19:09 +09:00
ziptime [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
Android.bp [LSC] Add LOCAL_LICENSE_KINDS to build/make 2021-02-14 10:37:20 -08:00
auto_gen_test_config.py Update auto-gen test config template with PARAMETERIZED_STRINGS 2020-05-18 09:58:18 +08:00
auto_gen_test_config_test.py
brillo-clang-format
build-license-metadata.sh Fix bug: repeated restricted effective conditions. 2021-04-15 10:59:40 -07:00
buildinfo.sh Don't set the build id if we need to append the digest 2021-05-06 00:32:56 +00:00
check_elf_file.py Merge changes from topic "exclude-system-shared-libs-from-elfcheck-suggestions" 2020-09-28 03:54:27 +00:00
check_identical_lib.sh Add more details to divergent vndk lib error. 2020-08-06 18:02:31 +00:00
check_radio_versions.py
checkowners.py
compare_builds.py Add tool to find problems with build repeatability. 2021-02-11 08:52:44 +00:00
compare_fileslist.py
event_log_tags.py logtags: Support # line comments. 2019-11-29 15:28:48 +00:00
exercise_compare_builds Add tool to find problems with build repeatability. 2021-02-11 08:52:44 +00:00
extract_kernel.py extract_kernel: make it py2/py3 compatible 2021-02-07 17:05:53 +08:00
fat16copy.py
fileslist_util.py
filter-product-graph.py
findleaves.py
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py
generate-notice-files.py Fix bug: include all dirs not just the last one. 2021-04-13 13:14:13 -07:00
generate-self-extracting-archive.py Fix comment to reflect that the value passed to head is actually the size 2019-12-06 19:13:21 -08:00
java-event-log-tags.py
java-layers.py
merge-event-log-tags.py
mk2bp_catalog.py Add CSV output of remaining makefiles for bp converstion 2020-09-10 14:09:29 -07:00
normalize_path.py
OWNERS
parsedeps.py
post_process_props.py Remove grf_required_api_level 2021-04-13 17:58:59 +09:00
post_process_props_unittest.xml Support optional prop assignments 2020-06-30 18:44:01 +09:00
print_module_licenses.sh
product_debug.py
soong_to_convert.py Add mk2bp_catalog.py that outputs more data about makefiles to be converted to soong. 2020-07-16 18:19:15 -07:00
test_extract_kernel.py extract_kernel: make it py2/py3 compatible 2021-02-07 17:05:53 +08:00
test_post_process_props.py Remove grf_required_api_level 2021-04-13 17:58:59 +09:00
warn.py Fix/suppress most pylint and gpylint warnings 2021-04-28 14:57:56 -07:00