Swind / pure-python-adb

This is pure-python implementation of the ADB client.
MIT License
553 stars 104 forks source link

Multiple Devices Error #93

Open sean-boothby opened 2 years ago

sean-boothby commented 2 years ago

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 commented 2 years ago

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')

ebisek-logi commented 2 years ago

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

sean-boothby commented 2 years ago

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

sean-boothby commented 2 years ago

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! 🤷‍♂️