summaryrefslogtreecommitdiff
path: root/aosp/update_engine_client_android.cc
diff options
context:
space:
mode:
Diffstat (limited to 'aosp/update_engine_client_android.cc')
-rw-r--r--aosp/update_engine_client_android.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/aosp/update_engine_client_android.cc b/aosp/update_engine_client_android.cc
index 1a68cf49..2b3cfffe 100644
--- a/aosp/update_engine_client_android.cc
+++ b/aosp/update_engine_client_android.cc
@@ -149,6 +149,7 @@ int UpdateEngineClientAndroid::OnInit() {
false,
"Wait for previous update to merge. "
"Only available after rebooting to new slot.");
+ DEFINE_bool(perf_mode, false, "Enable perf mode.");
// Boilerplate init commands.
base::CommandLine::Init(argc_, argv_);
brillo::FlagHelper::Init(argc_, argv_, "Android Update Engine Client");
@@ -237,6 +238,10 @@ int UpdateEngineClientAndroid::OnInit() {
keep_running = true;
}
+ if (FLAGS_perf_mode) {
+ return ExitWhenIdle(service_->setPerformanceMode(true));
+ }
+
if (FLAGS_follow) {
// Register a callback object with the service.
callback_ = new UECallback(this);