Relative Content

Tag Archive for python-3.xsubprocessadb

Issues with reading and writing in process with adb console

I am trying to improve the read and write functionality. The task is to have console working while I receive outputs from commands I have send. The issue is I do not know when the response ended e.g. ping local host posts line, after line and somewhen stops, but when working with more commands its unpredictable for me.
The methods I have googled is marking the end marked with some text and dynamic time measuring, but adding echo on the top of every commands sometimes not work properly (some commands does not like having echo after them). My time measuring implementation is clunky too.