Search code examples
androidadb

Android adb & adbd


I have next situation:
I got 2 version of adb and 2 versions of adbd on 2 different devices.
How can i use both versions of adb from my workstation for these 2 devices.
I mean: 1 adb for 1 device. 2 adb for 2 device.

Now i have following situation: Every time when i run another adb, previous adb server kills and new one starts.

How can I workaround it?


Solution

  • I think you are asking the wrong question. What I think you want is to run two adb commands at once on different phones. Is that correct?

    If so what you are looking for is

    adb -s DEVICE_SERIAL xxx
    

    where DEVICE_SERIAL is the value shown when you run adb devices and xxx is the command you want to run. Use adb devices for a list of connected devices.

    This only requires you to have one version of adb installed, just open up a new terminal and run the command for the different serial numbered device!