How to sniffer http calls on Android devices?
Use intercepting proxy server.
On emulator, start the emulator with “-http-proxy” parameter.
On real device, you have to modify you code to use proxy.
For HTTPs, you have to add proxy’s certification into device. Here is the reference.
When you sniffer a HTTPs connction via intercepting proxy, pay more attention to those area.
- Is proxy reachable? ( firewall setting )
- Does proxy accept remote connections? (ex: fiddler )
- Does the keystore contain the certification of target site?