androiddump (1)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
androiddump - Provide interfaces to capture from Android devicesSYNOPSIS
androiddump [ --help ] [ --version ] [ --extcap-interfaces ] [ --extcap-dlts ] [ --extcap-interface=<interface> ] [ --extcap-config ] [ --capture ] [ --fifo=<path to file or pipe> ] [ --adb-server-ip=<IP
address> ]
[ --adb-server-tcp-port=<TCP
port> ]
[ --logcat-text=<TRUE
or FALSE
> ]
[ --bt-server-tcp-port=<TCP
port> ]
[ --bt-forward-socket=<TRUE
or FALSE
> ]
[ --bt-local-ip=<IP
address> ]
[ --bt-local-tcp-port=<TCP
port> ]
androiddump --extcap-interfaces [ --adb-server-ip=<
IP
address> ]
[ --adb-server-tcp-port=<TCP
port> ]
androiddump --extcap-interface=<interface> [ --extcap-dlts ]
androiddump --extcap-interface=<interface> [ --extcap-config ]
androiddump --extcap-interface=<interface> --fifo=<path to file or pipe> --capture
DESCRIPTION
Androiddump is a extcap tool that provide interfaces to capture from Android device. There is only two requirements:1. You must have Android
SDK
and add it PATH
environment variable.
PATH
should contain directory with tools like ``adb'' and ``android''.
Android SDK
for various platform are available on:
developer.android.com/sdk/index.html#Other
2. You must have permission to Android devices. Some Android devices requires on-screen authentication.
Supported interfaces:
- 1. Logcat Main (binary or text)
- 2. Logcat System (binary or text)
- 3. Logcat Events (binary or text)
- 4. Logcat Radio (binary or text)
- 5. Logcat Crash (text; Lollipop)
- 6. Bluetooth Hcidump (<Kitkat)
- 7. Bluetooth Bluedroid External Parser (Kitkat)
- 8. Bluetooth BtsnoopNet (Lollipop)
- 9. WiFi tcpdump
Please note that it will work also for FirefoxOS.
OPTIONS
- --help
- Print program arguments.
- --version
- Print program version.
- --extcap-interfaces
- List available interfaces.
- --extcap-interface=<interface>
- Use specified interfaces.
- --extcap-dlts
- List DLTs of specified interface.
- --extcap-config
- List configuration options of specified interface.
- --capture
- Start capturing from specified interface save saved it in place specified by --fifo.
- --fifo=<path to file or pipe>
- Save captured packet to file or send it through pipe.
- --adb-server-ip=<IPaddress>
-
Use other then default (127.0.0.1) ADBdaemon'sIPaddress.
- --adb-server-tcp-port=<TCPport>
-
Use other then default (5037) ADBdaemon'sTCPport.
- --logcat-text=<TRUEorFALSE>
-
If TRUEthen use text logcat rather then binary. This option has effect only on Logcat interfaces. This have no effect from Lollipop where is no binary Logcat available.
Defaults to
FALSE. - --bt-server-tcp-port=<TCPport>
-
Use other then default Bluetooth server TCPport on Android side. On Lollipop defaults is 8872, earlier 4330.
- --bt-forward-socket=<TRUEorFALSE>
-
If TRUEthen socket from Android side is forwarded to host side.
Defaults to
FALSE. - --bt-local-ip=<IPaddress>
-
Use other then default (127.0.0.1) IPaddress on host side for forwarded socket.
- --bt-local-tcp-port=<TCPport>
- Specify port to be used on host side for forwarded socket.
EXAMPLES
To see program arguments:
androiddump --help
To see program version:
androiddump --version
To see interfaces:
androiddump --extcap-interfaces Example output: interface {display=Android Logcat Main}{value=android-logcat-main-MSM7627A} interface {display=Android Logcat System}{value=android-logcat-system-MSM7627A} interface {display=Android Logcat Radio}{value=android-logcat-radio-MSM7627A} interface {display=Android Logcat Events}{value=android-logcat-events-MSM7627A} interface {display=Android Bluetooth Hcidump}{value=android-bluetooth-hcidump-MSM7627A}
To see interface DLTs:
androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --extcap-dlts Example output: dlt {number=99}{name=BluetoothH4}{display=Bluetooth HCI UART transport layer plus pseudo-header}
To see interface configuration options:
androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --extcap-config Example output: arg {number=0}{call=--adb-server-ip}{display=ADB Server IP Address}{type=string}{default=127.0.0.1} arg {number=1}{call=--adb-server-tcp-port}{display=ADB Server TCP Port}{type=integer}{range=0,65535}{default=5037}
To capture:
androiddump --extcap-interface=android-bluetooth-hcidump-MSM7627A --fifo=/tmp/bluetooth.pcapng --capture
NOTE:
To stop capturing CTRL+C/kill/terminate application.
SEE ALSO
wireshark(1), tshark(1), dumpcap(1), extcap(4)NOTES
Androiddump is part of the Wireshark distribution. The latest version of Wireshark can be found at <www.wireshark.org>.
HTML
versions of the Wireshark project man pages are available at:
<www.wireshark.org/docs/man-pages>.
AUTHORS
Original Author -------- ------ Michal Labedzki <michal.labedzki[AT]tieto.com> Contributors ------------ Roland Knall <rknall[AT]gmail.com>