JeffLIrion / adb_shell

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

Streaming Shell doesn't result in a stream ? #224

Open wimmatthijs opened 1 year ago

wimmatthijs commented 1 year ago

Description

I think this is a request for an enhancement or feature.

Or maybe i'm just not understanding this well enough, but the streaming_shell command yields bytes or a string I was hoping to find a command that would actually produce a stream that can be consumed in the traditional sense For example during the execution of my work i would like to dump the logcat feedback of specific processes into a text file. i was hoping to use multipe adb logcat commands and just simply dump those streams into a txt file for as long as the process runs.

I do see some other functions using the python stream objects such as BytesIO. Maybe it can be done with the hidden functions? Looking for some advice from somebody a bit more versed in the adb protocol.