Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

DeviceMonitor does not work #227

Open
rickx opened this issue Sep 8, 2022 · 0 comments
Open

DeviceMonitor does not work #227

rickx opened this issue Sep 8, 2022 · 0 comments

Comments

@rickx
Copy link

rickx commented Sep 8, 2022

The DeviceMonitor seemed like a cool idea. I thought you could start it up and then have a nice automated managing of devices being added and removed while you do other things.
From what I found in the meantime, that's simply not possible. You can have the DeviceMonitor OR you can have all the rest of the adb functionality available through SharpADBClient, but not both at the same time. Issue being: you have basically 1 port of 127.0.0.1 to work with, and 1 socket to that which gives you reliable feedback. If you use multiple sockets to the same port, the DeviceMonitor will not get anything anymore. So to me...it is basically useless. Unless I'm missing something big here...

I read some other issues here. Some are related to the fact that when a new device connects, it will be in offline state and then after a bunch of milliseconds switch to online. When offline, it will not offer any data other than serial and state. That's a manageable thing. But you can make the devicemonitor work for 1 go to to the adbclient. It will work. But you can't execute other commands without damaging that listening channel.

Any thoughts or experiences?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant