-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple devices not working with autorun and autostart #134
Comments
Does the other device disappear temporarily when you plug a new one? Stop gnirehtet, unplug all the devices, and execute:
while it's running, plug one device, then the other. Could you paste the result, please? Do the same with:
|
No. The first device remained working and did not disappear when the second one is plugged in.
Plugging in the second one shows
Running
Continue to plug in the second one it additionally shows
|
Thank you for the results. They are as expected. I can't reproduce the problem. With 2 devices, |
OK Thanks. I will investigate further and report back. |
I investigate a little more and found that if both devices were plugged in before running
When only one device is plugged in before running
Please see if you can reproduce this situation. |
You're right, it's broken. I first thought it was only the java version, but in fact the Rust version is also affected. I was confused because when I tested the client was already started, so the problem was not visible. The problem is that I assumed that the I will work on that when I have some time. |
The old implementation assumed that track-devices provided one device state per packet (the one that have changed). In fact, it always resends the whole list: <https://android.googlesource.com/platform/system/core/+/oreo-release/adb/SERVICES.TXT#27> Therefore, keep the last connected devices list, parse the new list and start gnirehtet client on new connected devices. Fixes <#134>.
I just fixed this bug on |
Included in v2.3 released today. |
I don't know why , but in my pc , I will get |
@mythsman This is because echo by default appends a trailling new line to the message, |
I am running on RPi with Raspian Stretch. I manually install apk onto two devices. Running
./gnirehtet autorun
or./gnirehtet autostart
and then connecting two devices simultaneously, only one device will work. The other device always showDisconnected from relay server
. However, if I run./gnirehtet start [serial]
for each device, then both devices work. Doesautorun
only support a single device at a time? Is it possible to make it support multiple devices simultaneously?The text was updated successfully, but these errors were encountered: