I'm playing around with the latest android-x86 (4.4) in virtualbox. The setup can connect to the external network only through a NAT ethernet device that is emulated by virtual box. This gets autoconfigured just fine and i can ping computers on my LAN.
If I export http_proxy=<host>:<port>
in a terminal, I can wget
web pages. However I am unable to set the proxy settings globally for all apps.
The proxy settings are displayed only after a wifi network is connected, and I lack any wifi devices in the virtual machine.
I have tried the following in the root terminal accesible from alt+f1
:
setprop global_http_proxy_host <host>
setprop global_http_proxy_port <port>
setprop net.gprs.http-proxy http://<host>:<port>
But this fails to have any effect. Even new terminals lack the env variable for the proxy. These settings appear to be set when I check it by executing getprop
I found this link to the fragment that seems to display the proxys selector for the wifi.
Is there any way that I can manually set all the settings that are affected by this fragment?