1 include::../attributes.adoc[]
6 :copycss: {css_dir}/{stylesheet}
10 androiddump - Provide interfaces to capture from Android devices
18 [ *--extcap-version* ]
20 [ *--extcap-interfaces* ]
22 [ *--extcap-interface*=<interface> ]
24 [ *--extcap-capture-filter*=<capture filter> ]
26 [ *--fifo*=<path to file or pipe> ]
27 [ *--adb-server-ip*=<IP address> ]
28 [ *--adb-server-tcp-port*=<TCP port> ]
29 [ *--logcat-text*=<TRUE or FALSE> ]
30 [ *--bt-server-tcp-port*=<TCP port> ]
31 [ *--bt-forward-socket*=<TRUE or FALSE> ]
32 [ *--bt-local-ip*=<IP address> ]
33 [ *--bt-local-tcp-port*=<TCP port> ]
38 [ *--adb-server-ip*=<IP address> ]
39 [ *--adb-server-tcp-port*=<TCP port> ]
43 *--extcap-interface*=<interface>
48 *--extcap-interface*=<interface>
53 *--extcap-interface*=<interface>
54 *--fifo*=<path to file or pipe>
59 *Androiddump* is a extcap tool that provide interfaces to capture from
60 an Android device. There are only two requirements:
62 1. You must have the Android SDK and add it to your PATH environment variable.
63 PATH should contain directory with tools like "adb" and "android".
64 Android SDK for various platform are available on:
65 https://developer.android.com/sdk/index.html#Other
67 2. You must have permission to capture from the Android device.
68 Some Android devices require on-screen authentication.
72 1. Logcat Main (binary [++<=++Jelly Bean] or text)
73 2. Logcat System (binary [++<=++Jelly Bean] or text)
74 3. Logcat Events (binary [++<=++Jelly Bean] or text)
75 4. Logcat Radio (binary [++<=++Jelly Bean] or text)
76 5. Logcat Crash (text; from Lollipop)
77 6. Bluetooth Hcidump [++<=++Jelly Bean]
78 7. Bluetooth Bluedroid External Parser [Kitkat]
79 8. Bluetooth BtsnoopNet [>=Lollipop]
80 9. WiFi/Ethernet tcpdump [needs tcpdump on phone]
82 Please note that Androiddump will work also for FirefoxOS or other
83 Android-based operating systems.
88 Print program arguments.
91 Print program version.
94 Print extcapized version.
97 Print additional messages.
100 List available interfaces.
102 --extcap-interface=<interface>::
103 Use specified interfaces.
106 List DLTs of specified interface.
109 List configuration options of specified interface.
111 --extcap-capture-filter=<capture filter>::
112 The capture filter. It corresponds to the value provided via the *tshark -f*
113 option, and the Capture Filter field next to the interfaces list in the
116 NOTE: This is only respected for Wifi/Ethernet (tcpdump) capturing, not for
120 Start capturing from the specified interface and save it in the location
121 specified with --fifo.
123 --fifo=<path to file or pipe>::
124 Save captured packet to file or send it through pipe.
126 --adb-server-ip=<IP address>::
127 Use other than default (127.0.0.1) ADB daemon's IP address.
129 --adb-server-tcp-port=<TCP port>::
130 Use other than default (5037) ADB daemon's TCP port.
132 --logcat-text=<TRUE or FALSE>::
135 If TRUE then use text logcat rather then binary. This option only has an
137 Logcat interfaces. This have no effect from Lollipop where is no binary Logcat
143 --bt-server-tcp-port=<TCP port>::
146 Use other than default Bluetooth server TCP port on Android side.
147 On Lollipop defaults is 8872, earlier 4330.
150 --bt-forward-socket=<TRUE or FALSE>::
153 If TRUE then socket from Android side is forwarded to host side.
158 --bt-local-ip=<IP address>::
159 Use other than default (127.0.0.1) IP address on host side for forwarded socket.
161 --bt-local-tcp-port=<TCP port>::
162 Specify port to be used on host side for forwarded socket.
166 To see program arguments:
170 To see program version:
172 androiddump --version
176 androiddump --extcap-interfaces
180 interface {display=Android Logcat Main unknown MSM7627A}{value=android-logcat-main-MSM7627A}
181 interface {display=Android Logcat System unknown MSM7627A}{value=android-logcat-system-MSM7627A}
182 interface {display=Android Logcat Radio unknown MSM7627A}{value=android-logcat-radio-MSM7627A}
183 interface {display=Android Logcat Events unknown MSM7627A}{value=android-logcat-events-MSM7627A}
184 interface {display=Android Bluetooth Hcidump unknown MSM7627A}{value=android-bluetooth-hcidump-MSM7627A}
187 Human-readable display name of interfaces contains interface type, one of:
189 android-logcat-main (Android Logcat Main)
190 android-logcat-system (Android Logcat System)
191 android-logcat-radio (Android Logcat Radio)
192 android-logcat-events (Android Logcat Events)
193 android-logcat-text-main (Android Logcat Main)
194 android-logcat-text-system (Android Logcat System)
195 android-logcat-text-radio (Android Logcat Radio)
196 android-logcat-text-events (Android Logcat Events)
197 android-logcat-text-crash (Android Logcat Crash)
198 android-bluetooth-hcidump (Android Bluetooth Hcidump)
199 android-bluetooth-external-parser (Android Bluetooth External Parser)
200 android-bluetooth-btsnoop-net (Android Bluetooth Btsnoop Net)
201 android-tcpdump (Android tcpdump)
203 For tcpdump this is followed by target network device name (like `eth0`).
205 Then Android Device's name if available, otherwise `unknown`.
207 Last part of it is DeviceID - the identificator of the device provided by Android SDK (see `adb devices`).
209 For example: `Android Logcat Main unknown MSM7627A`
211 - `Android Logcat Main` - user-friendly type of interface
212 - `unknown` - name of Android Device
213 - `MSM7627A` - device ID
215 To see interface DLTs:
217 androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --extcap-dlts
220 dlt {number=99}{name=BluetoothH4}{display=Bluetooth HCI UART transport layer plus pseudo-header}
222 To see interface configuration options:
224 androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --extcap-config
227 arg {number=0}{call=--adb-server-ip}{display=ADB Server IP Address}{type=string}{default=127.0.0.1}
228 arg {number=1}{call=--adb-server-tcp-port}{display=ADB Server TCP Port}{type=integer}{range=0,65535}{default=5037}
232 androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --fifo=/tmp/bluetooth.pcapng --capture
234 NOTE: To stop capturing CTRL+C/kill/terminate the application.
238 xref:wireshark.html[wireshark](1), xref:tshark.html[tshark](1), xref:dumpcap.html[dumpcap](1), xref:extcap.html[extcap](4)
242 *Androiddump* is part of the *Wireshark* distribution. The latest version
243 of *Wireshark* can be found at https://www.wireshark.org.
245 HTML versions of the Wireshark project man pages are available at
246 https://www.wireshark.org/docs/man-pages.
252 Michal Labedzki <michal.labedzki[AT]tieto.com>
256 Roland Knall <rknall[AT]gmail.com>