diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-05-04 19:26:11 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-04 19:26:11 +0200 |
commit | 420f7f8df45b16aa984396270419cacf11baeab6 (patch) | |
tree | f376f2005a2bc514781e4f94ca176378ab9a9f68 /recovery.cpp | |
parent | Merge "otautil: Only build the needed files for host build." (diff) | |
parent | Move reboot() from common.h into otautil/sysutil.h. (diff) | |
download | android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.gz android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.bz2 android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.lz android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.xz android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.tar.zst android_bootable_recovery-420f7f8df45b16aa984396270419cacf11baeab6.zip |
Diffstat (limited to 'recovery.cpp')
-rw-r--r-- | recovery.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/recovery.cpp b/recovery.cpp index 890f99c53..7219771cb 100644 --- a/recovery.cpp +++ b/recovery.cpp @@ -67,9 +67,10 @@ #include "fuse_sideload.h" #include "install.h" #include "minui/minui.h" -#include "otautil/DirUtil.h" +#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") |