platform_build/tools/releasetools
Tao Bao ffc9a30946 releasetools: Fix alignment issue when signing APEXes.
Previously it was following a wrong order by doing `zipalign` after
calling SignApk, which effectively compromised the signature. This CL
corrects the logic, and follows the same flow as in build system:
 - Pack APEX file;
 - `zipalign -f 4096`;
 - Call SignApk to sign the container with `-a 4096` flag.

Bug: 129148142
Test: Run sign_target_files_apks.py on taimen target_files.zip. Boot the
      image after signing.
Change-Id: I91bd3dce4f45c1891c5e122212a699f4808618fa
(cherry picked from commit 0e06cb0a8b)
2019-03-23 10:27:43 -07:00
..
testdata releasetools: Add apex_utils.py. 2019-03-15 22:08:42 -07:00
add_img_to_target_files
add_img_to_target_files.py Merge "Adds optional --rebuild_recovery flag to merge_target_files." 2019-03-19 21:32:28 +00:00
apex_utils.py releasetools: Add apex_utils.py. 2019-03-15 22:08:42 -07:00
blockimgdiff.py releasetools: Really allow removing partitions 2019-01-28 11:10:48 -08:00
build_image.py Moving system_other key into product.img 2019-03-20 16:18:11 +08:00
build_super_image.py Add supernod build target. 2019-03-13 11:15:21 -07:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures
check_target_files_signatures.py Revert^2 "releasetools: check_target_files_signatures.py checks APEXes." 2019-03-20 12:40:34 -07:00
common.py releasetools: Fix alignment issue when signing APEXes. 2019-03-23 10:27:43 -07:00
edify_generator.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -07:00
img_from_target_files
img_from_target_files.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
make_recovery_patch
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
merge_target_files.py Merge "Validates the config lists used by the script." 2019-03-19 23:56:25 +00:00
ota_from_target_files
ota_from_target_files.py releasetools: common.UnzipTemp() filters out non-matching patterns. 2019-03-20 12:38:09 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS releasetools: Update OWNERS. 2019-01-11 12:28:09 -08:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_target_files_apks
sign_target_files_apks.py releasetools: Fix alignment issue when signing APEXes. 2019-03-23 10:27:43 -07:00
sparse_img.py releasetools: Keep the original RangeSet for 'uses_shared_blocks' case. 2018-12-06 10:28:49 -08:00
target_files_diff.py Remove ro.expect.recovery_id 2019-01-28 10:56:37 -08:00
test_add_img_to_target_files.py Code improvement to adjusted the blocks size for care_map file 2019-02-13 18:34:50 +00:00
test_apex_utils.py releasetools: Add apex_utils.py. 2019-03-15 22:08:42 -07:00
test_blockimgdiff.py blockimgdiff: add a function to select and convert 'diff' to new 2018-12-19 20:21:25 -08:00
test_build_image.py build_image: improvements to right size for dynamic partitions 2018-10-23 15:14:00 -07:00
test_common.py releasetools: common.UnzipTemp() filters out non-matching patterns. 2019-03-20 12:38:09 -07:00
test_ota_from_target_files.py releasetools: Include retrofit info into package metadata. 2019-03-06 16:19:11 -08:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_target_files_apks.py releasetools: Allow skipping PRESIGNED APEXes. 2019-03-19 12:25:02 -07:00
test_utils.py releasetools: Log to stdout when running tests. 2018-10-18 15:05:49 -07:00
test_validate_target_files.py Check the completeness of original blocks during target files validation 2019-02-20 15:47:30 -08:00
test_verity_utils.py releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00
validate_target_files.py Check the completeness of original blocks during target files validation 2019-02-20 15:47:30 -08:00
verity_utils.py Merge "releasetools: Add tests for VerityImageBuilder." 2018-11-07 20:23:12 +00:00