Pipe into `adb shell`

前端 未结 3 766
萌比男神i
萌比男神i 2021-02-14 06:29

Why can I not pipe into adb shell?

[klm@kth ~]$ echo foo | adb shell cat
^C

The above command hangs on my 4.0.1 emulator, and I\'m

3条回答
  •  粉色の甜心
    2021-02-14 07:07

    This is correct. This functionality has not been implemented.

    Update:

    A lot of bugs have been fixed and new features implemented in adb since the time the original question had been posted. Including support for proper stdin handling by adb shell. So there is no need for the netcat workarounds anymore.

提交回复
热议问题