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

Add a separate adb-channel tool.

This commit is contained in:
Rudolf Polzer
2014-09-22 10:01:26 +02:00
parent 95b7746cba
commit f7ca1e197b
2 changed files with 36 additions and 0 deletions

14
adb-channel Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
set -e
t=`mktemp -d -t adb-channel.XXXXXX`
atexit() {
adb forward --remove localfilesystem:"${t}/sock"
rm -rf "${t}"
}
trap atexit EXIT
adb forward localfilesystem:"${t}/sock" "${1}"
socat stdio unix:"${t}/sock"