Skip to content

Commit

Permalink
Issue google#11: adb-channel fix (google#13)
Browse files Browse the repository at this point in the history
* Consistent names, typo

* adb shell -n: don't read from stdin
  • Loading branch information
CNG authored and divVerent committed Nov 27, 2018
1 parent fd6a98c commit 491158f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,20 +98,20 @@ convenience wrapper to connect a networking socket on the Android device to
file descriptors on the PC side. It can even launch and shut down the given
application automatically!

It is best used as a `ProxyCommand` for SSH (intall
It is best used as a `ProxyCommand` for SSH (install
[SSHelper](https://play.google.com/store/apps/details?id=com.arachnoid.sshelper)
first) using a configuration like:

```
Host sshhelper
Host sshelper
Port 2222
ProxyCommand adb-channel tcp:%p com.arachnoid.sshelper/.SSHelperActivity 1
```

After adding this to `~/.ssh/config`, run `ssh-copy-id sshhelper`.
After adding this to `~/.ssh/config`, run `ssh-copy-id sshelper`.

Congratulations! You can now use `rsync`, `sshfs` etc. to the host name
`sshhelper`.
`sshelper`.

Contributing
============
Expand Down
2 changes: 1 addition & 1 deletion adb-channel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ atexit() {
trap atexit EXIT
trap 'exit 0' HUP INT ALRM TERM

[ -z "${activity}" ] || adb shell am start -W ${activity}
[ -z "${activity}" ] || adb shell -n am start -W ${activity}
[ -z "${delay}" ] || sleep "${delay}"
adb forward localfilesystem:"${t}/sock" "${remote}"
socat stdio unix:"${t}/sock"

0 comments on commit 491158f

Please sign in to comment.