summaryrefslogtreecommitdiff
path: root/filesystem
diff options
context:
space:
mode:
author Spandan Das <spandandas@google.com> 2025-02-13 14:39:04 -0800
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2025-02-13 14:39:04 -0800
commit5fb06582f698f8bfbb71b5c83d5a529d83a1e94c (patch)
tree90e42cd0fa6e7a05ccc936a0bd43d3eab3e38bd9 /filesystem
parent5deabc3a24904e0af210b190b75528da8d5bdf29 (diff)
parent0094807f15d345435811f40687d11e87e182c4d5 (diff)
Merge "Add Ab_ota_postinstall_config prop to android_device" into main
Diffstat (limited to 'filesystem')
-rw-r--r--filesystem/android_device.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go
index eb967ad06..62c86580a 100644
--- a/filesystem/android_device.go
+++ b/filesystem/android_device.go
@@ -70,9 +70,10 @@ type DeviceProperties struct {
// blueprint:"mutated" and still set it from filesystem_creator
Main_device *bool
- Ab_ota_updater *bool
- Ab_ota_partitions []string
- Ab_ota_keys []string
+ Ab_ota_updater *bool
+ Ab_ota_partitions []string
+ Ab_ota_keys []string
+ Ab_ota_postinstall_config []string
}
type androidDevice struct {
@@ -454,6 +455,9 @@ 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())
+ // postinstall_config.txt
+ abOtaPostInstallConfigString := proptools.ShellEscape(strings.Join(a.deviceProps.Ab_ota_postinstall_config, "\\n"))
+ builder.Command().Textf("echo -e").Flag(abOtaPostInstallConfigString).Textf(" > %s/META/postinstall_config.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())