yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] anthonws:
Hello,

There are some open issues in android that states the lack of proxy support for Wifi connections.

http://code.google.com/p/android/issues/detail?id=1273

http://code.google.com/p/android/issues/detail?id=9126

I know, and the majority of Android users might also know, that there is a way to "hack" the android browser to use proxy. It's done via sqlite.

But I think, as many other users, that this is no solution. The "hack" is only for the bowser, so exclude market, gapps, etc.

Now, someone from google said that:

So, as you can see there are no plans whatsoever for implementing proxy support.

What I would like to start here, is some sort of list of kernel/modules/coding requirements, to start a possible development.

To anybody out there that has some know-how on this subject, please speak!

Thank you very much.

Best regards,

Anthon.
[Android Software/Hacking General [Developers Only]] anthonws:
(RESERVED)
[Android Software/Hacking General [Developers Only]] jonathan.addison:
Agreed

Just adding my support to this. It's a much needed feature!
[Android Software/Hacking General [Developers Only]] sweetheater:
Hi,

Can you teach me how to use the sqlite with android for browsing via proxy... I just want to browse atleast in my university!! Help me out!!
[Android Software/Hacking General [Developers Only]] anthonws:
Hello again,

I was thinking the most quick way would be to have a local proxy client (where we would configure our proxy server settings) and redirect/forward all traffic with iptables rules to that local port.

Sort of a transparent proxy.

We have some netfilter modules included in the custom kernels that comes in most custom roms.

No, what proxy client could we use? Is there a busybox proxy client we could use?

Thanks.

Anthon.
[Android Software/Hacking General [Developers Only]] anthonws:
http://discuz-android.blogspot.com/2008/01/set-proxy-for-android-web-browser.html

First link in Google :S
[Android Software/Hacking General [Developers Only]] sweetheater:
I checked it... Is that working ??
[Android Software/Hacking General [Developers Only]] anthonws:
Yes it works. I tested with a proxy without authentication and I could access to external websites.
[Android Software/Hacking General [Developers Only]] sweetheater:
Thanks mate...I have a HTC desire phone...How do I start doing it...I dont have any prior coding knowledge with android or squilt.. please help...!! My University has a proxy setting... I am desperate!! My phone is useless without it :(
[Android Software/Hacking General [Developers Only]] mistahd33:
Have you tried opera mini? That appears to get through most proxys with no configuration using "socket" method and seems to be a good solution if you just want to be able to browse the web.
[Android Software/Hacking General [Developers Only]] sweetheater:
Hi...I have Opera mini...Could you teach me how to do that...What setting should I have to specify..Help me out!!
[Android Software/Hacking General [Developers Only]] mistahd33:
Opera Mini -> Settings -> Advanced -> Protocol -> set to Socket. That works for most people.
[Android Software/Hacking General [Developers Only]] sweetheater:
I tried its not working for me...Is there any other way :(
[Android Software/Hacking General [Developers Only]] mistahd33:
Only way that I know of is to set up a transpararent proxy on a computer.
[Android Software/Hacking General [Developers Only]] anthonws:
Hi :)

Sorry for my absence.

I've been investigating a little bit and found a great piece of software called Tor - http://www.torproject.org/docs/android.html.en.

It's a privacy and security tool for browsing the Internet. It's also a local transparent proxy!

I have tried this tool at work (we have a proxy to get out to the Internet) and I managed to get Google Email syncs and Google Talk even without configuring anything even close to a proxy!!!

So, great news! I'll do some more research, hope you all can help.

Best regards,

Anthon.
[Android Software/Hacking General [Developers Only]] anthonws:
Hi again,

Yesterday I went to the tor irc channel and talked we some nice folks there :)

Their recommendation was to look for a solution with iptables (what I said in the beginning).

I searched a bit more and found this: http://proxychains.sourceforge.net/.

It seems to be possible to chain the entire "system" and not just an application.

Will try to build this using Android NDK. Don't know if it will work...

Any recommendations?

Best regards,

Anthon.
[Android Software/Hacking General [Developers Only]] sweetheater:
Thanks a lot buddy...Keep us posted about the updates...I am also trying this orbot... :)will post the updates!!
[Android Software/Hacking General [Developers Only]] sweetheater:
And sorry for asking more questions... phone needs to be rooted for using orbot??
[Android Software/Hacking General [Developers Only]] anthonws:
50/50...

