Sometimes we need to use proxy to access network with Ethernet. Here are the steps for how to set proxy in Gingerbread and ICS.
1. Enable http proxy
> sqlite3 /data/data/com.android.providers.settings/databases/settings.db "INSERT INTO secure VALUES (99, 'http_proxy', 'wwwgate0.freescale.net:1080');"
With this setting, you can access network for web browsing.
If you want to play some http streaming content, you need to set a property for the player,
> setprop rw.HTTP_PROXY http://wwwgate0-az.freescale.net:1080
2. Disable http proxy
> sqlite3 /data/data/com.android.providers.settings/databases/settings.db "delete from secure where name='http_proxy'"
> setprop rw.HTTP_PROXY ""
1. Enable http proxy
> setprop net.proxy wwwgate0-az.freescale.net:1080
With this setting, you can access network for web browsing.
If you want to play some http streaming content, you need to set a proxy property for the player,
> setprop rw.HTTP_PROXY http://wwwgate0-az.freescale.net:1080
2. Disable http proxy
> setprop net.proxy ""
> setprop rw.HTTP_PROXY ""