How to enable internet access on droid with andorid 1.6 to work behind a proxy server

wahib ul haq - August 7, 2010

 

hello experts. I am stuck with this issue for a while now. My teacher got a droid phone and he is unable to use applications which use internet access like we need to test Layar : autmented reality application. We are behind a proxy in university and there is no available option to set proxy. There is a way to enable internet access with browser but i need internet access on applications installed.

Any advice or resource will be highly appreciated.

 

regards,

wahib

Share this

Comments

ANDROID LAN Settings

ANDROID LAN Settings : 

Using the "android shell" command performs the following settings: 

IP and Gateway Setting -

busybox ifconfig eth0 10.0.1.230 netmask 255.255.255.0

busybox route add –net 10.0.1.0 netmask 255.255.255.0 dev eth0

route add –net 10.0.0.1 netmask 255.255.255.255 dev eth0

route add default gw 10.0.0.2

  • DNS Setting-

  • setprop net.eth0.dns1 10.0.0.8

 

  • Proxy Server Setting -

sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "INSERT INTO system VALUES (99,'http_proxy', <YOUR_PROXY_IP_OR_HOST> ': <PROXY_PORT_NUMBER> ');"

Where <YOUR_PROXY_IP_OR_HOST> and <PROXY_PORT_NUMBER> should be replaced by the IP or hostname and port number, respectively, for the proxy server you're using.

You can check to see if your proxy was added correctly by issuing the following:

sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "SELECT * FROM system"

If things worked correctly, you should see something like:

sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "SELECT * FROM system"

1|music_volume|3

2|voice_volume|3

3|ringer_volume|3

99|http_proxy|proxy.

To remove the proxy setting, issue the following command:

sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db "DELETE FROM system WHERE _id=99"