See the "Platform specific notes": http://www.torproject.org/docs/android.html.en
[Android Software/Hacking General [Developers Only]] sweetheater:
Thanks...Will give it a try..and post tomorrow!!
[Android Software/Hacking General [Developers Only]] sweetheater:
I tried the tool today in school...Since my phone is not rooted it stops in 10% itself...Tomorrow I will root my phone and gonna try again...!!
[Android Software/Hacking General [Developers Only]] magdap:
Orbit goes up to 100 for me. but i still can't browse. sure... i need to change it to the orbit port, but since i cannot setup any proxy i can't change the port.

i am not rooted. i know that routed phones can use proxy...

so what next???
[Android Software/Hacking General [Developers Only]] mistahd33:
Trying Orbot on rooted HTC Desire running jsoneng's espresso froyo. Have granted root access to Orbot but cant get it to start. Orbot just says "Orbot is Deactivated". Pressing Menu then Start does nothing. Toggling various settings makes no difference whatsoever. It also appears to run VERY slowly (ie. massive pauses when getting into and coming out of the settings screen). Log screen shows no entries. Bummer, was hopeful about this one.
[Android Software/Hacking General [Developers Only]] bubblesmoney:
check these links out and see if it helps and let me know too as i am not a techie :p

http://gszyszka.blogspot.com/2010/05/how-to-browse-internet-from-behind.html

http://duykham.blogspot.com/2009/11/setting-proxy-for-android-by-gui.html

hope you find a work around because google seems more interested in pushing an advert to your phone rather than finding a fix to this pressing need for many users. hope apple starts advertising on tv about how their phones can be used in universities and work places with proxy wifi access but android cant do it so pretty useless in such settings. that would hopefully kick some butt (atleast a butt that matters at google android development division) into fixing this problem that google knows about for 2 years now and still medium priority! i had posted this on the htc desire work arounds thread but no one seems to have confirmed whether this works. i dont need proxy access presently so this isnt a problem for me, but do see the absolute need for this setting on phones.

this is a well known problem to everyone except google apparently!

"Networking issues

Android did not support setting up a network proxy configuration for WiFi connections until Android 2.1 (Eclair).[123]

Android does not support EAP extensions under WPA- and WPA2- Enterprise.[124]

Android does not support Cisco-compatible IPsec virtual private networks (Layer 2 Tunneling Protocol is supported).[125]

Android did not support wireless ad hoc networking until Android 2.2 (Froyo).[126]" http://en.wikipedia.org/wiki/Android_(company)

best of luck and thanks for starting this thread.
[Android Software/Hacking General [Developers Only]] anthonws:
Thanks for the info :)

Problem is that we want to extend proxy to all the system.

Hope we can do it soon. This weekend going to do some tests.

Thanks,

Anthon.
[Android Software/Hacking General [Developers Only]] mbegel:
I downloaded proxymator from the market and I am able to connect

through my corporate proxy. I've tested browser, market, and K9 email.

I'm running bb0.4 (froyo) on a droid.
[Android Software/Hacking General [Developers Only]] bubblesmoney:
htc announced last night that they have started froyo update for htc desire and wildfire from today:). can anyone who recieved the update 2.2 froyo over the air please confirm if they have resolved this issue in the update. i havent got the update yet, guess as usual it will take a few weeks for everyone to get the update in stages.
[Android Software/Hacking General [Developers Only]] sweetheater:
I think proxymator works on rooted phone only.... Does this work in rooted Eclair (Android 2.1) Can anyone confirm??
[Android Software/Hacking General [Developers Only]] mistahd33:
I just tried proxymator and it looked promising but most of the proxies here require username, the one that doesnt didnt seem to work, and even when I tried to use an anonymous proxy which works fine on my laptop it didnt work on android with proxymator. (Rooted Desire running froyo).
[Android Software/Hacking General [Developers Only]] anthonws:
Yes, same problem here... Proxy with NTLM auth.

It's a good start, for sure!

I ran some tests with my Acer Liquid (2.1 rooted) and ntlmaps (proxy with NTLM support) in my computer. Problem is that I have some restrictive firewall rules. I cannot "host" certain ports.

Will run some tests at home.

