Search code examples
adbandroid-source

Where is the ADB server code that handles the "devices" command?


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.


Solution

  • Ah, it's in adb.cpp, following this line.