How to connect a virtual device to a proxy?

HTTP Proxy without authentication

1. From Android interface

1. Open Menu > System settings.

2. In Wireless & Networks, select Wi-Fi.

3. Tap WiredSSID and hold it down for two seconds.

4. Tap Modify Network.

5. Check Show advanced options.

6. In Proxy settings, select Manual.

7. Enter the proxy settings provided by your network administrator.

8. Tap Save.

2. By command line

HTTP Proxy with authentication

Socks5 proxy

Extra (Genymotion Desktop only)

> The following will only work with Genymotion Desktop, and if you run a local proxy on the same host.

With VirtualBox

With QEMU

adb reverse tcp:3333 tcp:8080