Thank you mbegel for this tip, and thank you all for your help!
[Android Software/Hacking General [Developers Only]] sweetheater:
Just now rooted my phone...will post updates on monday abt the status!!... Can you guys tell me is there any more ways...I am ready to try them too
[Android Software/Hacking General [Developers Only]] magdap:
okay, for the last time:

Having proxy with a rooted phone is nooooot a big deal! just have cynmod rom and it'll work.

We need a solution for none rooted phones!
[Android Software/Hacking General [Developers Only]] sweetheater:
Is there cynmod for HTC Desire??
[Android Software/Hacking General [Developers Only]] sanaz:
hi

i have nexsus one.but it does n`t work for me.now please tell me what`s wrong with it?
[Android Software/Hacking General [Developers Only]] squire23:
Will check out Thor but can you let us know does it work with work-based email systems rather than just internet-based. I'm looking to try & connect to my work email & calendar not just my google one

cheers

squire
[Android Software/Hacking General [Developers Only]] lambstone:
That is not true at all. proxy with rooted phone is still an issue.
[Android Software/Hacking General [Developers Only]] sweetheater:
Yeah..I am not able to use net...via proxy thought its rooted...Could anyone suggest any more solutions... Have anyone had a real experience of proxy working in Android?? Please do share!!
[Android Software/Hacking General [Developers Only]] magdap:
androidpolice.com/2010/07/26/cyanogenmod-6-cm6-rc2-for-nexus-one-droid-dream-magic-g1-mt3g-and-rc1-for-evo-4g-released/

just get this ROM!!!!

Proxy is Support on CM!

just go to their homepage and and get your rom.

with rooted phones you can change everything, so there is no prob at all if you have the right rom.

we need to know what to doo with unrooted phones!
[Android Software/Hacking General [Developers Only]] sweetheater:
You sure that this mod has proxy support...I checked the link they have not mentioned anything like that....Also I own a HTC Desire...Can I install this mod in that..? please reply!!
[Android Software/Hacking General [Developers Only]] mistahd33:
I installed cyanogenmod rom 6 for desire, I got the latest 26/07/2010 version from androidspin. I looked EVERYWHERE for system wide wifi proxy settings and they don't exist, the only proxy settings i could find were the usual apn 3g connection ones.

Aside from that, I don't want to use cyanogenmod.. I prefere having htc sense and other features of other roms. People shouldnt have to use a certain rom just to get one feature which should have been provided in android v1 to start with. So forget it guys, dont switch to the cynmod rom I got from androidspin.com, not even cyanogenmod rom for desire has wifi proxy settings. It has a lot of cool features, but not that one. Maybe magdap has a slightly different build or something? As far as I could tell it should be the same, same release date etc.

