Fix: place -s before adb subcommand and improve logging #50
Fix: place -s before adb subcommand and improve logging #50mhils merged 2 commits intomitmproxy:mainfrom
Conversation
|
Hi @Davis-3450 Good to merge for me. |
|
Great! |
|
shell=False breaks on (my) linux as it causes subprocess.run() to interpret the whole string as a command, not the command + args. refactoring the cmd to be a list would probably be better for all.... |
Have you tried setting it to I also agree that a list is better, safer and more maintainable but would imply a big refactor. Notice that I’ll take a look at this, If you can help me test it, I’d really appreciate it <3 |
|
yes it works fine with True. I have only been able to test on my computer though, |
In this PR I have addressed the following issue:
-swas in the wrong order (a bug introduced by me).it now follows their syntax adb
Side notes:
String based commands can be fragile but as of now everything seems to be working and that's how the project was setup, a migration from strings to list would be beneficial.
I tested this with windows and worked fine, however testing in other platforms would be good.
Heres my little "test" script: gist
Risk: low sope