Open lp1293714059 opened 2 years ago
I found that there is no error with this code order, Is it okay to execute code in a certain order?:
device3 = AdbDeviceUsb(serial="230YT16C83002G") # COM3
device3.connect(rsa_keys=[signer], auth_timeout_s=0.1)
device2 = AdbDeviceUsb(serial="230YV16C83002B") # COM5
device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)
I tried to connect three android devices at the same time, I found that it can only be executed in the following code sequence without error:
device3 = AdbDeviceUsb(serial="230YT16C83002G") # COM3
device3.connect(rsa_keys=[signer], auth_timeout_s=0.1)
device4 = AdbDeviceUsb(serial="230YV41D4W001J") # COM17
device4.connect(rsa_keys=[signer], auth_timeout_s=0.1)
device2 = AdbDeviceUsb(serial="230YV16C83002B") # COM5
device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)
From the above phenomenon, it seems that there is no correlation with the order of COM ports. I am very confused. @JeffLIrion Could you help me solve this problem?o(╥﹏╥)o
Bro, have you solved this problem?
Bro, have you solved this problem?
I havent solved it. But I found that the code can run normally like this:
device3 = AdbDeviceUsb(serial="230YT16C83002G") # COM3
device4 = AdbDeviceUsb(serial="230YV41D4W001J") # COM17
device2 = AdbDeviceUsb(serial="230YV16C83002B") # COM5
device3.connect(rsa_keys=[signer], auth_timeout_s=0.1)
device4.connect(rsa_keys=[signer], auth_timeout_s=0.1)
device2.connect(rsa_keys=[signer], auth_timeout_s=0.1)
It seems that all AdbDeviceUsb objects need to be created first, and then connect them, so that no error will be reported.
Creating two AdbDeviceUsb objects with different SNs will report an error: