Just start a Crapify proxy on your computer, set your phone proxy to your computer's local address and voila, you've got crappy internet on your phone. I feel like an idiot for not realizing it sooner. I just realized you can pick the very same strategy with real devices too. Run a proxy server on your host machine that simulates bad network conditions, like Crapify or Toxiproxy (I only tested the former) and you're good to go. It's an Android emulator with much better performance than the original AVDs and the version for personal use is free.Īfter you created your virtual device in Genymotion, just go through this tutorial to set a proxy for the device. ![]() The best way to do this is using Genymotion. The original Android emulator is way too slow for testing and doesn't achieve more than the solution above. You can try to do this by dialing *#*#4636#*#* in the phone app The only logical way to achieve real testing is to make your phone connect to a low quality cellular network, like EDGE, if your phone company provides it. Testing on a real device doesn't make much sense overall as you have to go through a lot to make it work. I was struggling with this problem for half a day, finally I came to this solution: ![]() They have also written a blog post about it: Traffic can be shaped/unshaped using a web interface allowing any devices with a web browser to use ATC without the need for a client application. This also allows any devices that route through ATC to be able to shape their traffic. In order to be able to shape the network traffic, ATC must be running on a device that routes the traffic and sees the real IP address of the device, like your network gateway for instance. Aspects of the connection that can be controlled include: Developers can use ATC to test their application across varying network conditions, easily emulating high speed, mobile, and even severely impaired networks. It allows controlling the connection that a device has to the internet. A brief summary from their GitHub page:Īugmented Traffic Control (ATC) is a tool to simulate network conditions. I know its a bit late to answer to this question, but i hope this helps others facing similar issues!įor anyone using eclipse, see answer below.įacebook built something called Augmented Traffic Control. ![]() The screenshot below describes how this Run Configuration screen looks like:
0 Comments
Leave a Reply. |