Go to file
Tao Bao 3eb353cdb0 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
(cherry picked from commit 406050bdb6)
2017-05-23 11:18:26 -07:00
core Add soong variable for PRODUCT_FULL_TREBLE. 2017-05-19 15:54:18 -07:00
target Generic AOSP system image for non-A/B arm devices 2017-05-19 09:29:21 +00:00
tests Add TARGET_PLATFORM_VERSION to lunch 2017-03-23 09:44:08 -07:00
tools Fix the symlink detection when signing TF.zip. 2017-05-23 11:18:26 -07:00
.gitignore Add build subprojects to .gitignore 2015-07-23 13:18:47 -07:00
Android.mk Add new Android.mk to handle repo move 2016-06-16 15:30:19 -07:00
CleanSpec.mk Support split /system and /vendor modules from Soong 2017-04-11 13:17:48 -07:00
buildspec.mk.default Add TARGET_PLATFORM_VERSION to lunch 2017-03-23 09:44:08 -07:00
envsetup.sh Merge "Small fixes for environment variables." am: fd0cb496b1 am: 37f3a728a0 2017-03-24 16:23:45 +00:00