JeffLIrion / adb_shell

A Python implementation of ADB with shell and FileSync functionality.
Apache License 2.0
530 stars 60 forks source link

Using pull on BytesIO object #202

Closed JartanFTW closed 2 years ago

JartanFTW commented 2 years ago

Due to this programs complexity, I'm struggling to subclass to use pull onto a BytesIO object rather than an actual file on my machine.

Is there any sort of implemented way I can do this that I'm missing in my reading of the docs?

JeffLIrion commented 2 years ago

That's not supported, but you should be able to pretty much copy & paste these lines: https://github.com/JeffLIrion/adb_shell/blob/ba3fb4b9e7acfb6e9b8851bed65d5bb4c3b20733/adb_shell/adb_device.py#L913-L919

JartanFTW commented 2 years ago

Got it working, thanks for the assistance.

JeffLIrion commented 2 years ago

This is now supported in version 0.4.3.

https://github.com/JeffLIrion/adb_shell/pull/203