Android uses ADB tools and root permissions to complete the mobile phone capture package

Source: Internet
Author: User

1. Environmental Preparedness/ATTENTION:

The phone request has been rooted.

First, you need to configure the JDK environment variables, here is the main explanation of the grab package, the JDK environment variable configuration skipped.

Unzip the adb.zip included in the package to the C packing directory. The entire operation process requires the use of a mobile phone with a data cable to connect the computer.

Click Run, open cmd window, run CD to adb directory

and publish the Tcpdump program to the phone.

ADB push c:/tcpdump/data/local

Enter a command to enter the phone

ABC Shell
Su

On the phone appears whether trust allow control, point Trust

Tcpdump Execute permissions for publishing to the mobile/data/local/directory

chmod 777 Tcpdump

Enter a command to grab a packet

0 -w0.0. 0.0

The above command outputs the captured packet to a path that can be pull to a local

Download the capture package file to a local

ADB pull/sdcard/capture.pcap Capture.pcap

Use tools such as Wireshark to view the capture package file Capture.pcap

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.