1
0
mirror of https://github.com/google/adb-sync.git synced 2026-01-03 01:48:02 +00:00

Issue #11: adb-channel fix (#13)

* Consistent names, typo

* adb shell -n: don't read from stdin
This commit is contained in:
Charlie Gorichanaz
2018-11-27 07:59:35 -08:00
committed by divVerent
parent fd6a98cfba
commit 491158ff46
2 changed files with 5 additions and 5 deletions

View File

@@ -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
============

View File

@@ -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"