pure-python-adb icon indicating copy to clipboard operation
pure-python-adb copied to clipboard

Multiple Devices Error

Open sean-boothby opened this issue 3 years ago • 4 comments

I was trying to run ppadb on my computer with two different phones at the same time. It seems like one phone runs fine but the other instance of ppadb keeps outputting error: more than one device/emulator in the console.

Is there a way to use ppadb with two devices simultaneously? Thank you!

sean-boothby avatar Apr 01 '22 20:04 sean-boothby

To add a little background after importing the library I have tried to do this in two different ways.

  1. device = adb.devices[0] , devicetwo = adb.devices[1] I also tried
  2. device = adb.device('deviceOneSerial'), devicetwo = adb.device(deviceTwoSerial')

sean-boothby avatar Apr 01 '22 20:04 sean-boothby

number 2 should have worked. can you give me the output of the 2) scenario

ebisek-logi avatar Apr 01 '22 20:04 ebisek-logi

The output is - error: more than one device/emulator

sean-boothby avatar Apr 01 '22 20:04 sean-boothby

I am not exactly sure why but it seems like my issue is gone. I was previously running two separate scripts (one per phone). I merged the script into one and there is no longer an issue.

Thank you for your help anyways! 🤷‍♂️

sean-boothby avatar Apr 01 '22 21:04 sean-boothby