Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Clark Hunter  
View profile  
 More options Dec 4 2009, 1:19 pm
From: Clark Hunter <chbrigh...@gmail.com>
Date: Fri, 4 Dec 2009 10:19:00 -0800 (PST)
Subject: Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
This link has some suggestions for proxy setting for early (pre-1.5)
and later (1.5 thru 1.6) Android emulators:
http://www.coderanch.com/t/462906/Android/Mobile/connect-internet-beh...

Basically, the older emulator used a “com.android.provider.setting.db”
database or -http-proxy command line switch to set proxy/port/userid/
password.

Android 1.5 and 1.6 used:  Home->Menu->Settings->WirelessControls-

>MobileNetworks->Access Point Names to set multiple proxy/port/userid/

password configurations.
My 1.6 emulator is working behind our corporate firewall/proxy.

Android 2.0 has some issue where the APN didn't display.
I used sqlite3 /data/data/com.android.providers.telephony/databases/
telephony.db to manually set fields and make the entries editable
(current=1).
I could access local servers, but not get thru the firewall?

Android 2.0.1 shows the APN with a default 'TelKila' entry. I can add
my proxy information, but still can't get past the firewall (shows Web
page not available)?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Turner  
View profile  
 More options Dec 4 2009, 8:10 pm
From: David Turner <di...@android.com>
Date: Fri, 4 Dec 2009 17:10:40 -0800
Local: Fri, Dec 4 2009 8:10 pm
Subject: Re: [android-developers] Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)

Try using the -http-proxy <proxy> option when starting the emulator.
This implements a transparent HTTP proxy that doesn't need modifying
settings in the emulated system at all.
It used to be buggy in previous releases of the emulator (mainly when used
with MS proxy servers) but this should
have been fixed in the latest SDK Tools release.

If this still doesn't work, try to use -debug-proxy as well, this will dump
the proxied traffic, and send it here so I can
have a look at it.

Also see -help-proxy for details about the <proxy> parameter.

Hope this helps.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Clark Hunter  
View profile  
 More options Dec 7 2009, 9:03 am
From: Clark Hunter <chbrigh...@gmail.com>
Date: Mon, 7 Dec 2009 06:03:08 -0800 (PST)
Local: Mon, Dec 7 2009 9:03 am
Subject: Re: Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
I had tried -http-proxy before without success. My command line:
Emulator -avd Android201 -debug-proxy -http-proxy http://<uid>:<pwd>@10.0.6.251:3128

Initial startup console messages:
proxy_http_setup: creating http proxy service connecting to:
10.0.6.251:3128
server name '10.0.6.251' resolved to 10.0.6.251:3128
proxy_http_setup: creating HTTP Proxy Service Footer is (len=55):
'Proxy-authorization: Basic <Base64UidPwd>

If I open a link to a GOOD connection inside the firewall, I see:
http_service_connect: trying to connect to 10.10.0.252:80
http_service_connect: using HTTP rewriter
tcp:10.10.0.252:80(1416): cannot connect to proxy: <unknown error>
adb logcat doesn't show any unusual messages.

If I do a BAD connection (e.g. google), I don't see any console
messages?
adb logcat shows:
E/browser (  192): onReceivedError -2 http://www.google.com/ The URL
could not be found.

again, my Android 1.6 emulator works with the APN settings and didn't
honor the -http-proxy setting.
On Dec 4, 8:10 pm, David Turner <di...@android.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
WebUX1  
View profile  
 More options Dec 16 2009, 2:33 am
From: WebUX1 <web...@gmail.com>
Date: Tue, 15 Dec 2009 23:33:08 -0800 (PST)
Local: Wed, Dec 16 2009 2:33 am
Subject: Re: Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
Hi, I am also experiencing this same issue where G1.6 emulator proxy
works with APN settings but trying to use G2.0 fails to access the
internet (APN fails, -http-proxy fails).

I have tried the above recommended steps - all with the same result
"Web page not available"

My debug proxy output for Clark:
D:\Android\Android-2.0\tools>emulator.exe -avd Android201AVD -debug-
proxy -http-proxy 10.0.2.2:8888
emulator: WARNING:    4: missing expected assignment operator (=).
line ignored
proxy_http_setup: creating http proxy service connecting to:
10.0.2.2:8888
server name '10.0.2.2' resolved to 10.0.2.2:8888
proxy_http_setup: creating HTTP Proxy Service Footer is (len=2):
'
'
http_service_free

D:\Android\Android-2.0\tools>

On Dec 7, 6:03 am, Clark Hunter <chbrigh...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Li  
View profile  
 More options Dec 28 2009, 3:56 am
From: Aaron Li <yhlee...@gmail.com>
Date: Mon, 28 Dec 2009 00:56:23 -0800 (PST)
Local: Mon, Dec 28 2009 3:56 am
Subject: Re: Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
Hello, is it possible to set http proxy on real device with Android
2.0.1?
-http-proxy only available for emulator :(

Best regards,
Aaron

On 12月16日, 下午3時33分, WebUX1 <web...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Aaron Li  
View profile  
 More options Jan 3 2010, 10:42 pm
From: Aaron Li <yhlee...@gmail.com>
Date: Sun, 3 Jan 2010 19:42:07 -0800 (PST)
Local: Sun, Jan 3 2010 10:42 pm
Subject: Re: Android 2.0.1 emulator: Not able to get Proxy settings to work (tried -http-proxy and APN proxy)
After some studying, i found following code segment in Brower's
source:

 //
 // start MASF proxy service
 //
 //Intent proxyServiceIntent = new Intent();
 //proxyServiceIntent.setComponent
 //    (new ComponentName(
 //        "com.android.masfproxyservice",
 //        "com.android.masfproxyservice.MasfProxyService"));
 //startService(proxyServiceIntent, null);

Does that imply the browser won't consider proxy anymore?

Best regards,
Aaron

On 2009年12月28日, 下午4時56分, Aaron Li <yhlee...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »