blob: 8f4399ecdd108abe0e9e54497571da8a45706a2f [file] [log] [blame]
Alex Deymoaea4c1c2015-08-19 20:24:43 -07001//
2// Copyright (C) 2015 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
Alex Deymo14158572015-06-13 03:37:08 -070016
17#include "update_engine/payload_generator/payload_file.h"
18
Alex Deymo6f20dd42015-08-18 16:42:46 -070019#include <endian.h>
20
Alex Deymo14158572015-06-13 03:37:08 -070021#include <algorithm>
Simon Glass3d32f852017-06-28 16:38:11 -060022#include <map>
Sen Jiang3a4dfac2018-08-30 16:57:38 -070023#include <utility>
Simon Glass3d32f852017-06-28 16:38:11 -060024
25#include <base/strings/stringprintf.h>
Alex Deymo14158572015-06-13 03:37:08 -070026
Alex Deymo39910dc2015-11-09 17:04:30 -080027#include "update_engine/common/hash_calculator.h"
28#include "update_engine/payload_consumer/delta_performer.h"
29#include "update_engine/payload_consumer/file_writer.h"
30#include "update_engine/payload_consumer/payload_constants.h"
Alex Deymo14158572015-06-13 03:37:08 -070031#include "update_engine/payload_generator/annotated_operation.h"
Alex Deymo14158572015-06-13 03:37:08 -070032#include "update_engine/payload_generator/delta_diff_utils.h"
33#include "update_engine/payload_generator/payload_signer.h"
34
35using std::string;
36using std::vector;
37
38namespace chromeos_update_engine {
39
40namespace {
41
Alex Deymo14158572015-06-13 03:37:08 -070042struct DeltaObject {
43 DeltaObject(const string& in_name, const int in_type, const off_t in_size)
44 : name(in_name),
45 type(in_type),
46 size(in_size) {}
47 bool operator <(const DeltaObject& object) const {
48 return (size != object.size) ? (size < object.size) : (name < object.name);
49 }
50 string name;
51 int type;
52 off_t size;
53};
54
55// Writes the uint64_t passed in in host-endian to the file as big-endian.
56// Returns true on success.
57bool WriteUint64AsBigEndian(FileWriter* writer, const uint64_t value) {
58 uint64_t value_be = htobe64(value);
59 TEST_AND_RETURN_FALSE(writer->Write(&value_be, sizeof(value_be)));
60 return true;
61}
62
63} // namespace
64
Alex Deymo14158572015-06-13 03:37:08 -070065bool PayloadFile::Init(const PayloadGenerationConfig& config) {
Alex Deymoa4073ef2016-03-22 23:40:53 -070066 TEST_AND_RETURN_FALSE(config.version.Validate());
67 major_version_ = config.version.major;
68 manifest_.set_minor_version(config.version.minor);
Alex Deymo14158572015-06-13 03:37:08 -070069
70 if (!config.source.ImageInfoIsEmpty())
71 *(manifest_.mutable_old_image_info()) = config.source.image_info;
72
73 if (!config.target.ImageInfoIsEmpty())
74 *(manifest_.mutable_new_image_info()) = config.target.image_info;
75
76 manifest_.set_block_size(config.block_size);
Sen Jiang5011df62017-06-28 17:13:19 -070077 manifest_.set_max_timestamp(config.max_timestamp);
Yifan Hong398cb542018-10-18 11:29:40 -070078
79 if (major_version_ == kBrilloMajorPayloadVersion) {
80 if (config.target.dynamic_partition_metadata != nullptr)
81 *(manifest_.mutable_dynamic_partition_metadata()) =
82 *(config.target.dynamic_partition_metadata);
83 }
84
Alex Deymo14158572015-06-13 03:37:08 -070085 return true;
86}
87
Sen Jiangb9ef4912015-09-21 15:06:13 -070088bool PayloadFile::AddPartition(const PartitionConfig& old_conf,
89 const PartitionConfig& new_conf,
90 const vector<AnnotatedOperation>& aops) {
Sen Jiang70a6ab02015-08-28 13:23:27 -070091 // Check partitions order for Chrome OS
92 if (major_version_ == kChromeOSMajorPayloadVersion) {
Tudor Brindusdda79e22018-06-28 18:03:21 -070093 const vector<const char*> part_order = { kPartitionNameRoot,
94 kPartitionNameKernel };
Sen Jiangb9ef4912015-09-21 15:06:13 -070095 TEST_AND_RETURN_FALSE(part_vec_.size() < part_order.size());
96 TEST_AND_RETURN_FALSE(new_conf.name == part_order[part_vec_.size()]);
Sen Jiang70a6ab02015-08-28 13:23:27 -070097 }
Sen Jiangb9ef4912015-09-21 15:06:13 -070098 Partition part;
99 part.name = new_conf.name;
100 part.aops = aops;
Sen Jiang05feee02015-11-11 15:59:49 -0800101 part.postinstall = new_conf.postinstall;
Sen Jiang3a4dfac2018-08-30 16:57:38 -0700102 part.verity = new_conf.verity;
Sen Jiangb9ef4912015-09-21 15:06:13 -0700103 // Initialize the PartitionInfo objects if present.
104 if (!old_conf.path.empty())
105 TEST_AND_RETURN_FALSE(diff_utils::InitializePartitionInfo(old_conf,
106 &part.old_info));
107 TEST_AND_RETURN_FALSE(diff_utils::InitializePartitionInfo(new_conf,
108 &part.new_info));
109 part_vec_.push_back(std::move(part));
Sen Jiang70a6ab02015-08-28 13:23:27 -0700110 return true;
Alex Deymo14158572015-06-13 03:37:08 -0700111}
112
113bool PayloadFile::WritePayload(const string& payload_file,
114 const string& data_blobs_path,
115 const string& private_key_path,
Sen Jiangaef1c6f2015-10-07 10:05:32 -0700116 uint64_t* metadata_size_out) {
Alex Deymo14158572015-06-13 03:37:08 -0700117 // Reorder the data blobs with the manifest_.
118 string ordered_blobs_path;
119 TEST_AND_RETURN_FALSE(utils::MakeTempFile(
120 "CrAU_temp_data.ordered.XXXXXX",
121 &ordered_blobs_path,
122 nullptr));
123 ScopedPathUnlinker ordered_blobs_unlinker(ordered_blobs_path);
124 TEST_AND_RETURN_FALSE(ReorderDataBlobs(data_blobs_path, ordered_blobs_path));
125
Sen Jiang70a6ab02015-08-28 13:23:27 -0700126 // Check that install op blobs are in order.
127 uint64_t next_blob_offset = 0;
Sen Jiangb9ef4912015-09-21 15:06:13 -0700128 for (const auto& part : part_vec_) {
129 for (const auto& aop : part.aops) {
Sen Jiang70a6ab02015-08-28 13:23:27 -0700130 if (!aop.op.has_data_offset())
131 continue;
132 if (aop.op.data_offset() != next_blob_offset) {
133 LOG(FATAL) << "bad blob offset! " << aop.op.data_offset() << " != "
134 << next_blob_offset;
Alex Deymo14158572015-06-13 03:37:08 -0700135 }
Sen Jiang70a6ab02015-08-28 13:23:27 -0700136 next_blob_offset += aop.op.data_length();
Alex Deymo14158572015-06-13 03:37:08 -0700137 }
138 }
139
Sen Jiangb9ef4912015-09-21 15:06:13 -0700140 // Copy the operations and partition info from the part_vec_ to the manifest.
Sen Jiang70a6ab02015-08-28 13:23:27 -0700141 manifest_.clear_install_operations();
142 manifest_.clear_kernel_install_operations();
143 manifest_.clear_partitions();
Sen Jiangb9ef4912015-09-21 15:06:13 -0700144 for (const auto& part : part_vec_) {
Sen Jiang70a6ab02015-08-28 13:23:27 -0700145 if (major_version_ == kBrilloMajorPayloadVersion) {
146 PartitionUpdate* partition = manifest_.add_partitions();
Sen Jiangb9ef4912015-09-21 15:06:13 -0700147 partition->set_partition_name(part.name);
Sen Jiang05feee02015-11-11 15:59:49 -0800148 if (part.postinstall.run) {
149 partition->set_run_postinstall(true);
150 if (!part.postinstall.path.empty())
151 partition->set_postinstall_path(part.postinstall.path);
152 if (!part.postinstall.filesystem_type.empty())
153 partition->set_filesystem_type(part.postinstall.filesystem_type);
Alex Deymo5b91c6b2016-08-04 20:33:36 -0700154 partition->set_postinstall_optional(part.postinstall.optional);
Sen Jiang05feee02015-11-11 15:59:49 -0800155 }
Sen Jiang3a4dfac2018-08-30 16:57:38 -0700156 if (!part.verity.IsEmpty()) {
157 if (part.verity.hash_tree_extent.num_blocks() != 0) {
158 *partition->mutable_hash_tree_data_extent() =
159 part.verity.hash_tree_data_extent;
160 *partition->mutable_hash_tree_extent() = part.verity.hash_tree_extent;
161 partition->set_hash_tree_algorithm(part.verity.hash_tree_algorithm);
162 if (!part.verity.hash_tree_salt.empty())
163 partition->set_hash_tree_salt(part.verity.hash_tree_salt.data(),
164 part.verity.hash_tree_salt.size());
165 }
166 if (part.verity.fec_extent.num_blocks() != 0) {
167 *partition->mutable_fec_data_extent() = part.verity.fec_data_extent;
168 *partition->mutable_fec_extent() = part.verity.fec_extent;
169 partition->set_fec_roots(part.verity.fec_roots);
170 }
171 }
Sen Jiangb9ef4912015-09-21 15:06:13 -0700172 for (const AnnotatedOperation& aop : part.aops) {
Sen Jiang70a6ab02015-08-28 13:23:27 -0700173 *partition->add_operations() = aop.op;
174 }
Sen Jiangb9ef4912015-09-21 15:06:13 -0700175 if (part.old_info.has_size() || part.old_info.has_hash())
176 *(partition->mutable_old_partition_info()) = part.old_info;
177 if (part.new_info.has_size() || part.new_info.has_hash())
178 *(partition->mutable_new_partition_info()) = part.new_info;
Sen Jiang70a6ab02015-08-28 13:23:27 -0700179 } else {
Sen Jiangb9ef4912015-09-21 15:06:13 -0700180 // major_version_ == kChromeOSMajorPayloadVersion
Tudor Brindusdda79e22018-06-28 18:03:21 -0700181 if (part.name == kPartitionNameKernel) {
Sen Jiangb9ef4912015-09-21 15:06:13 -0700182 for (const AnnotatedOperation& aop : part.aops)
Sen Jiang70a6ab02015-08-28 13:23:27 -0700183 *manifest_.add_kernel_install_operations() = aop.op;
Sen Jiangb9ef4912015-09-21 15:06:13 -0700184 if (part.old_info.has_size() || part.old_info.has_hash())
185 *manifest_.mutable_old_kernel_info() = part.old_info;
186 if (part.new_info.has_size() || part.new_info.has_hash())
187 *manifest_.mutable_new_kernel_info() = part.new_info;
188 } else {
189 for (const AnnotatedOperation& aop : part.aops)
Sen Jiang70a6ab02015-08-28 13:23:27 -0700190 *manifest_.add_install_operations() = aop.op;
Sen Jiangb9ef4912015-09-21 15:06:13 -0700191 if (part.old_info.has_size() || part.old_info.has_hash())
192 *manifest_.mutable_old_rootfs_info() = part.old_info;
193 if (part.new_info.has_size() || part.new_info.has_hash())
194 *manifest_.mutable_new_rootfs_info() = part.new_info;
Alex Deymo14158572015-06-13 03:37:08 -0700195 }
196 }
197 }
198
199 // Signatures appear at the end of the blobs. Note the offset in the
200 // manifest_.
Sen Jiang644f6182015-10-06 16:45:57 -0700201 uint64_t signature_blob_length = 0;
Alex Deymo14158572015-06-13 03:37:08 -0700202 if (!private_key_path.empty()) {
Alex Deymo14158572015-06-13 03:37:08 -0700203 TEST_AND_RETURN_FALSE(
204 PayloadSigner::SignatureBlobLength(vector<string>(1, private_key_path),
205 &signature_blob_length));
Sen Jiang3e728fe2015-11-05 11:37:23 -0800206 PayloadSigner::AddSignatureToManifest(
207 next_blob_offset, signature_blob_length,
208 major_version_ == kChromeOSMajorPayloadVersion, &manifest_);
Alex Deymo14158572015-06-13 03:37:08 -0700209 }
210
Sen Jiang70a6ab02015-08-28 13:23:27 -0700211 // Serialize protobuf
Alex Deymo14158572015-06-13 03:37:08 -0700212 string serialized_manifest;
213 TEST_AND_RETURN_FALSE(manifest_.AppendToString(&serialized_manifest));
214
Sen Jiangaef1c6f2015-10-07 10:05:32 -0700215 uint64_t metadata_size =
216 sizeof(kDeltaMagic) + 2 * sizeof(uint64_t) + serialized_manifest.size();
217
Alex Deymo14158572015-06-13 03:37:08 -0700218 LOG(INFO) << "Writing final delta file header...";
219 DirectFileWriter writer;
220 TEST_AND_RETURN_FALSE_ERRNO(writer.Open(payload_file.c_str(),
221 O_WRONLY | O_CREAT | O_TRUNC,
222 0644) == 0);
223 ScopedFileWriterCloser writer_closer(&writer);
224
225 // Write header
Alex Deymo95699a92016-12-08 19:43:01 -0800226 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(kDeltaMagic, sizeof(kDeltaMagic)));
Alex Deymo14158572015-06-13 03:37:08 -0700227
228 // Write major version number
Sen Jiang46e9b172015-08-31 14:11:01 -0700229 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer, major_version_));
Alex Deymo14158572015-06-13 03:37:08 -0700230
231 // Write protobuf length
232 TEST_AND_RETURN_FALSE(WriteUint64AsBigEndian(&writer,
233 serialized_manifest.size()));
234
Sen Jiang644f6182015-10-06 16:45:57 -0700235 // Write metadata signature size.
236 uint32_t metadata_signature_size = 0;
Sen Jiangf4bb3e62015-09-29 11:12:09 -0700237 if (major_version_ == kBrilloMajorPayloadVersion) {
Sen Jiang644f6182015-10-06 16:45:57 -0700238 // Metadata signature has the same size as payload signature, because they
239 // are both the same kind of signature for the same kind of hash.
240 uint32_t metadata_signature_size = htobe32(signature_blob_length);
Alex Deymo95699a92016-12-08 19:43:01 -0800241 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(&metadata_signature_size,
242 sizeof(metadata_signature_size)));
Sen Jiang644f6182015-10-06 16:45:57 -0700243 metadata_size += sizeof(metadata_signature_size);
244 // Set correct size instead of big endian size.
245 metadata_signature_size = signature_blob_length;
Sen Jiangf4bb3e62015-09-29 11:12:09 -0700246 }
247
Alex Deymo14158572015-06-13 03:37:08 -0700248 // Write protobuf
249 LOG(INFO) << "Writing final delta file protobuf... "
250 << serialized_manifest.size();
Alex Deymo95699a92016-12-08 19:43:01 -0800251 TEST_AND_RETURN_FALSE_ERRNO(
252 writer.Write(serialized_manifest.data(), serialized_manifest.size()));
Alex Deymo14158572015-06-13 03:37:08 -0700253
Sen Jiang644f6182015-10-06 16:45:57 -0700254 // Write metadata signature blob.
255 if (major_version_ == kBrilloMajorPayloadVersion &&
256 !private_key_path.empty()) {
257 brillo::Blob metadata_hash, metadata_signature;
Alex Deymo39910dc2015-11-09 17:04:30 -0800258 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfFile(payload_file,
Sen Jiang644f6182015-10-06 16:45:57 -0700259 metadata_size,
260 &metadata_hash));
261 TEST_AND_RETURN_FALSE(
262 PayloadSigner::SignHashWithKeys(metadata_hash,
263 vector<string>(1, private_key_path),
264 &metadata_signature));
Alex Deymo95699a92016-12-08 19:43:01 -0800265 TEST_AND_RETURN_FALSE_ERRNO(
266 writer.Write(metadata_signature.data(), metadata_signature.size()));
Sen Jiang644f6182015-10-06 16:45:57 -0700267 }
268
Alex Deymo14158572015-06-13 03:37:08 -0700269 // Append the data blobs
270 LOG(INFO) << "Writing final delta file data blobs...";
271 int blobs_fd = open(ordered_blobs_path.c_str(), O_RDONLY, 0);
272 ScopedFdCloser blobs_fd_closer(&blobs_fd);
273 TEST_AND_RETURN_FALSE(blobs_fd >= 0);
274 for (;;) {
275 vector<char> buf(1024 * 1024);
276 ssize_t rc = read(blobs_fd, buf.data(), buf.size());
277 if (0 == rc) {
278 // EOF
279 break;
280 }
281 TEST_AND_RETURN_FALSE_ERRNO(rc > 0);
Alex Deymo95699a92016-12-08 19:43:01 -0800282 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf.data(), rc));
Alex Deymo14158572015-06-13 03:37:08 -0700283 }
284
Sen Jiang644f6182015-10-06 16:45:57 -0700285 // Write payload signature blob.
Alex Deymo14158572015-06-13 03:37:08 -0700286 if (!private_key_path.empty()) {
287 LOG(INFO) << "Signing the update...";
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700288 brillo::Blob signature_blob;
Alex Deymo14158572015-06-13 03:37:08 -0700289 TEST_AND_RETURN_FALSE(PayloadSigner::SignPayload(
290 payload_file,
291 vector<string>(1, private_key_path),
Sen Jiang720df3e2015-10-01 13:10:44 -0700292 metadata_size,
Sen Jiang644f6182015-10-06 16:45:57 -0700293 metadata_signature_size,
294 metadata_size + metadata_signature_size + manifest_.signatures_offset(),
Alex Deymo14158572015-06-13 03:37:08 -0700295 &signature_blob));
Alex Deymo95699a92016-12-08 19:43:01 -0800296 TEST_AND_RETURN_FALSE_ERRNO(
297 writer.Write(signature_blob.data(), signature_blob.size()));
Alex Deymo14158572015-06-13 03:37:08 -0700298 }
299
Sen Jiangaef1c6f2015-10-07 10:05:32 -0700300 ReportPayloadUsage(metadata_size);
301 *metadata_size_out = metadata_size;
Alex Deymo14158572015-06-13 03:37:08 -0700302 return true;
303}
304
305bool PayloadFile::ReorderDataBlobs(
306 const string& data_blobs_path,
307 const string& new_data_blobs_path) {
308 int in_fd = open(data_blobs_path.c_str(), O_RDONLY, 0);
309 TEST_AND_RETURN_FALSE_ERRNO(in_fd >= 0);
310 ScopedFdCloser in_fd_closer(&in_fd);
311
312 DirectFileWriter writer;
Alex Deymo95699a92016-12-08 19:43:01 -0800313 int rc = writer.Open(
314 new_data_blobs_path.c_str(), O_WRONLY | O_TRUNC | O_CREAT, 0644);
315 if (rc != 0) {
316 PLOG(ERROR) << "Error creating " << new_data_blobs_path;
317 return false;
318 }
Alex Deymo14158572015-06-13 03:37:08 -0700319 ScopedFileWriterCloser writer_closer(&writer);
320 uint64_t out_file_size = 0;
321
Alex Deymoa4073ef2016-03-22 23:40:53 -0700322 for (auto& part : part_vec_) {
Sen Jiangb9ef4912015-09-21 15:06:13 -0700323 for (AnnotatedOperation& aop : part.aops) {
Alex Deymo14158572015-06-13 03:37:08 -0700324 if (!aop.op.has_data_offset())
325 continue;
326 CHECK(aop.op.has_data_length());
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700327 brillo::Blob buf(aop.op.data_length());
Alex Deymo14158572015-06-13 03:37:08 -0700328 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset());
329 TEST_AND_RETURN_FALSE(rc == static_cast<ssize_t>(buf.size()));
330
331 // Add the hash of the data blobs for this operation
332 TEST_AND_RETURN_FALSE(AddOperationHash(&aop.op, buf));
333
334 aop.op.set_data_offset(out_file_size);
Alex Deymo95699a92016-12-08 19:43:01 -0800335 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf.data(), buf.size()));
Alex Deymo14158572015-06-13 03:37:08 -0700336 out_file_size += buf.size();
337 }
338 }
339 return true;
340}
341
Alex Deymoa12ee112015-08-12 22:19:32 -0700342bool PayloadFile::AddOperationHash(InstallOperation* op,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700343 const brillo::Blob& buf) {
Sen Jiang2703ef42017-03-16 13:36:21 -0700344 brillo::Blob hash;
345 TEST_AND_RETURN_FALSE(HashCalculator::RawHashOfData(buf, &hash));
Alex Deymo14158572015-06-13 03:37:08 -0700346 op->set_data_sha256_hash(hash.data(), hash.size());
347 return true;
348}
349
350void PayloadFile::ReportPayloadUsage(uint64_t metadata_size) const {
Simon Glass3d32f852017-06-28 16:38:11 -0600351 std::map<DeltaObject, int> object_counts;
Alex Deymo14158572015-06-13 03:37:08 -0700352 off_t total_size = 0;
353
Sen Jiangb9ef4912015-09-21 15:06:13 -0700354 for (const auto& part : part_vec_) {
Sen Jianga91195d2018-10-25 15:15:38 -0700355 string part_prefix = "<" + part.name + ">:";
Sen Jiangb9ef4912015-09-21 15:06:13 -0700356 for (const AnnotatedOperation& aop : part.aops) {
Sen Jianga91195d2018-10-25 15:15:38 -0700357 DeltaObject delta(
358 part_prefix + aop.name, aop.op.type(), aop.op.data_length());
Simon Glass3d32f852017-06-28 16:38:11 -0600359 object_counts[delta]++;
Alex Deymo14158572015-06-13 03:37:08 -0700360 total_size += aop.op.data_length();
361 }
362 }
363
Simon Glass3d32f852017-06-28 16:38:11 -0600364 object_counts[DeltaObject("<manifest-metadata>", -1, metadata_size)] = 1;
Alex Deymo14158572015-06-13 03:37:08 -0700365 total_size += metadata_size;
366
Sen Jianga91195d2018-10-25 15:15:38 -0700367 constexpr char kFormatString[] = "%6.2f%% %10jd %-13s %s %d\n";
Simon Glass3d32f852017-06-28 16:38:11 -0600368 for (const auto& object_count : object_counts) {
369 const DeltaObject& object = object_count.first;
Sen Jianga91195d2018-10-25 15:15:38 -0700370 // Use printf() instead of LOG(INFO) because timestamp makes it difficult to
371 // compare two reports.
372 printf(
Simon Glass3d32f852017-06-28 16:38:11 -0600373 kFormatString,
Alex Deymo8241ffb2015-10-15 10:36:44 -0700374 object.size * 100.0 / total_size,
Sen Jianga91195d2018-10-25 15:15:38 -0700375 object.size,
Alex Deymo8241ffb2015-10-15 10:36:44 -0700376 (object.type >= 0 ? InstallOperationTypeName(
377 static_cast<InstallOperation_Type>(object.type))
378 : "-"),
Simon Glass3d32f852017-06-28 16:38:11 -0600379 object.name.c_str(),
380 object_count.second);
Alex Deymo14158572015-06-13 03:37:08 -0700381 }
Sen Jianga91195d2018-10-25 15:15:38 -0700382 printf(kFormatString, 100.0, total_size, "", "<total>", 1);
Alex Deymo14158572015-06-13 03:37:08 -0700383}
384
Alex Deymo14158572015-06-13 03:37:08 -0700385} // namespace chromeos_update_engine