Mac platform ADB, tcpdump catcher Android mobile network packet

Source: Internet
Author: User

In mobile phone development app when we want to be able to see the app network making requests, this time we need to tcpdump toolkit capture. To achieve tcpdump ethereal, the following steps require:

Here, on Android Huawei Mobile phone P6 for samples

1. Phone root

To use the Tcpdump tool. You must first get the root permission of the phone and try several root tools. Finally found 360 one-click Root tool to P6 this machine root

Download the PC version of the 3,601-key root tool. Then use the USB cable to link the phone to the computer, the same time to turn on the USB debugging (set-up developer Options->usb Debugging)

And then, as he prompts, Root will succeed.


2. Download the ADB tool

I started out by downloading the low version of the ADB from the Internet and was never successful. Displays the offline. Then you have to download the latest version of ADB

One way is to developer Android to download http://developer.android.com/sdk/index.html download an ADT, where the latest adb

There is another way to download the latest 1.0.31. This is what I packed up with the ADB upload,


3. After downloading the ADB. Be able to test its version number , CD to its folder first, such as the following command



4. Then, when you use ADB devices this command to find unauthorized, this time to turn off the phone's developer options and open, and then get authorization


Authorization will copy the key from your computer's ~/.android folder to your phone.


Participation Kauboven: http://blog.csdn.net/quicksand201/article/details/19190821

Once this is done, you will be able to use the ADB shell after entering ADB devices, such as the following results


5. Download tcpdump

is: Http://www.strazzere.com/android/tcpdump

Then copy the downloaded tcpdump to a folder on your phone

Then use the ADB shell login, log in and then use the SU command to switch to the root user, go to the Tcpdump folder, add tcpdump of the operational rights (with chmod 777 tcpdump)




6. Use tcpdump to open your app. And you'll see it's grabbing information.



Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.

Mac platform ADB, tcpdump catcher Android mobile network packet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.