summaryrefslogtreecommitdiffstats
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2019-04-12 02:41:48 +0200
committerandroid-build-merger <android-build-merger@google.com>2019-04-12 02:41:48 +0200
commitde013b52b12e8e8a4ad00a1b4eea9fa5a738079d (patch)
tree065bc9ebdd836949a7de3923237b2605c055020d /recovery_main.cpp
parentMerge "Build libinstall as a static library." am: 38d5e60874 am: a8cc70fbe1 (diff)
parentMerge "Add socket communication between recovery and minadbd" am: 6c5f70b9b2 (diff)
downloadandroid_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar.gz
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar.bz2
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar.lz
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar.xz
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.tar.zst
android_bootable_recovery-de013b52b12e8e8a4ad00a1b4eea9fa5a738079d.zip
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index b41368d7b..8b4ad5a32 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -51,7 +51,6 @@
#include "common.h"
#include "fastboot/fastboot.h"
#include "logging.h"
-#include "minadbd/minadbd.h"
#include "otautil/paths.h"
#include "otautil/roots.h"
#include "otautil/sysutil.h"
@@ -322,16 +321,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