diff options
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r-- | filesystem/android_device.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go index 514fd2816..eb967ad06 100644 --- a/filesystem/android_device.go +++ b/filesystem/android_device.go @@ -454,6 +454,10 @@ func (a *androidDevice) copyMetadataToTargetZip(ctx android.ModuleContext, build abOtaKeysSorted := android.SortedUniqueStrings(a.deviceProps.Ab_ota_keys) abOtaKeysSortedString := proptools.ShellEscape(strings.Join(abOtaKeysSorted, "\\n")) builder.Command().Textf("echo -e").Flag(abOtaKeysSortedString).Textf(" > %s/META/otakeys.txt", targetFilesDir.String()) + // selinuxfc + if a.getFsInfos(ctx)["system"].SelinuxFc != nil { + builder.Command().Textf("cp").Input(a.getFsInfos(ctx)["system"].SelinuxFc).Textf(" %s/META/file_contexts.bin", targetFilesDir.String()) + } } } |