adb shell sends \r\n instead of \n. Can I tell adb to not change the datastream (just like I can with ssh)?

1 Answer 1


Yes, but:

The linebreak conversion is not done by ADB, but your host system (and its console host), Windows.

This issue has already been discussed on SO, and there are a few posts providing possible solutions. Here are some of them

  • If it is done by GNU/Linux, why can I not do: 'adb shell cat binaryfile > localfile' and have localfile be the same as binaryfile?
    – Ole Tange
    Commented Jun 13, 2017 at 10:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .