Recently to engage in the Android app grab packet analysis, found some methods on the Internet, combined with a self-condition or Android simulator +tcpdump most convenient.
To prepare the tool:
1. Microsoft. NET Framework 2.0 SP2
2, Bluestack 0.7.5.2700
3. Bluestack 0.7.5.2700 Root Image
4. The ADB program for commissioning
5. Analysis tools such as Wireshark
6. App to grab Bag
First of all the simulator selected Bluestacks, want to use tcpdump must root, so also find a bluestacks root image to overwrite the original image, I chose here bluestack 0.7.5.2700 then download the corresponding version of the root image, you can refer to this site http://www.ptbus.com/view/41515/
Where Bluestack 0.7.5.2700 requires the Microsoft. NET Framework 2.0 SP2, install the Microsoft. NET Framework 2.0 SP2 first, and then install Bluestack 0.7.5.2700, the default next, then download the corresponding version bluestacks root image, unzip to get a root.fs,
And then find the bluestacks in the installation path to replace the ROOT.FS, the quick Way is to search the hard disk,
Then restart the bluestacks effect such as:
Then install the app you want to grab the package, and the APK file is installed by default with Bluestacks:
Once the installation is complete, you can find the app you installed in my apps in the simulator,
Next prepare a debugging ADB program, can be found in the Android SDK, the path is Sdk/platform-tools/adb.exe, ready to complete the following to start the capture package.
Run cmd, switch to the directory where the ADB program is located, and then execute the following command to start the packet capture:
ADB shellsu/system/xbin/tcpdump-p-vv-s 0-w/sdcard/capture.pcap
Then you can run your app in the simulator to crawl the packet, the effect
In the process of grasping the package you can use CTRL + C to interrupt the grab packet, after the capture package is finished using the following command will grab the packet results Capture.pcap sent to the Local:
ADB pull/sdcard/capture.pcap d:/
Where d:/is the location of the file save, and finally with tools such as Wireshark to the captured packet analysis can be.
Reprint Please specify: http://blog.csdn.net/wangqiuyun/article/details/39545623
Android Simulator Bluestacks+tcpdump app Grab Pack analysis