Android simulator BlueStacks + TCPdump analyzes APP packet capture and bluestackstcpdump

Source: Internet
Author: User

Android simulator BlueStacks + TCPdump analyzes APP packet capture and bluestackstcpdump

Recently, I want to analyze Android APP packet capture. I found some methods on the Internet, which is the most convenient for Android simulator + tcpdump in combination with my own conditions.

Tools required:

1. Microsoft. NET Framework 2.0 SP2
2. Bluestack 0.7.5.2700
3. Bluestack 0.7.5.2700 Root Image
4. adb program for debugging
5. Wireshark and other analysis tools
6. APP to be captured

First, the simulator selects BlueStacks. To use tcpdump, you must use Root. Therefore, you must find a BlueStacks Root image to overwrite the original image, I chose Bluestack 0.7.5.2700 here and then download the corresponding version of the Root image, specific can refer to this site http://www.ptbus.com/view/41515/

Among them, Bluestack 0.7.5.2700 requires Microsoft. NET Framework 2.0 SP2, first install Microsoft. NET Framework 2.0 SP2, install Bluestack 0.7.5.2700, and click Next by default. then download the corresponding version of BlueStacks Root image and decompress it to get a Root. fs,

Find the Root. fs in the installation path of BlueStacks and replace it. the quick way is to search the hard disk,

Then restart BlueStacks to see the following results:

Then install the APP you want to capture the package. At this time, the apk file is installed with BlueStacks by default:

After installation, you can find the previously installed app in My Apps in the simulator,

Next, prepare an adb program for debugging. You can find it in the Android SDK in the path: sdk/platform-tools/adb.exe. After preparation, start to capture packets.

Run cmd, switch to the directory where the adb program is located, and run the following commands to start 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 capture data packets and improve the effect.


During the packet capture process, you can use Ctrl + C to stop packet capture. After the packet capture is completed, use the following command to send the packet capture result capture. pcap to the local device:

adb pull /sdcard/capture.pcap D:/


D:/is the location where the file is stored. Finally, use tools such as Wireshark to analyze the captured packets.


Reprinted Please note: http://blog.csdn.net/wangqiuyun/article/details/39545623


After the android simulator bluestacks beta 1 is installed, my computer is WIN7, but the downloaded APK file cannot be opened using bluestacks?

Basic Android simulator (BlueStacks) Beta-1 See PC6
How to install and use the android simulator BlueStacks-pc6

Bluestacks app player versions are different. The latest version of BlueStacks App Player 0.7.7.813 _ RELXP/Win7 100.1 M

This simulator is very picky about system and computer configurations. Sometimes software applications may not be run if the installation is successful. Whether the installation is successful depends on the computer configuration and version compatibility.

Android simulator bluestacks cannot be used after installation

How to install and use the bluestacks Android Simulator
Jingyan.baidu.com/...8.html
Many programs can only run on mobile phones. How can I enable software running on mobile phones to be opened on my computer? This requires the bluestacks Android simulator.
The bluestacks Android simulator can simulate the Android system. Naturally, you can download the mobile phone software and open it in this simulator. This android simulator is not very easy to install.
Tutorial.

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.