summaryrefslogtreecommitdiffstats
path: root/minadbd/minadbd_services.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-04-16 23:22:25 +0200
committerTao Bao <tbao@google.com>2019-04-26 21:20:03 +0200
commit378bfbfc5c6f268c16b7f1a254de0ed36da52012 (patch)
treef9aaf55a643d86f6aed6846fd5649c0bb7817173 /minadbd/minadbd_services.cpp
parentImport translations. DO NOT MERGE (diff)
downloadandroid_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.gz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.bz2
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.lz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.xz
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.tar.zst
android_bootable_recovery-378bfbfc5c6f268c16b7f1a254de0ed36da52012.zip
Diffstat (limited to '')
-rw-r--r--minadbd/minadbd_services.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/minadbd/minadbd_services.cpp b/minadbd/minadbd_services.cpp
index 79e6fc4e0..f0bb70af1 100644
--- a/minadbd/minadbd_services.cpp
+++ b/minadbd/minadbd_services.cpp
@@ -45,10 +45,16 @@
#include "sysdeps.h"
static int minadbd_socket = -1;
+static bool rescue_mode = false;
+
void SetMinadbdSocketFd(int socket_fd) {
minadbd_socket = socket_fd;
}
+void SetMinadbdRescueMode(bool rescue) {
+ rescue_mode = rescue;
+}
+
static bool WriteCommandToFd(MinadbdCommands cmd, int fd) {
char message[kMinadbdMessageSize];
memcpy(message, kMinadbdCommandPrefix, strlen(kMinadbdStatusPrefix));