summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Tao Bao <tbao@google.com> 2019-05-08 15:14:35 -0700
committer android-build-merger <android-build-merger@google.com> 2019-05-08 15:14:35 -0700
commitdf24a30b5d282ceed4dac4114c0413d657610766 (patch)
tree78089822a54364961371b40da602455c78dcf287
parent1c87bffec6142d3a809f9f5d69c6a1891c7a4ba6 (diff)
parent45f74b104b0b02c673a0d60d0bbf8767bc9e35c1 (diff)
Merge "releasetools: Update the comments regarding selinux_fc."
am: 45f74b104b Change-Id: I570d584f8eadcfacfc4a91470137e2c4f080d9df
-rw-r--r--tools/releasetools/common.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/releasetools/common.py b/tools/releasetools/common.py
index 495fec30b9..e6422978d2 100644
--- a/tools/releasetools/common.py
+++ b/tools/releasetools/common.py
@@ -332,10 +332,8 @@ def LoadInfoDict(input_file, repacking=False):
raise ValueError("Failed to find 'fstab_version'")
if repacking:
- # We carry a copy of file_contexts.bin under META/. If not available, search
- # BOOT/RAMDISK/. Note that sometimes we may need a different file to build
- # images than the one running on device, in that case, we must have the one
- # for image generation copied to META/.
+ # "selinux_fc" should point to the file_contexts file (file_contexts.bin)
+ # under META/.
fc_basename = os.path.basename(d.get("selinux_fc", "file_contexts"))
fc_config = os.path.join(input_file, "META", fc_basename)
assert os.path.exists(fc_config)