adb shell getprop | grep proxy
get the system properties' name. and use adb shell setprop to set it.
errr~~ if you have root access right.
>
> Thanks very much for any help!!
>
> Yanke
>
> --
> You received this message because you are subscribed to the Google Groups "android-platform" group.
> To post to this group, send email to android-...@googlegroups.com.
> To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.
>
>
--
biAji
See http://elinux.org/Android_Networking
To quote:
The browser looks at system settings stored in a provider database
for the http proxy.
The value for http_proxy is set in the following sqlite database:
/data/data/com.android.providers.settings/databases/settings.db
the setting goes in the 'system' table in this database, with a key
of 99, a name of 'http_proxy' and a value that is a string containing
your proxy server and port. I don't know if you can use a server name
rather than just an IP address. I haven't done that.
To set this, on target, do the following:
# cd /data/data/com.android.providers.settings/databases
# sqlite3 settings.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> insert into system values(99,'http_proxy','192.168.1.1:80');
sqlite>.exit
Replace '192.168.1.1:80' with the appropriate address and port for
your network configuration.
Since it's only a single line, you can also do this from the command
line. You can check that the value is stored properly by typing the
following:
# sqlite3 settings.db "select * from system;"
This should show output similar to the following (first part omitted):
...
38|volume_ring|4
39|volume_ring_last_audible|4
99|http_proxy|43.131.3.73:80
This change is persistent, and you should only have to make it once.
This worked on some devices I used here at Sony, but I'm not sure
if it works in the emulator, or on different phone models.
-- Tim
=============================
Tim Bird
Architecture Group Chair, CE Workgroup of the Linux Foundation
Senior Staff Engineer, Sony Network Entertainment
=============================
adb shell sqlite3
/data/data/com.android.providers.telephony/databases/telephony.db
"update carriers set proxy=''xxx', port='xx' where id=xxx "
--
biAji
Settings.Secure.putString(res, Settings.Secure.HTTP_PROXY, hostname);
sendBroadcast(new Intent(Proxy.PROXY_CHANGE_ACTION));
--
biAji