How to Use Proxy to Access Network in Android

Document created by Jian Li Employee on Oct 8, 2012Last modified by Jodi Paul on Mar 12, 2013
Version 3Show Document
  • View in full screen mode


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

Attachments

    Outcomes