• Tao Bao's avatar
    Pack file_contexts into target_files zip. · aa7318c3
    Tao Bao authored
    file_contexts (specified by SELINUX_FC) is needed both when building
    and (re)packaging. We used to use the copy in out/ when building, and
    looked for the copy in BOOT/RAMDISK/ when packaging from target_files
    zip. With system_root_image enabled, the file_contexts needed for
    building and packaging might be different from the one on device. So
    we explicitly pack the file as META/file_contexts in target_files zip.
    
    Also refactor out the overriding of selinux_fc property into
    common.LoadInfoDict().
    
    Change-Id: I0781a147319148c76d989d8f29d5ef766a502dbd
    aa7318c3
img_from_target_files.py 4.03 KB