ANDROIDDUMP(1) | ANDROIDDUMP(1) |
NAME¶
androiddump - Provide interfaces to capture from Android devices
SYNOPSIS¶
androiddump [ --help ] [ --version ] [ --extcap-version ] [ --debug ] [ --extcap-interfaces ] [ --extcap-dlts ] [ --extcap-interface=<interface> ] [ --extcap-config ] [ --extcap-capture-filter=<capture filter> ] [ --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 an Android device. There are only two requirements:
Supported interfaces:
Please note that Androiddump will work also for FirefoxOS or other Android-based operating systems.
OPTIONS¶
--help
--version
--extcap-version
--debug
--extcap-interfaces
--extcap-interface=<interface>
--extcap-dlts
--extcap-config
--extcap-capture-filter=<capture filter>
Note
This is only respected for Wifi/Ethernet (tcpdump) capturing, not
for
Bluetooth or logcat.
--capture
--fifo=<path to file or pipe>
--adb-server-ip=<IP address>
--adb-server-tcp-port=<TCP port>
--logcat-text=<TRUE or FALSE>
If TRUE then use text logcat rather then binary. This option only has an effect on Logcat interfaces. This have no effect from Lollipop where is no binary Logcat available.
Defaults to FALSE.
--bt-server-tcp-port=<TCP port>
Use other than default Bluetooth server TCP port on Android side. On Lollipop defaults is 8872, earlier 4330.
--bt-forward-socket=<TRUE or FALSE>
If TRUE then socket from Android side is forwarded to host side.
Defaults to FALSE.
--bt-local-ip=<IP address>
--bt-local-tcp-port=<TCP port>
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 unknown MSM7627A}{value=android-logcat-main-MSM7627A} interface {display=Android Logcat System unknown MSM7627A}{value=android-logcat-system-MSM7627A} interface {display=Android Logcat Radio unknown MSM7627A}{value=android-logcat-radio-MSM7627A} interface {display=Android Logcat Events unknown MSM7627A}{value=android-logcat-events-MSM7627A} interface {display=Android Bluetooth Hcidump unknown MSM7627A}{value=android-bluetooth-hcidump-MSM7627A}
Human-readable display name of interfaces contains interface type, one of:
android-logcat-main (Android Logcat Main) android-logcat-system (Android Logcat System) android-logcat-radio (Android Logcat Radio) android-logcat-events (Android Logcat Events) android-logcat-text-main (Android Logcat Main) android-logcat-text-system (Android Logcat System) android-logcat-text-radio (Android Logcat Radio) android-logcat-text-events (Android Logcat Events) android-logcat-text-crash (Android Logcat Crash) android-bluetooth-hcidump (Android Bluetooth Hcidump) android-bluetooth-external-parser (Android Bluetooth External Parser) android-bluetooth-btsnoop-net (Android Bluetooth Btsnoop Net) android-tcpdump (Android tcpdump)
For tcpdump this is followed by target network device name (like eth0).
Then Android Device’s name if available, otherwise unknown.
Last part of it is DeviceID - the identificator of the device provided by Android SDK (see adb devices).
For example: Android Logcat Main unknown 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 the application.
SEE ALSO¶
NOTES¶
Androiddump is part of the Wireshark distribution. The latest version of Wireshark can be found at <https://www.wireshark.org>.
HTML versions of the Wireshark project man pages are available at <https://www.wireshark.org/docs/man-pages>.
AUTHORS¶
Original Author
Michal Labedzki <michal.labedzki[AT]tieto.com>
Contributors
Roland Knall <rknall[AT]gmail.com>
2024-10-10 |