Swind / pure-python-adb

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

Connection read() gives blank output incase device disconnects and reconnects again #100

Open saibhaskar24 opened 1 year ago

saibhaskar24 commented 1 year ago

When adding handler to shell() call for adb logcat and device get disconnected then it starts printing empty string. When we reconnect the device still the output is blank.

I am trying to run shell() in thread.

I went through the code and saw it's done using socket file and i feel socket closes with some error and it's unable to reconnect itself once device is up.

ppadb/connection.py

do we have any solution for this?