blob: 916b2e586ddf4a6927329247b3f898babb1b1188 [file] [log] [blame]
Alex Deymoaea4c1c2015-08-19 20:24:43 -07001//
2// Copyright (C) 2013 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 Deymo42432912013-07-12 20:21:15 -070016
Alex Deymo1b03f9f2015-12-09 00:38:36 -080017#include "update_engine/hardware_chromeos.h"
Alex Deymo42432912013-07-12 20:21:15 -070018
Zentaro Kavanaghbaacb982018-02-20 17:48:39 -080019#include <utility>
20
Alex Deymo46a9aae2016-05-04 20:20:11 -070021#include <base/files/file_path.h>
Ben Chan06c76a42014-09-05 08:21:06 -070022#include <base/files/file_util.h>
Alex Deymo42432912013-07-12 20:21:15 -070023#include <base/logging.h>
Alex Deymoebbe7ef2014-10-30 13:02:49 -070024#include <base/strings/string_number_conversions.h>
Alex Vakulenko75039d72014-03-25 12:36:28 -070025#include <base/strings/string_util.h>
Alex Deymo46a9aae2016-05-04 20:20:11 -070026#include <brillo/key_value_store.h>
Sen Jiange67bb5b2016-06-20 15:53:56 -070027#include <debugd/dbus-constants.h>
J. Richard Barnettec7dd8532013-10-29 16:30:46 -070028#include <vboot/crossystem.h>
Alex Deymo42432912013-07-12 20:21:15 -070029
Don Garrett83692e42013-11-08 10:11:30 -080030extern "C" {
31#include "vboot/vboot_host.h"
32}
33
Alex Deymo46a9aae2016-05-04 20:20:11 -070034#include "update_engine/common/constants.h"
Alex Deymo39910dc2015-11-09 17:04:30 -080035#include "update_engine/common/hardware.h"
36#include "update_engine/common/hwid_override.h"
Sen Jiang9c123462015-11-19 13:16:23 -080037#include "update_engine/common/platform_constants.h"
Alex Deymo39910dc2015-11-09 17:04:30 -080038#include "update_engine/common/subprocess.h"
39#include "update_engine/common/utils.h"
Sen Jiange67bb5b2016-06-20 15:53:56 -070040#include "update_engine/dbus_connection.h"
J. Richard Barnette522d36f2013-10-28 17:22:12 -070041
Alex Deymo42432912013-07-12 20:21:15 -070042using std::string;
J. Richard Barnette522d36f2013-10-28 17:22:12 -070043using std::vector;
Alex Deymo42432912013-07-12 20:21:15 -070044
Alex Deymobccbc382014-04-03 13:38:55 -070045namespace {
46
Alex Deymodd132f32015-09-14 19:12:07 -070047const char kOOBECompletedMarker[] = "/home/chronos/.oobe_completed";
48
49// The stateful directory used by update_engine to store powerwash-safe files.
50// The files stored here must be whitelisted in the powerwash scripts.
51const char kPowerwashSafeDirectory[] =
52 "/mnt/stateful_partition/unencrypted/preserve";
Alex Deymobccbc382014-04-03 13:38:55 -070053
Alex Deymoebbe7ef2014-10-30 13:02:49 -070054// The powerwash_count marker file contains the number of times the device was
55// powerwashed. This value is incremented by the clobber-state script when
56// a powerwash is performed.
Alex Deymodd132f32015-09-14 19:12:07 -070057const char kPowerwashCountMarker[] = "powerwash_count";
58
Alex Deymofb905d92016-06-03 19:26:58 -070059// The name of the marker file used to trigger powerwash when post-install
60// completes successfully so that the device is powerwashed on next reboot.
61const char kPowerwashMarkerFile[] =
62 "/mnt/stateful_partition/factory_install_reset";
63
Zentaro Kavanagh28def4f2019-01-15 17:15:01 -080064// The name of the marker file used to trigger a save of rollback data
65// during the next shutdown.
66const char kRollbackSaveMarkerFile[] =
67 "/mnt/stateful_partition/.save_rollback_data";
68
Zentaro Kavanagh0418de32019-01-15 10:29:35 -080069// The contents of the powerwash marker file for the non-rollback case.
Alex Deymofb905d92016-06-03 19:26:58 -070070const char kPowerwashCommand[] = "safe fast keepimg reason=update_engine\n";
71
Zentaro Kavanagh0418de32019-01-15 10:29:35 -080072// The contents of the powerwas marker file for the rollback case.
73const char kRollbackPowerwashCommand[] =
74 "safe fast keepimg rollback reason=update_engine\n";
75
Alex Deymo46a9aae2016-05-04 20:20:11 -070076// UpdateManager config path.
77const char* kConfigFilePath = "/etc/update_manager.conf";
78
79// UpdateManager config options:
80const char* kConfigOptsIsOOBEEnabled = "is_oobe_enabled";
81
Amin Hassani1677e812017-06-21 13:36:36 -070082const char* kActivePingKey = "first_active_omaha_ping_sent";
83
Matt Ziegelbaum7cfadf72020-06-09 18:51:16 -040084#if USE_CFM
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -040085const char* kOemRequisitionKey = "oem_device_requisition";
Matt Ziegelbaum7cfadf72020-06-09 18:51:16 -040086#endif
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -040087
88// Gets a string value from the vpd for a given key using the `vpd_get_value`
89// shell command. Returns true on success.
90int GetVpdValue(string key, string* result) {
91 int exit_code = 0;
Amin Hassani3a4caa12019-11-06 11:12:28 -080092 string value, error;
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -040093 vector<string> cmd = {"vpd_get_value", key};
94 if (!chromeos_update_engine::Subprocess::SynchronousExec(
Amin Hassani3a4caa12019-11-06 11:12:28 -080095 cmd, &exit_code, &value, &error) ||
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -040096 exit_code) {
97 LOG(ERROR) << "Failed to get vpd key for " << value
Amin Hassani3a4caa12019-11-06 11:12:28 -080098 << " with exit code: " << exit_code << " and error: " << error;
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -040099 return false;
Amin Hassani3a4caa12019-11-06 11:12:28 -0800100 } else if (!error.empty()) {
101 LOG(INFO) << "vpd_get_value succeeded but with following errors: " << error;
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -0400102 }
103
104 base::TrimWhitespaceASCII(value, base::TRIM_ALL, &value);
105 *result = value;
106 return true;
107}
108
Alex Deymobccbc382014-04-03 13:38:55 -0700109} // namespace
110
Alex Deymo42432912013-07-12 20:21:15 -0700111namespace chromeos_update_engine {
112
Alex Deymo40d86b22015-09-03 22:27:10 -0700113namespace hardware {
114
115// Factory defined in hardware.h.
116std::unique_ptr<HardwareInterface> CreateHardware() {
Alex Deymo46a9aae2016-05-04 20:20:11 -0700117 std::unique_ptr<HardwareChromeOS> hardware(new HardwareChromeOS());
118 hardware->Init();
119 return std::move(hardware);
Alex Deymo40d86b22015-09-03 22:27:10 -0700120}
121
122} // namespace hardware
123
Alex Deymo46a9aae2016-05-04 20:20:11 -0700124void HardwareChromeOS::Init() {
125 LoadConfig("" /* root_prefix */, IsNormalBootMode());
Sen Jiange67bb5b2016-06-20 15:53:56 -0700126 debugd_proxy_.reset(
127 new org::chromium::debugdProxy(DBusConnection::Get()->GetDBus()));
Alex Deymo46a9aae2016-05-04 20:20:11 -0700128}
129
Alex Deymo40d86b22015-09-03 22:27:10 -0700130bool HardwareChromeOS::IsOfficialBuild() const {
J. Richard Barnettec7dd8532013-10-29 16:30:46 -0700131 return VbGetSystemPropertyInt("debug_build") == 0;
J. Richard Barnette056b0ab2013-10-29 15:24:56 -0700132}
133
Alex Deymo40d86b22015-09-03 22:27:10 -0700134bool HardwareChromeOS::IsNormalBootMode() const {
J. Richard Barnettec7dd8532013-10-29 16:30:46 -0700135 bool dev_mode = VbGetSystemPropertyInt("devsw_boot") != 0;
J. Richard Barnette056b0ab2013-10-29 15:24:56 -0700136 return !dev_mode;
137}
138
Sen Jiange67bb5b2016-06-20 15:53:56 -0700139bool HardwareChromeOS::AreDevFeaturesEnabled() const {
140 // Even though the debugd tools are also gated on devmode, checking here can
141 // save us a D-Bus call so it's worth doing explicitly.
142 if (IsNormalBootMode())
143 return false;
144
145 int32_t dev_features = debugd::DEV_FEATURES_DISABLED;
146 brillo::ErrorPtr error;
147 // Some boards may not include debugd so it's expected that this may fail,
148 // in which case we treat it as disabled.
149 if (debugd_proxy_ && debugd_proxy_->QueryDevFeatures(&dev_features, &error) &&
150 !(dev_features & debugd::DEV_FEATURES_DISABLED)) {
151 LOG(INFO) << "Debugd dev tools enabled.";
152 return true;
153 }
154 return false;
155}
156
Alex Deymo46a9aae2016-05-04 20:20:11 -0700157bool HardwareChromeOS::IsOOBEEnabled() const {
158 return is_oobe_enabled_;
159}
160
Alex Deymo40d86b22015-09-03 22:27:10 -0700161bool HardwareChromeOS::IsOOBEComplete(base::Time* out_time_of_oobe) const {
Alex Deymo46a9aae2016-05-04 20:20:11 -0700162 if (!is_oobe_enabled_) {
163 LOG(WARNING) << "OOBE is not enabled but IsOOBEComplete() was called";
164 }
Alex Deymobccbc382014-04-03 13:38:55 -0700165 struct stat statbuf;
166 if (stat(kOOBECompletedMarker, &statbuf) != 0) {
167 if (errno != ENOENT) {
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800168 PLOG(ERROR) << "Error getting information about " << kOOBECompletedMarker;
Alex Deymobccbc382014-04-03 13:38:55 -0700169 }
170 return false;
171 }
172
173 if (out_time_of_oobe != nullptr)
174 *out_time_of_oobe = base::Time::FromTimeT(statbuf.st_mtime);
175 return true;
176}
177
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700178static string ReadValueFromCrosSystem(const string& key) {
J. Richard Barnettec7dd8532013-10-29 16:30:46 -0700179 char value_buffer[VB_MAX_STRING_PROPERTY];
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700180
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800181 const char* rv = VbGetSystemPropertyString(
182 key.c_str(), value_buffer, sizeof(value_buffer));
Alex Vakulenko88b591f2014-08-28 16:48:57 -0700183 if (rv != nullptr) {
J. Richard Barnettec7dd8532013-10-29 16:30:46 -0700184 string return_value(value_buffer);
Ben Chan736fcb52014-05-21 18:28:22 -0700185 base::TrimWhitespaceASCII(return_value, base::TRIM_ALL, &return_value);
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700186 return return_value;
187 }
J. Richard Barnettec7dd8532013-10-29 16:30:46 -0700188
189 LOG(ERROR) << "Unable to read crossystem key " << key;
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700190 return "";
191}
192
Alex Deymo40d86b22015-09-03 22:27:10 -0700193string HardwareChromeOS::GetHardwareClass() const {
Chris Masonef8d037f2014-02-19 01:53:00 +0000194 if (USE_HWID_OVERRIDE) {
195 return HwidOverride::Read(base::FilePath("/"));
196 }
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700197 return ReadValueFromCrosSystem("hwid");
198}
199
Alex Deymo40d86b22015-09-03 22:27:10 -0700200string HardwareChromeOS::GetFirmwareVersion() const {
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700201 return ReadValueFromCrosSystem("fwid");
202}
203
Alex Deymo40d86b22015-09-03 22:27:10 -0700204string HardwareChromeOS::GetECVersion() const {
Amin Hassani3a4caa12019-11-06 11:12:28 -0800205 string input_line, error;
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700206 int exit_code = 0;
Alex Vakulenkod0fdfb32014-02-21 15:26:26 -0800207 vector<string> cmd = {"/usr/sbin/mosys", "-k", "ec", "info"};
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700208
Amin Hassani3a4caa12019-11-06 11:12:28 -0800209 if (!Subprocess::SynchronousExec(cmd, &exit_code, &input_line, &error) ||
210 exit_code != 0) {
211 LOG(ERROR) << "Unable to read EC info from mosys with exit code: "
212 << exit_code << " and error: " << error;
J. Richard Barnette522d36f2013-10-28 17:22:12 -0700213 return "";
214 }
215
216 return utils::ParseECVersion(input_line);
217}
218
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -0400219string HardwareChromeOS::GetDeviceRequisition() const {
220 string requisition;
Matt Ziegelbaum7cfadf72020-06-09 18:51:16 -0400221#if USE_CFM
222 GetVpdValue(kOemRequisitionKey, &requisition);
223#endif
224 return requisition;
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -0400225}
226
Zentaro Kavanaghbaacb982018-02-20 17:48:39 -0800227int HardwareChromeOS::GetMinKernelKeyVersion() const {
228 return VbGetSystemPropertyInt("tpm_kernver");
229}
230
Zentaro Kavanagh8f6f2432018-05-16 13:48:12 -0700231int HardwareChromeOS::GetMaxFirmwareKeyRollforward() const {
232 return VbGetSystemPropertyInt("firmware_max_rollforward");
233}
234
235bool HardwareChromeOS::SetMaxFirmwareKeyRollforward(
236 int firmware_max_rollforward) {
237 // Not all devices have this field yet. So first try to read
238 // it and if there is an error just fail.
239 if (GetMaxFirmwareKeyRollforward() == -1)
240 return false;
241
242 return VbSetSystemPropertyInt("firmware_max_rollforward",
243 firmware_max_rollforward) == 0;
244}
245
Marton Hunyady99ced782018-05-08 12:59:50 +0200246int HardwareChromeOS::GetMinFirmwareKeyVersion() const {
247 return VbGetSystemPropertyInt("tpm_fwver");
248}
249
Zentaro Kavanagh5d956152018-05-15 09:40:33 -0700250bool HardwareChromeOS::SetMaxKernelKeyRollforward(int kernel_max_rollforward) {
251 return VbSetSystemPropertyInt("kernel_max_rollforward",
252 kernel_max_rollforward) == 0;
Zentaro Kavanaghbaacb982018-02-20 17:48:39 -0800253}
254
Alex Deymo40d86b22015-09-03 22:27:10 -0700255int HardwareChromeOS::GetPowerwashCount() const {
Alex Deymoebbe7ef2014-10-30 13:02:49 -0700256 int powerwash_count;
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800257 base::FilePath marker_path =
258 base::FilePath(kPowerwashSafeDirectory).Append(kPowerwashCountMarker);
Alex Deymoebbe7ef2014-10-30 13:02:49 -0700259 string contents;
Alex Deymodd132f32015-09-14 19:12:07 -0700260 if (!utils::ReadFile(marker_path.value(), &contents))
Alex Deymoebbe7ef2014-10-30 13:02:49 -0700261 return -1;
262 base::TrimWhitespaceASCII(contents, base::TRIM_TRAILING, &contents);
263 if (!base::StringToInt(contents, &powerwash_count))
264 return -1;
265 return powerwash_count;
266}
267
Zentaro Kavanagh28def4f2019-01-15 17:15:01 -0800268bool HardwareChromeOS::SchedulePowerwash(bool save_rollback_data) {
269 if (save_rollback_data) {
270 if (!utils::WriteFile(kRollbackSaveMarkerFile, nullptr, 0)) {
271 PLOG(ERROR) << "Error in creating rollback save marker file: "
272 << kRollbackSaveMarkerFile << ". Rollback will not"
273 << " preserve any data.";
274 } else {
275 LOG(INFO) << "Rollback data save has been scheduled on next shutdown.";
276 }
277 }
278
Zentaro Kavanagh0418de32019-01-15 10:29:35 -0800279 const char* powerwash_command =
Zentaro Kavanagh28def4f2019-01-15 17:15:01 -0800280 save_rollback_data ? kRollbackPowerwashCommand : kPowerwashCommand;
Alex Deymofb905d92016-06-03 19:26:58 -0700281 bool result = utils::WriteFile(
Zentaro Kavanagh0418de32019-01-15 10:29:35 -0800282 kPowerwashMarkerFile, powerwash_command, strlen(powerwash_command));
Alex Deymofb905d92016-06-03 19:26:58 -0700283 if (result) {
Alex Deymocaa46722016-06-09 12:08:29 -0700284 LOG(INFO) << "Created " << kPowerwashMarkerFile
Zentaro Kavanagh28def4f2019-01-15 17:15:01 -0800285 << " to powerwash on next reboot ("
286 << "save_rollback_data=" << save_rollback_data << ")";
Alex Deymofb905d92016-06-03 19:26:58 -0700287 } else {
Alex Deymocaa46722016-06-09 12:08:29 -0700288 PLOG(ERROR) << "Error in creating powerwash marker file: "
289 << kPowerwashMarkerFile;
Alex Deymofb905d92016-06-03 19:26:58 -0700290 }
291
292 return result;
293}
294
295bool HardwareChromeOS::CancelPowerwash() {
296 bool result = base::DeleteFile(base::FilePath(kPowerwashMarkerFile), false);
297
298 if (result) {
299 LOG(INFO) << "Successfully deleted the powerwash marker file : "
Alex Deymocaa46722016-06-09 12:08:29 -0700300 << kPowerwashMarkerFile;
Alex Deymofb905d92016-06-03 19:26:58 -0700301 } else {
302 PLOG(ERROR) << "Could not delete the powerwash marker file : "
Alex Deymocaa46722016-06-09 12:08:29 -0700303 << kPowerwashMarkerFile;
Alex Deymofb905d92016-06-03 19:26:58 -0700304 }
305
Zentaro Kavanagh28def4f2019-01-15 17:15:01 -0800306 // Delete the rollback save marker file if it existed.
307 if (!base::DeleteFile(base::FilePath(kRollbackSaveMarkerFile), false)) {
308 PLOG(ERROR) << "Could not remove rollback save marker";
309 }
310
Alex Deymofb905d92016-06-03 19:26:58 -0700311 return result;
312}
313
Alex Deymodd132f32015-09-14 19:12:07 -0700314bool HardwareChromeOS::GetNonVolatileDirectory(base::FilePath* path) const {
Sen Jiang9c123462015-11-19 13:16:23 -0800315 *path = base::FilePath(constants::kNonVolatileDirectory);
Alex Deymodd132f32015-09-14 19:12:07 -0700316 return true;
317}
318
319bool HardwareChromeOS::GetPowerwashSafeDirectory(base::FilePath* path) const {
320 *path = base::FilePath(kPowerwashSafeDirectory);
321 return true;
322}
323
Sen Jiang5011df62017-06-28 17:13:19 -0700324int64_t HardwareChromeOS::GetBuildTimestamp() const {
325 // TODO(senj): implement this in Chrome OS.
326 return 0;
327}
328
Alex Deymo46a9aae2016-05-04 20:20:11 -0700329void HardwareChromeOS::LoadConfig(const string& root_prefix, bool normal_mode) {
330 brillo::KeyValueStore store;
331
332 if (normal_mode) {
333 store.Load(base::FilePath(root_prefix + kConfigFilePath));
334 } else {
335 if (store.Load(base::FilePath(root_prefix + kStatefulPartition +
336 kConfigFilePath))) {
337 LOG(INFO) << "UpdateManager Config loaded from stateful partition.";
338 } else {
339 store.Load(base::FilePath(root_prefix + kConfigFilePath));
340 }
341 }
342
343 if (!store.GetBoolean(kConfigOptsIsOOBEEnabled, &is_oobe_enabled_))
344 is_oobe_enabled_ = true; // Default value.
345}
346
Amin Hassani1677e812017-06-21 13:36:36 -0700347bool HardwareChromeOS::GetFirstActiveOmahaPingSent() const {
Amin Hassani1677e812017-06-21 13:36:36 -0700348 string active_ping_str;
Matt Ziegelbaumaa8e1a42019-05-09 21:41:58 -0400349 if (!GetVpdValue(kActivePingKey, &active_ping_str)) {
Amin Hassani1677e812017-06-21 13:36:36 -0700350 return false;
351 }
352
Amin Hassani1677e812017-06-21 13:36:36 -0700353 int active_ping;
354 if (active_ping_str.empty() ||
355 !base::StringToInt(active_ping_str, &active_ping)) {
356 LOG(INFO) << "Failed to parse active_ping value: " << active_ping_str;
357 return false;
358 }
359 return static_cast<bool>(active_ping);
360}
361
Amin Hassani80f4d4c2018-05-16 13:34:00 -0700362bool HardwareChromeOS::SetFirstActiveOmahaPingSent() {
Amin Hassani1677e812017-06-21 13:36:36 -0700363 int exit_code = 0;
Amin Hassani3a4caa12019-11-06 11:12:28 -0800364 string output, error;
Amin Hassani1677e812017-06-21 13:36:36 -0700365 vector<string> vpd_set_cmd = {
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800366 "vpd", "-i", "RW_VPD", "-s", string(kActivePingKey) + "=1"};
Amin Hassani3a4caa12019-11-06 11:12:28 -0800367 if (!Subprocess::SynchronousExec(vpd_set_cmd, &exit_code, &output, &error) ||
Amin Hassani1677e812017-06-21 13:36:36 -0700368 exit_code) {
369 LOG(ERROR) << "Failed to set vpd key for " << kActivePingKey
Amin Hassani3a4caa12019-11-06 11:12:28 -0800370 << " with exit code: " << exit_code << " with output: " << output
371 << " and error: " << error;
Amin Hassani80f4d4c2018-05-16 13:34:00 -0700372 return false;
Amin Hassani3a4caa12019-11-06 11:12:28 -0800373 } else if (!error.empty()) {
374 LOG(INFO) << "vpd succeeded but with error logs: " << error;
Amin Hassani1677e812017-06-21 13:36:36 -0700375 }
376
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800377 vector<string> vpd_dump_cmd = {"dump_vpd_log", "--force"};
Amin Hassani3a4caa12019-11-06 11:12:28 -0800378 if (!Subprocess::SynchronousExec(vpd_dump_cmd, &exit_code, &output, &error) ||
Amin Hassani1677e812017-06-21 13:36:36 -0700379 exit_code) {
Amin Hassani7cc8bb02019-01-14 16:29:47 -0800380 LOG(ERROR) << "Failed to cache " << kActivePingKey << " using dump_vpd_log"
Amin Hassani3a4caa12019-11-06 11:12:28 -0800381 << " with exit code: " << exit_code << " with output: " << output
382 << " and error: " << error;
Amin Hassani80f4d4c2018-05-16 13:34:00 -0700383 return false;
Amin Hassani3a4caa12019-11-06 11:12:28 -0800384 } else if (!error.empty()) {
385 LOG(INFO) << "dump_vpd_log succeeded but with error logs: " << error;
Amin Hassani1677e812017-06-21 13:36:36 -0700386 }
Amin Hassani80f4d4c2018-05-16 13:34:00 -0700387 return true;
Amin Hassani1677e812017-06-21 13:36:36 -0700388}
389
Alex Deymo42432912013-07-12 20:21:15 -0700390} // namespace chromeos_update_engine