adbkit icon indicating copy to clipboard operation
adbkit copied to clipboard

Sometimes `client.listDevices()` returns an error with `null`, like ADB failed to start

Open niftylettuce opened this issue 9 years ago • 2 comments

Any insight as to why this randomly happens? In order to get listDevices and trackDevices to work again I have to kill my process, then run adb devices manually on command line for the ADB server to start. Why isn't it starting on its own?

niftylettuce avatar Jan 07 '16 04:01 niftylettuce

We would have to implement some kind of an overly complex process manager to keep the adb process alive reliably. On our machines we use systemd to watch adb.

On Thursday, 7 January 2016, niftylettuce [email protected] wrote:

Any insight as to why this randomly happens? In order to get listDevices and trackDevices to work again I have to kill my process, then run adb devices manually on command line for the ADB server to start. Why isn't it starting on its own?

— Reply to this email directly or view it on GitHub https://github.com/openstf/adbkit/issues/39.

sorccu avatar Jan 07 '16 04:01 sorccu

@sorccu For some reason, interestingly this happens every ~6 hrs for me. I try to do listDevices every 5 mins.

rkavalap avatar Sep 17 '16 05:09 rkavalap