How can I `adb pull` a large file when the USB connection breaks continuously? I want to transfer a large file with adb pull, but my USB connection disconnects all the time, interrupting the transfer. How can I make this work?
Here's a Python 3 script that implements a workaround based on adb and dd. It continuously retries and resumes download when disconnection happens.

For me the performance is the same as adb pull. If you experience problems with performance—try to play with BUFFER_SIZE value.