How to Use Proxy to Access Network in Android

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to Use Proxy to Access Network in Android

How to Use Proxy to Access Network in Android


Sometimes we need to use proxy to access network with Ethernet. Here are the steps for how to set proxy in Gingerbread and ICS.

Gingerbread

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 ""

ICS

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 ""

Labels (1)
No ratings
Version history
Last update:
‎10-08-2012 11:59 PM
Updated by: