summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--adbconnection/adbconnection.cc5
-rw-r--r--adbconnection/adbconnection.h16
2 files changed, 7 insertions, 14 deletions
diff --git a/adbconnection/adbconnection.cc b/adbconnection/adbconnection.cc
index 4759bed768..82e57af536 100644
--- a/adbconnection/adbconnection.cc
+++ b/adbconnection/adbconnection.cc
@@ -30,6 +30,7 @@
#include "adbconnection/client.h"
#include "android-base/endian.h"
#include "android-base/stringprintf.h"
+#include "android-base/unique_fd.h"
#include "art_field-inl.h"
#include "art_method-alloc-inl.h"
#include "base/file_utils.h"
@@ -483,10 +484,6 @@ void AdbConnectionState::SendAgentFds(bool require_handshake) {
}
}
-android::base::unique_fd AdbConnectionState::ReadFdFromAdb() {
- return android::base::unique_fd(adbconnection_client_receive_jdwp_fd(control_ctx_.get()));
-}
-
bool AdbConnectionState::SetupAdbConnection() {
int sleep_ms = 500;
const int sleep_max_ms = 2 * 1000;
diff --git a/adbconnection/adbconnection.h b/adbconnection/adbconnection.h
index 6500b79164..63235b24e0 100644
--- a/adbconnection/adbconnection.h
+++ b/adbconnection/adbconnection.h
@@ -17,22 +17,20 @@
#ifndef ART_ADBCONNECTION_ADBCONNECTION_H_
#define ART_ADBCONNECTION_ADBCONNECTION_H_
+#include <jni.h>
#include <stdint.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+
+#include <limits>
#include <memory>
#include <vector>
-#include <limits>
-#include "android-base/unique_fd.h"
#include "adbconnection/client.h"
-
-#include "base/mutex.h"
#include "base/array_ref.h"
+#include "base/mutex.h"
#include "runtime_callbacks.h"
-#include <sys/socket.h>
-#include <sys/un.h>
-#include <jni.h>
-
namespace adbconnection {
static constexpr char kJdwpControlName[] = "\0jdwp-control";
@@ -103,8 +101,6 @@ class AdbConnectionState {
std::string MakeAgentArg();
- android::base::unique_fd ReadFdFromAdb();
-
void SendAgentFds(bool require_handshake);
void CloseFds();