summaryrefslogtreecommitdiff
path: root/common/utils.h
diff options
context:
space:
mode:
authorAlex Deymo <deymo@google.com>2016-06-03 19:26:58 -0700
committerAlex Deymo <deymo@google.com>2016-06-09 06:02:30 +0000
commitfb905d9b8d49f8fe41297c7aba2dd0942f1be311 (patch)
treea7a7567b0178b335d6ba876e800b07d6644369a8 /common/utils.h
parent675d0d209eec584968cee9984c093c6d07bee62e (diff)
Implement powerwash on Android.
Powerwash, the name for the equivalent of a factory reset or /data wipe, can be triggered in Android by writing the desired command to the recovery command file and rebooting into recovery. This patch moves the powerwash scheduling/canceling logic to the HardwareInterface and implements it on Android. Bug: 28700985 TEST=Called update_engine_client passing POWERWASH=1, BCB is stored up to offset 832. Change-Id: If737fd4b9b3e2ed9bce709b3b59f22e9f0a3dc9a
Diffstat (limited to 'common/utils.h')
-rw-r--r--common/utils.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/common/utils.h b/common/utils.h
index e950b151..39874843 100644
--- a/common/utils.h
+++ b/common/utils.h
@@ -265,16 +265,6 @@ std::string FormatTimeDelta(base::TimeDelta delta);
// it'll return the same value again.
ErrorCode GetBaseErrorCode(ErrorCode code);
-// Creates the powerwash marker file with the appropriate commands in it. Uses
-// |file_path| as the path to the marker file if non-null, otherwise uses the
-// global default. Returns true if successfully created. False otherwise.
-bool CreatePowerwashMarkerFile(const char* file_path);
-
-// Deletes the marker file used to trigger Powerwash using clobber-state. Uses
-// |file_path| as the path to the marker file if non-null, otherwise uses the
-// global default. Returns true if successfully deleted. False otherwise.
-bool DeletePowerwashMarkerFile(const char* file_path);
-
// Decodes the data in |base64_encoded| and stores it in a temporary
// file. Returns false if the given data is empty, not well-formed
// base64 or if an error occurred. If true is returned, the decoded