This is our old Q&A Site. Please post any new questions and answers at

I want to capture traffic in a Android phone using tcpdump in Terminal Emulator, and convert pcap file obtained to a plain text file. Does anyone know how can i do it. Thanks

asked 24 Jul '15, 07:17

Miguel%20Freitas's gravatar image

Miguel Freitas
accept rate: 0%

  1. Use tcpdump to read the pcap file, without -w; that will print it as a plain-text file in tcpdump's print format.
  2. Get TShark ported to Android, and read the file with it and the appropriate command-line arguments, such as -V.
  3. Write your own program to duplicate what tcpdump or TShark does.
permanent link

answered 24 Jul '15, 11:50

Guy%20Harris's gravatar image

Guy Harris ♦♦
accept rate: 19%

My goal is convert a given pcap file in a plain text file with details of all packet, using a Android phone. Do you know how can I install TShark on my Android phone?

(24 Jul '15, 13:36) Miguel Freitas

A quick Web search for "tshark android" didn't find anything. You might have to be the first person to port it, which would involve porting, at minimum, the GLib library (not glibc, this is a library used by GTK+ and also used by non-GUI programs such as TShark and the packet-dissection libraries it uses).

(24 Jul '15, 14:28) Guy Harris ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 24 Jul '15, 07:17

question was seen: 3,389 times

last updated: 24 Jul '15, 14:28

p​o​w​e​r​e​d by O​S​Q​A