[android-developers] 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: 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: Hi, I am also experiencing this same issue where G1.6 emulatorproxy works withAPNsettings but trying to use G2.0 fails to access the internet (APNfails, -http-proxyfails). I have tried the above recommended steps - all with the same result Web page not available My debugproxyoutput for Clark: D:\Android\Android-2.0\toolsemulator.exe -avd Android201AVD -debug-proxy-http-proxy10.0.2.2: emulator: WARNING: 4: missing expected assignment operator (=). line ignored proxy_http_setup: creating httpproxyservice connecting to: 10.0.2.2: server name '10.0.2.2' resolved to 10.0.2.2: proxy_http_setup: creating HTTPProxyService 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: I had tried -http-proxybefore without success. My command line: Emulator -avd Android201 -debug-proxy-http-proxyhttp://uid:pwd@10.0.6.251:3128 Initial startup console messages: proxy_http_setup: creating httpproxyservice connecting to: 10.0.6.251:3128 server name '10.0.6.251' resolved to 10.0.6.251:3128 proxy_http_setup: creating HTTPProxyService 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 toproxy: 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 -2http://www.google.com/TheURL could not be found. again, myAndroid1.6 emulator works with theAPNsettings and didn't honor the -http-proxysetting. On Dec 4, 8:10 pm, David Turner di...@android.com wrote: Try using the -http-proxyproxy option when starting the emulator. This implements a transparent HTTPproxythat 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 MSproxyservers) but this should have been fixed in the latest SDK Tools release. If this still doesn't work, try to use -debug-proxyas well, this will dump the proxied traffic, and send it here so I can have a look at it. Also see -help-proxyfor details about the proxy parameter. Hope this helps. On Fri, Dec 4, 2009 at 10:19 AM, Clark Hunter chbrigh...@gmail.com wrote: This link has some suggestions forproxysetting for early (pre-1.5) and later (1.5 thru 1.6)Androidemulators: 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-proxycommand line switch to setproxy/port/userid/ password. Android1.5 and 1.6 used: Home-Menu-Settings-WirelessControls- MobileNetworks-Access Point Names to set multipleproxy/port/userid/ password configurations. My 1.6 emulator is working behind our corporate firewall/proxy. Android2.0 has some issue where theAPNdidn'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? Android2.0.1shows theAPNwith a default 'TelKila' entry. I can add myproxyinformation, but still can't get past the firewall (shows Web page not available)? -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsub scr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hidequoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send
[android-developers] Re: Android 2.0.1 emulator: APN proxy setting is unable to function as before?
Hello, Does anyone have suggestion for this? My question: is it possible to make the browser refer to APN proxy on both emulator/real device? On Android 1.5/1.6 it works well, however, it seems not working on 2.0 and later. If the browser does not consider APN proxy as its http proxy, is there an alternative way to achieve this? I tried googling for this topic and only this one is available: http://www.mail-archive.com/android-developers@googlegroups.com/msg71606.html It indicates that with emulator option -http-proxy, you can redirect your browser traffic thru specified proxy. But how about real device? Where to set -http-proxy on real device? Thanks very much. Best regards, Aaron On 12月24日, 下午1時20分, Aaron Li yhlee...@gmail.com wrote: Hello all, I wrote a http proxy on Android 1.5 four months ago. It can work properly on both 1.5 and 1.6 emulator, with APN proxy setting to 127.0.0.1. However, when i port this app to 2.0.1, it's not working anymore. Did browser on emulator 2.0.1 change its behavior? It seems that the browser no longer consider APN proxy as http proxy anymore. Or it's simply a bug on emulator? Any feedback is highly appreciated, thanks. Best regards, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] 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: Hi, I am also experiencing this same issue where G1.6 emulatorproxy works withAPNsettings but trying to use G2.0 fails to access the internet (APNfails, -http-proxyfails). I have tried the above recommended steps - all with the same result Web page not available My debugproxyoutput for Clark: D:\Android\Android-2.0\toolsemulator.exe -avd Android201AVD -debug-proxy-http-proxy10.0.2.2: emulator: WARNING: 4: missing expected assignment operator (=). line ignored proxy_http_setup: creating httpproxyservice connecting to: 10.0.2.2: server name '10.0.2.2' resolved to 10.0.2.2: proxy_http_setup: creating HTTPProxyService 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: I had tried -http-proxybefore without success. My command line: Emulator -avd Android201 -debug-proxy-http-proxyhttp://uid:pwd@10.0.6.251:3128 Initial startup console messages: proxy_http_setup: creating httpproxyservice connecting to: 10.0.6.251:3128 server name '10.0.6.251' resolved to 10.0.6.251:3128 proxy_http_setup: creating HTTPProxyService 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 toproxy: 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 -2http://www.google.com/TheURL could not be found. again, myAndroid1.6 emulator works with theAPNsettings and didn't honor the -http-proxysetting. On Dec 4, 8:10 pm, David Turner di...@android.com wrote: Try using the -http-proxyproxy option when starting the emulator. This implements a transparent HTTPproxythat 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 MSproxyservers) but this should have been fixed in the latest SDK Tools release. If this still doesn't work, try to use -debug-proxyas well, this will dump the proxied traffic, and send it here so I can have a look at it. Also see -help-proxyfor details about the proxy parameter. Hope this helps. On Fri, Dec 4, 2009 at 10:19 AM, Clark Hunter chbrigh...@gmail.com wrote: This link has some suggestions forproxysetting for early (pre-1.5) and later (1.5 thru 1.6)Androidemulators: 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-proxycommand line switch to setproxy/port/userid/ password. Android1.5 and 1.6 used: Home-Menu-Settings-WirelessControls- MobileNetworks-Access Point Names to set multipleproxy/port/userid/ password configurations. My 1.6 emulator is working behind our corporate firewall/proxy. Android2.0 has some issue where theAPNdidn'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? Android2.0.1shows theAPNwith a default 'TelKila' entry. I can add myproxyinformation, but still can't get past the firewall (shows Web page not available)? -- You received this message because you are subscribed to the Google Groups AndroidDevelopers group. To post to this group, send email toandroid-develop...@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.comandroid-developers%2Bunsub scr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en-Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Android 2.0.1 emulator: APN proxy setting is unable to function as before?
Hello all, I wrote a http proxy on Android 1.5 four months ago. It can work properly on both 1.5 and 1.6 emulator, with APN proxy setting to 127.0.0.1. However, when i port this app to 2.0.1, it's not working anymore. Did browser on emulator 2.0.1 change its behavior? It seems that the browser no longer consider APN proxy as http proxy anymore. Or it's simply a bug on emulator? Any feedback is highly appreciated, thanks. Best regards, Aaron -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Is Settings.Secure.HTTP_PROXY the same as APN on proxy?
Hello all, I'm just curious about the proxy setting in APN, it seems that this setting will lead default browser traffic to pass through it. Is this APN proxy setting the same as HTTP proxy ? Any feedback will be highly appreciated. Best regards, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] How to modify HTTP PROXY by using Android API?
Hello all, I found a statement in SDK document about HTTP PROXY. It seems that there is no way to modify HTTP PROXY directly by using API since this becomes read only in Settings.Secure.HTTP_PROXY . Is there any other way to change this settings? either via UI or function call. Any help would be highly appreciated. Best regards, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] URL interception in android browser
Hello all, I want to implement an URL filter in current android browser to intercept urls before the user actually browse the page. One thing that came to my mind is to write a WebKit plugin, which implies that I might need to download android source and do this at firmware level. Is it possible to implement this at SDK level? Or should I try NDK? Any suggestions will be highly appreciated. Best regards, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] URL interception in browser
Hello all, I want to implement an URL filter in current android browser to intercept urls before the user actually browse the page. One thing that came to my mind is to write a WebKit plugin, which implies that I might need to download android source and do this at firmware level. Is it possible to implement this at SDK level? Or should I try NDK? Any suggestions will be highly appreciated. Best regards, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---