Android Phone Grab Package step _android

Source: Internet
Author: User
Tags root access
Android Grab Pack Preparation

1. Android phones need to have root access first. A test method that obtains root permissions: Installs and opens terminal simulators (available through channels such as the Android Market). In the Terminal simulator interface input Su and carriage return, if the error is not root, if the command prompt from $ change # is rooted;
2. If the Android phone is not yet root, root processing can be done via SuperOneClick or other methods (the Microsoft. NET Framework) is required. SuperOneClick Brush Root Permissions Tutorial: (http://soft.shouji.com.cn/news/501.shtml)
3. Need to get the Android SDK first
4. Need to obtain tcpdump software, get Address (http://www.strazzere.com/android/tcpdump), note that the right key to save as
Grasping the package step
1. Connect the Android phone to the computer USB, open the Windows Command Prompt window

2. Copy the Tcpdump program to the Android phone (the directory file in front of the command is the local address, and the directory at the end is the destination for the mobile address)

C:\ANDROID-SDK-WINDOWS\PLATFORM-TOOLS>ADB Push C:/tcpdump/data/local/tcpdump

3. Modify the Tcpdump permissions
C:\ANDROID-SDK-WINDOWS\PLATFORM-TOOLS>ADB Shell
#chmod 777/data/local/tcpdump

4. Enter Root permission
C:\ANDROID-SDK-WINDOWS\PLATFORM-TOOLS>ADB Shell
$ su

After the SU instruction is run, the phone terminal desktop will receive a prompt to confirm your recognition of the root operation.

5. Run Tcpdump, enter the following command to start grab bag.
/data/local/tcpdump-p-vv-s 0-w/sdcard/capture.pcap

6. In the mobile phone to carry out the corresponding need to carry out the analysis of the operation, execution completed at the Command Prompt window to execute CTRL + C interrupt grasp process

7. Copy the results of the grab to the local (the front directory is the mobile address, the following directory is the local address)
C:\ANDROID-SDK-WINDOWS\PLATFORM-TOOLS>ADB Pull/sdcard/capture.pcap c:/

8. Use tools such as Wireshark to view grab file Capture.pcap
Related Article

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.