This repository has been archived by the owner on Sep 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 128
/
cmd_shex_usage.txt
86 lines (66 loc) · 2.39 KB
/
cmd_shex_usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
-t
--force-tty
Allocate a PTY for remote command's standard streams
even when CMD is given
-T
--disable-tty
Never give the remote command a pseudo-terminal for its
standard streams.
-E EXENAME
--exename EXENAME
Run EXENAME on remote host. Default is CMD, which becomes
argv[0] in any case.
-r
--root
Run remote command or shell as root.
-u USER
--user USER
Run remote command or shell as USER.
-U
--socket
Use a socketpair for child stdin and stdout.
-D
--no-ctty
Run child without a controlling terminal. On disconnect,
child will not receive SIGHUP as it normally would.
-C DIR
--chdir DIR
Change to DIR before executing child.
-X TRANSPORT
--transport TRANSPORT
Connect over the given transport. The default is "shell".
"shell" means to run the fb-adb protocol over an "adb shell"
connection. This method is the most reliable.
"unix" means to run the fb-adb protocol over an AF_UNIX socket
connection forwarded over ADB. This method may transfer data
faster than the shell transport, but it is experimental may take
slightly longer to set up.
"tcp:HOST,PORT" means to use a TCP socket to connect from the
device to the host. fb-adb automatically manages making the
connection, but it cannot automatically figure out on what network
address the device can reach the host. You must tell it what
address to bind to: HOST and PORT. HOST and PORT are any strings
accepted as the node and service arguments, respectively, to
getaddr(3), and can by names or numbers.
Examples: "tcp:10.2.5.1,12345" and "tcp:myhost.example,gopher"
This transport is typically much faster than the others: it
bypasses adb completely.
Note that traffic on this connection is unencrypted.
-Y NAME=VALUE
--setenv NAME=VALUE
Set the environment variable NAME to VALUE in the child.
fb-adb begins with the default environment inherited from the
shell. fb-adb then applies the environment modifications
described by -Y, -K, and -F in order. The child inherits the
resulting environment.
-K NAME
--unsetenv NAME
Unset the environment variable NAME in the child.
-F
--clearenv
Unset all environment variables in the child.
-h
--help
Display this message.
-d, -e, -s, -p, -H, -P
Control the device to which fb-adb connects. See adb help.