I'm reading the source code of ADB, which comes from AOSP. I traced the flow of receiving the command adb devices
. I found that the client sends this command to the server and then reads the answer from the server. But where is the logic of the server that handles this message? I can't find it. Can you point it out for me? The source can be found here. I'm referring to the Linux version.
Ah, it's in adb.cpp
, following this line.