mirror of
https://github.com/google/adb-sync.git
synced 2026-01-03 01:48:02 +00:00
* Consistent names, typo * adb shell -n: don't read from stdin
This commit is contained in:
committed by
divVerent
parent
fd6a98cfba
commit
491158ff46
@@ -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
|
file descriptors on the PC side. It can even launch and shut down the given
|
||||||
application automatically!
|
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)
|
[SSHelper](https://play.google.com/store/apps/details?id=com.arachnoid.sshelper)
|
||||||
first) using a configuration like:
|
first) using a configuration like:
|
||||||
|
|
||||||
```
|
```
|
||||||
Host sshhelper
|
Host sshelper
|
||||||
Port 2222
|
Port 2222
|
||||||
ProxyCommand adb-channel tcp:%p com.arachnoid.sshelper/.SSHelperActivity 1
|
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
|
Congratulations! You can now use `rsync`, `sshfs` etc. to the host name
|
||||||
`sshhelper`.
|
`sshelper`.
|
||||||
|
|
||||||
Contributing
|
Contributing
|
||||||
============
|
============
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ atexit() {
|
|||||||
trap atexit EXIT
|
trap atexit EXIT
|
||||||
trap 'exit 0' HUP INT ALRM TERM
|
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}"
|
[ -z "${delay}" ] || sleep "${delay}"
|
||||||
adb forward localfilesystem:"${t}/sock" "${remote}"
|
adb forward localfilesystem:"${t}/sock" "${remote}"
|
||||||
socat stdio unix:"${t}/sock"
|
socat stdio unix:"${t}/sock"
|
||||||
|
|||||||
Reference in New Issue
Block a user