diff options
author | 2025-02-12 19:36:03 +0000 | |
---|---|---|
committer | 2025-02-12 21:36:46 +0000 | |
commit | 35b7874f19b6fd5610a16997ad5e0afa871eaf24 (patch) | |
tree | dac9e8de6a2432201f94cba7c45ea54d5e175616 /filesystem/android_device.go | |
parent | b5f40cf0b646a1e1868a05dfb4f8d98bcd19dd0e (diff) |
Add ab_ota_keys prop to android_device
This will be populated with PRODUCT_OTA_PUBLIC_KEYS for now.
It will be used to generate otakeys.txt file in
target_files.zip
Test: Built soong target_files.zip locally
Bug: 388633394
Change-Id: If10e0f6a7fcd55239e87dffa92341ed8c31d17cc
Diffstat (limited to 'filesystem/android_device.go')
-rw-r--r-- | filesystem/android_device.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/filesystem/android_device.go b/filesystem/android_device.go index d42927a6e..514fd2816 100644 --- a/filesystem/android_device.go +++ b/filesystem/android_device.go @@ -72,6 +72,7 @@ type DeviceProperties struct { Ab_ota_updater *bool Ab_ota_partitions []string + Ab_ota_keys []string } type androidDevice struct { @@ -449,6 +450,10 @@ func (a *androidDevice) copyMetadataToTargetZip(ctx android.ModuleContext, build abPartitionsSorted := android.SortedUniqueStrings(a.deviceProps.Ab_ota_partitions) abPartitionsSortedString := proptools.ShellEscape(strings.Join(abPartitionsSorted, "\\n")) builder.Command().Textf("echo -e").Flag(abPartitionsSortedString).Textf(" > %s/META/ab_partitions.txt", targetFilesDir.String()) + // otakeys.txt + 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()) } } |