diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2018-05-04 19:43:36 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-04 19:43:36 +0200 |
commit | 13415d9138556586281f032c4f84d329c9f2cb77 (patch) | |
tree | d1ca1805b021c8e7c19d33f0ccbc50d65f7a488a /recovery.cpp | |
parent | Merge "otautil: Only build the needed files for host build." am: 5818e894df (diff) | |
parent | Merge changes I1cc5d702,I32ab9854 (diff) | |
download | android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar.gz android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar.bz2 android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar.lz android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar.xz android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.tar.zst android_bootable_recovery-13415d9138556586281f032c4f84d329c9f2cb77.zip |
Diffstat (limited to '')
-rw-r--r-- | recovery.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/recovery.cpp b/recovery.cpp index d7ece4e35..00f38596c 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") |