The router configuration is probably the proper way of doing it, and I do have that simulation in place by using WANem. However, I'd like to have a portable way that does not rely on the network configuration, or the network interface for that matter. Basically I want to do a unit test where I run video streaming, increase the packet loss and run the same video again.
–
fejdNov 2 '11 at 8:02

3 Answers
3

Since your device is rooted you can install a Proxy. I've used TransparentProxy. Then setup a proxy on another machine on your local network. Point TransparentProxy to that proxy and then set your Proxy to throttle. A few proxies that might work include CharlesProxy or Service Capture.

If that doesn't work then you can come at it from the router level. A machine running BSD or Linux can function as a router. Or you can get a Virtual appliance or bootable CD to do it for you.

It is possible to set network latency and speed using the emulator control functions of the standard Android Developer tools.

If using eclipse: Select Window\Open Perspective\DDMS
On the screen you will see a tab named "Emulator Control". In this tab, you will find the Speed and Latency options. The 'Telephony Settings' at the very top have speed and latency selections.

There are other ways to modify these settings (including scripting them in your emulator setup), but this is the simplest way to access the settings.