platform_build/tools/releasetools
Tao Bao 406050bdb6 Fix the symlink detection when signing TF.zip.
We used to check for 'attr >> 16 == 0xa1ff' (i.e. 0o120777) to detect
symlinks in the input target_files zip (TF.zip). This becomes broken
after we switch to soong_zip, which packs symlinks with 0o120700.

This CL fixes the issue by using stat.S_ISLNK() instead.

Note that we don't need to stage the files with the exact permission
bits as in the input TF.zip. Because this part is covered by mkbootfs
by using the canned or the compiled-in fs_config - as long as the
files/directories are accessible and the symlinks are created.

Bug: 38455129
Test: sign_target_files_apks.py on bullhead TF.zip. Check the
      checksums in SYSTEM/bin/install-recovery.sh.
Change-Id: I51c1fc9a257fb3f18c16c2ed71528abaa6f7d9c9
2017-05-22 23:33:11 -07:00
..
add_img_to_target_files store images in target-files 2014-07-31 11:06:30 -07:00
add_img_to_target_files.py add dtbo support for ota 2017-05-12 17:50:46 -07:00
blockimgdiff.py releasetools: Add a verbose parameter to common.Run(). 2017-05-04 11:18:56 -07:00
build_image.py Add the option to reserve headroom for partition images. 2017-05-08 11:59:25 -07:00
check_ota_package_signature.py Change the default parameter values in common.MakeTempFile(). 2016-09-19 13:58:49 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py Revert "Revert "releasetools: Use pattern filter when unzipping."" 2017-03-05 13:11:42 -08:00
common.py releasetools: Add a verbose parameter to common.Run(). 2017-05-04 11:18:56 -07:00
edify_generator.py releasetools: Remove dead functions in EdifyGenerator. 2017-03-08 16:37:07 -08:00
img_from_target_files Allow to build the update.zip for emulator build. 2014-06-04 17:04:14 +00:00
img_from_target_files.py releasetools: Replace print stmt with print(). 2017-01-13 14:55:14 -08: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 OTA Tools: Handle password encrypted keys 2017-05-10 16:54:42 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
pylintrc Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py Fix the symlink detection when signing TF.zip. 2017-05-22 23:33:11 -07:00
sparse_img.py releasetools: Reduce memory footprint for BBOTA generation. 2017-03-06 08:46:30 -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_blockimgdiff.py Fix unittest for blockimgdiff 2017-03-24 16:28:16 -07:00
test_common.py Fix the permission setting in common.ZipWriteStr() 2015-05-20 13:29:03 -07:00
test_rangelib.py Analyze unchanged blocks in odex files. 2016-09-23 12:15:23 -07:00
validate_target_files.py releasetools: Add validate_target_files.py. 2017-04-05 09:04:13 -07:00