Android http packet capture, android
Sometimes you want to check the http request and response sent by the APP during development. This requires packet capture. This gives you some unknown APIs, for example, you can do some "bad things "...
Required tools:
I. How to Use Fiddler2
After the download is complete, the inst
Transplantation of rt2870 USB wifi on mx53 Android platform
There are a lot of porting tutorials for USB wifi on the Linux platform online, but there are few complete tutorials for porting on Android. It took a whole week to transplant this driver, here are the detailed transplant notes for this week.
I. Compile the
protocol.Finally, some advantages and disadvantages of this method have to be mentioned.First of all to discuss the advantages, there are the following points:1) The phone does not need root to catch the bag;2) can use the real machine to grasp the package, some programs are anti-dynamic analysis, can judge themselves run in the simulator.Disadvantages, of course, there are:1) must be connected with WiFi (this is easy to meet);2) The application that
(requests header) and the returned content (Response header and content), such as:You can find that fiddler can view the data returned by the network request in various formats, including header, TextView (text), ImageView (picture), Hexview (hex), WebView (Web Form), Auth ( Proxy-authenticate header), Caching (header cache), Cookies, Raw (original data format), JSON (JSON format), XML (XML format) is very convenient.Stop network Monitoring, remove the proxy settings of
behalf of import and trust success.Set up Android WiFi agent, set-->wlan--> Zoo to link to wifi--> Modify network----------------Set the Burp proxy settings justFor example, I'm 127.25.28.240 port 8080 above.After setting the success, try grabbing the bag and see.Success! Here because I have tried before, the first time I grabbed the package will prompt the cert
server can not stand the client's endless keepalive request, to release a connection. Judging from the data, the entire four waves are time consuming, 166.387505-166.162996 = 0.224509OK from here, it can be seen that the entire HTTP request process one go, very fast, almost in less than two seconds to complete the entire data request, as for UI drawing in milliseconds, so you can see at the code level regardless of the server or the client has no performance problems, However, just the test is
Preparation tools:1 charles:https://www.charlesproxy.com (fee)2 night God Simulator: https://www.yeshen.com (free)2 Simulator settingsOrClick WiFi AccessThe mouse long press WiFi access to modify the interface (do not click. left mouse button Click and hold for a few seconds)Click Modify Network as shown in the address, fill in your computer's IP address (not sure can cmd ipconfig view)Setup Complete3 Grab
-s 0-w/sdcard/tmp.pcap-Way two: Tcpdump app to execute grab bagA lot of related appsBenefits: Can not use USB connection, can also catch the normal environment of network packets,The Android system will not enter deep sleep when the USB is connected, and the client may behave differently during deep sleep (wake lock, Alarm, WiFi switch). )Also recommended Betterbatterystat http://forum.xda-developers.com/sh
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.