When performing network ADB debugging on the RK3399 Android 7.1.2, if multiple computers connect to the same Android device, the first connected computer can operate normally, while subsequent connections see the device status as OFFLINE. After analyzing the ADBD related code, it was found that there was no distinction made for ACCEPT Client handling, so the relevant code was modified as follows:
Modified the content of the system/core/adb/transport_local.cpp file as follows: In the static void server_socket_thread(void* arg) function, change the following content:
register_socket_transport(fd, "host", port, 1);
to:
std::string serial = android::base::StringPrintf("host-%d", fd);if (register_socket_transport(fd, serial.c_str(), port, 1) != 0) { adb_close(fd);}
The complete git diff information is shown in the screenshot below:

After making the modifications, recompiling allows multiple computers to simultaneously access the same Android 7.1.2 device via network ADB.