From 094fd86b1423fbb4f4c421447ddf6d10a5027c7b Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Thu, 13 Mar 2014 11:21:58 +0100 Subject: [PATCH] adb: Increase the max number of emulator instances to 64 When the ADB server starts, it probes the localhost ports to find existing emulator instances, starting from 5555 with increments of 2, and stopping after ADB_LOCAL_TRANSPORT_MAX tries, which was set to 16. This means that the ADB server could not detect on startup more than 16 existing emulator instances. This increases the limit to 64, to match a corresponding change on the emulator side. See https://android-review.googlesource.com/#/c/83553/ Change-Id: I35c69f8017298c3e5797bd396b8d788d44eaa00f --- adb/transport_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adb/transport_local.c b/adb/transport_local.c index d2dbca6f6..948cc1581 100644 --- a/adb/transport_local.c +++ b/adb/transport_local.c @@ -48,7 +48,7 @@ static inline void fix_endians(apacket *p) * local transport it is connected. The list is used to detect when we're * trying to connect twice to a given local transport. */ -#define ADB_LOCAL_TRANSPORT_MAX 16 +#define ADB_LOCAL_TRANSPORT_MAX 64 ADB_MUTEX_DEFINE( local_transports_lock );