summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2019-04-17 05:12:22 +0200
committerandroid-build-team Robot <android-build-team-robot@google.com>2019-04-17 05:12:22 +0200
commita99411716f0d9c629ce9604407a8ac2d2319b4e9 (patch)
tree279c9dd2c473ab8f09df78e749d8b69f7729305a /recovery_main.cpp
parentSnap for 5434517 from 7df2da5948d7751385b193bdc6e85a8e8b721536 to qt-release (diff)
parentDO NOT MERGE: Move load & restore logs to logging.cpp (diff)
downloadandroid_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar.gz
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar.bz2
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar.lz
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar.xz
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.tar.zst
android_bootable_recovery-a99411716f0d9c629ce9604407a8ac2d2319b4e9.zip
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp16
1 files changed, 4 insertions, 12 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index b41368d7b..5f3ab76dd 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -50,8 +50,8 @@
#include "common.h"
#include "fastboot/fastboot.h"
-#include "logging.h"
-#include "minadbd/minadbd.h"
+#include "install/wipe_data.h"
+#include "otautil/logging.h"
#include "otautil/paths.h"
#include "otautil/roots.h"
#include "otautil/sysutil.h"
@@ -322,16 +322,6 @@ int main(int argc, char** argv) {
// Take action to refresh pmsg contents
__android_log_pmsg_file_read(LOG_ID_SYSTEM, ANDROID_LOG_INFO, filter, logrotate, &do_rotate);
- // If this binary is started with the single argument "--adbd", instead of being the normal
- // recovery binary, it turns into kind of a stripped-down version of adbd that only supports the
- // 'sideload' command. Note this must be a real argument, not anything in the command file or
- // bootloader control block; the only way recovery should be run with this argument is when it
- // starts a copy of itself from the apply_from_adb() function.
- if (argc == 2 && strcmp(argv[1], "--adbd") == 0) {
- minadbd_main();
- return 0;
- }
-
time_t start = time(nullptr);
// redirect_stdio should be called only in non-sideload mode. Otherwise we may have two logger
@@ -445,6 +435,8 @@ int main(int argc, char** argv) {
ui->Print("Warning: No file_contexts\n");
}
+ SetLoggingSehandle(sehandle);
+
std::atomic<Device::BuiltinAction> action;
std::thread listener_thread(ListenRecoverySocket, ui, std::ref(action));
listener_thread.detach();