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:
14
adb-channel
Executable file
14
adb-channel
Executable 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"
|
||||
Reference in New Issue
Block a user