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-17 23:07:23 +0200
commitc6dc325e88a25201aa3856e6532c3ed14203a376 (patch)
treea5a2cf98f7b31abbfa6116be2037634a1925b88f /minadbd/minadbd_services.cpp
parentMerge "Move load & restore logs to logging.cpp" (diff)
downloadandroid_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar.gz
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar.bz2
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar.lz
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar.xz
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.tar.zst
android_bootable_recovery-c6dc325e88a25201aa3856e6532c3ed14203a376.zip
Diffstat (limited to 'minadbd/minadbd_services.cpp')
-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 f2b65c09b..eaf88ecc2 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));