Magdap, its all very well to get all het up and repeatedly say that cyanmod supports proxy, but if you dont tell us where in cyanmod you think you found these proxy settings it doesnt help people much, and we can't then tell if youre getting wifi proxy confused with apn proxy (a common mistake).
[Android Software/Hacking General [Developers Only]] squire23:
Might be a stupid question but have they not addressed this in Froyo?
[Android Software/Hacking General [Developers Only]] mistahd33:
Nope, apparently not. :(
[Android Software/Hacking General [Developers Only]] squire23:
Well that's me gone back to WinMo then... bloody ridiculous
[Android Software/Hacking General [Developers Only]] anthonws:
It might support routing all traffic to one IP/Port via iptables, like we already talked, but there is no support for Proxy with Authentication, for example.

Unless I'm not aware that Cyan and the rest of them Team implemented proxy client full support into the HTTP Stack (something Google said that there was no ETA).

And FYI I have now 3 Android phones. It's been 2 years since my first Android, it had version 1.1 at the time. So yes, I've tried Cyanogen, Wes, Haykuro, etc, etc, etc. I've rooted, non-rooted, briked, unbricked, everything you can think off that would happen to an Android device and post hacking actions.

Please, consider that people that are discussing this issue have some experience in the matter, and no, we can not do everything with a rooted phone.

Anyways, thank you for your post. Any sort of information and action counts.

Best regards,

Anthon.
[Android Software/Hacking General [Developers Only]] sweetheater:
In my univ.. Its proxy without authentication...!! So please help me how to connect via proxy...My phone is useless without it!!
[Android Software/Hacking General [Developers Only]] magdap:
they had it in version 5.0.6. don't know why they should have kicked it out

see here:

http://www.androidpolice.com/2010/0...-6-for-nexus-one-and-motorola-droid-released/

"Added option to set a system-wide http proxy server (this should really be a per-ssid setting though"
[Android Software/Hacking General [Developers Only]] mistahd33:
Any idea where in the rom this might have been toggled from?
[Android Software/Hacking General [Developers Only]] opt_boston:
A bit of seach and I think this is it.

http: // thumbsnap.com/B68OKNJ1

http: // thumbsnap.com/8sOPZFrm

The problem is that it does not allow authentication - user and pass. Without this this feature is useless.

Been searching for a few days for a way to resolve this. This is a big flaw.

Thinking of implementing a java proxy client based on the org.apache.commons.httpclient.ProxyClient but would have to figure a way to pass all the traffic through it, opening and closing, etc.

Anyone knows how I can get my hands on the Cyanogen source code. I would like to take a peek at that specific menu/feature and maybe add a bit of code to it to allow authentication, if it can be done at that level.

EDIT: It seems that Cyanogen could be using the underlying Settings.Secure.HTTP_PROXY

http: // developer.android.com/reference/android/provider/Settings.Secure.html#HTTP_PROXY

or Settings.System.HTTP_PROXY (which is deprecated - probably used up to 1.6)

which does not allow the input of authentication info. at the moment the only way is to use org.apache.http. now how can we route all trafic through this is what we are aiming for.

For those with the Cyanogen rom (mine is the vanilla one provided by Optimus Portugal) try using this as the proxy url:

http: // user:password@proxyurl.com or

http: // user:password@proxyurl.com:port (with and without the port defined in the interface)

to see if you can connect. Some proxy clients and servers accept this type of connection.
[Android Software/Hacking General [Developers Only]] anthonws:
@opt_boston

Exactly what I said before. It's useless without auth.

If I'm not wrong, that "http_proxy" was only for the web browser. And you could define it by sqlite.

See this link: http://discuz-android.blogspot.com/2008/01/set-proxy-for-android-web-browser.html

Thanks for your investigation!

Abraços!

Anthonws.
[Android Software/Hacking General [Developers Only]] sweetheater:
How do I do this.. in my HTC desire phone..Can you provide a tutorial that could be easily implemented by less tech people like me...thanks a lot!!
[Android Software/Hacking General [Developers Only]] lamaz:
There is supposedly a way to set proxy settings with a GUI. I am somewhat knowledgeable and still haven't been able to decipher the following instructions:

http://alexmogurenko.com/blog/programming/android-how-to-set-proxy-for-android-browser/

Do I need to make a java script file and run it with the browser? Make a java file and javac the .java file. I don't understand!

-LamaZ
[Android Software/Hacking General [Developers Only]] opt_boston:
That tutorial is for creating an application with the android sdk so you have a basic gui to configure the browser proxy. you can code it with eclipse+android sdk. build the application (create the .apk). copy it to the sd card and install it.

the advice is to change one of the examples that come with the sdk (for example the notepad one), replacing the code with the one on the page.
[Android Software/Hacking General [Developers Only]] sweetheater:
Guys I found this in one of the forums .... Please try it and let me know

hi guys! I've installed anycut on my HTC Hero.

You have to open the application and choose: ''new shortcut'', then ''activity''.

It will take a while to load all the possible shortcuts, hold on with some patience :P

choose ''proxy settings'' (on my italian hero the shortcut is called: ''impostazioni proxy'')

it will add a shortcut in the home.

simply tap the shortcut and insert the settings for your own proxy (host and port number).

I've tried it in my university and works for the http part. No success for https, but I've been able to open gmail using Opera mini (download is for free).

this is not the final solution, of course, but is better than nothing!

now I can use more or less any network feature even with the proxy.

To use your home network you have simply to tap the ''reset settings'' in the proxy settings and you'll be able to use it again. the only shame is that you can't save the settings: you have to insert manually host and port everytime.
[Android Software/Hacking General [Developers Only]] lambstone:
Does it work with proxy that requires authentication?
[Android Software/Hacking General [Developers Only]] sweetheater:
What do you mean by proxy authentication... We have username and pass for the wifi in our university.......... then a proxy host like "proxy.ssn.net" and port 8080... so it means my university doesnot have a proxy authentication??
[Android Software/Hacking General [Developers Only]] Submarine854:
Anthon, any news on that topic?

cu
[Android Software/Hacking General [Developers Only]] lambstone:
I meant that some proxy requires you to log in. Like for my university, I have to set the proxy address first, then when i attempt to browse a page, I would be prompted for my username and password.
[Android Software/Hacking General [Developers Only]] mistahd33:
My speculation (pure speculation) about googles plan regarding wifi proxy is this:

Currently Android v2.2 doesn't (strictly speaking) support larger resolutions like 1024x600, 1024x768 etc. Android v3 which is rumoured to come out 2010 Q4 is going to apparently support the larger resolutions so that android tablets can start getting serious and attract some big name hardware manufacturers. Now I would imagine (although android has surprised and disappointed us this far in neglecting the matter) that wifi proxy will be supported in or shortly after Android v3. After all, many current tablets (including the ipad) are available in versions that do not have 3g capabilities. Therefore anyone would have to have rocks in their head to officially create a tablet level o/s without proper wifi certificate and wifi proxy solutions (wouldnt they??). I reckon if push comes to shove and we have to wait it out, android will come to the table and sort it out in a future version within the next 6 months.
[Android Software/Hacking General [Developers Only]] XpLoDWilD:
I don't know if it has been posted, but CyanogenMod 5.0.8+ supports WiFi Proxy with Authentication (at least I tested with a Squid proxy at my school and it did work).
[Android Software/Hacking General [Developers Only]] dgogoasa:
FROY in Australia

I just got FROYO over WI-FI today in AU.

The proxy over Wi-Fi hasn't been addressed.
[Android Software/Hacking General [Developers Only]] sweetheater:
any updates guys!!

I found this blogpost...It seems proxy is working when the following is done...can anyone make this as a patch or an app

http://www.yuan.se/?p=32
[Android Software/Hacking General [Developers Only]] anthonws:
Sorry for the lack of update.

I'm having a hard time finding spare time after work.

But, just to clarify things.

Google has no plan whatsoever to implement proxy in Android!

So, no! Not 2.2, 2.3, 2.4, 3.0... When they have a plan we will know it.

Regarding some posts about actual proxy settings/configuration, they only work for Browser and for proxy that don't request authentication.

Our best chance would be to cross-compile something like this http://proxychains.sourceforge.net/.

With a custom kernel, with the necessary netfilter modules, iptables configuration and this local proxy in our phone, chaining all the requests to the external proxy, seems (to me) our best approach.

Either way, I'm no Guru. So if a Guru has a suggestion, please we are eager to have solutions.

Best regards and thank you all,

Anthon.
[Android Software/Hacking General [Developers Only]] anto1208:
HELP ME Please

I use proxy server for wifi and cell phone business to Provide

3G/HSDPA over the air.

I made the following settings on Galaxy S created new APN:

Name :****

APN: Access Point

Proxy:*****.*****.local

Port: 8080

Username: my username

Password: *****

Authentication Type: PAP

Type APN: Internet

This configuration works on Windows Mobile 6.5 Phone and not

work on Galaxy S.

Do you have suggestions this is a big problem.

thanks
[Android Software/Hacking General [Developers Only]] anthonws:
Hello,

In case you have missed my post, or not yet read the first post:

http://code.google.com/p/android/issues/detail?id=9126

http://code.google.com/p/android/issues/detail?id=1273

Thank you.
[Android Software/Hacking General [Developers Only]] sweetheater:
any updates on proxy??
[Android Software/Hacking General [Developers Only]] opt_boston:
As mentioned before this has been a problem since android v1.0. As far as we know (from the android issue tracker) there is no timeline given by google to solve this. As of now if you want proxy support you have to buy a phone with another operating system (Symbian, IOS, Windows Mobile, etc.). Don't expect this anytime soon. And even if it's released don't expect the cell phone providers to officialy release the update.

The only way would be to have a phone that has been rooted and use a cooked rom.

As much love as I have for open source and think that android is a great operating system, it's things like this that make me want to slap all the google devs. One of the top issues in the tracker and no importance given whatsoever.

/rant
[Android Software/Hacking General [Developers Only]] sweetheater:
Can any of the developers here release a ROM with such settings :( Please help guys!!
[Android Software/Hacking General [Developers Only]] hfalk4:
The CyanogenMod includes proxy settings!
[Android Software/Hacking General [Developers Only]] mistahd33:
Not in cm6 it doesn't. People need to read the whole thread, lots of things are getting repeated a lot.