summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-04 08:01:13 +0200
committerTao Bao <tbao@google.com>2018-05-04 08:18:38 +0200
commit2c52639d01cb2ff9f0a805e0dda72d39a5487d88 (patch)
treef376f2005a2bc514781e4f94ca176378ab9a9f68 /recovery.cpp
parentotautil: Rename dir/sys/thermal utils. (diff)
downloadandroid_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.gz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.bz2
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.lz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.xz
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.tar.zst
android_bootable_recovery-2c52639d01cb2ff9f0a805e0dda72d39a5487d88.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/recovery.cpp b/recovery.cpp
index d8f56b83e..7219771cb 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -70,6 +70,7 @@
#include "otautil/dirutil.h"
#include "otautil/error_code.h"
#include "otautil/paths.h"
+#include "otautil/sysutil.h"
#include "roots.h"
#include "rotate_logs.h"
#include "screen_ui.h"
@@ -177,14 +178,6 @@ bool is_ro_debuggable() {
return android::base::GetBoolProperty("ro.debuggable", false);
}
-bool reboot(const std::string& command) {
- std::string cmd = command;
- if (android::base::GetBoolProperty("ro.boot.quiescent", false)) {
- cmd += ",quiescent";
- }
- return android::base::SetProperty(ANDROID_RB_PROPERTY, cmd);
-}
-
// command line args come from, in decreasing precedence:
// - the actual command line
// - the bootloader control block (one per line, after "recovery")