yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] [deXter]:
If your ROM supports init.d startup scripts, then you should be able to modify or create a startup script in /system/etc/init.d

eg: in /system/etc/init.d/05transproxy :

#!/system/bin/sh
am start -a android.intent.action.MAIN -n com.hasbox.tproxy/.Main

This will launch transproxy on startup. However if your ROM doesn't have init.d support, (which is most probably the case if it's a stock rom), check this thread out:

http://xdaforums.com/showthread.php?t=894445
[Desire Android Development] gilms:
Hi, i have a folio 100 with foliomod v.1.4, I installed TransProxy, but when I try to turn the proxy on, I get this error:

"Failed to start redirect.sh (FIX ME! implement

getprotobyname() bionic/libc/bionic/stubs.c:378

iptabels v1.3.7: can't initialize iptables table 'nat':iptables

who? (do you need to insmod?)

Perhaps iptables or your kernel need to be upgraded"

the message repeats.

What can I do?
[Desire Android Development] redjersey:
it doesn't work for some reason. when I tried to enable it my phone vibrated twice then it auto set back to disabled or force closed film using firefly with onix transproxy 3.8 beta
[Desire Android Development] bgdxv:
I tried to use TansProxy on LG Optimus One but it doesn't work. I set root acces to the program, enabled it and still the browser doesn't connect to the proxy :( what else must I do? Please help
[Desire Android Development] ozom:
Desire with 2.2 yes, Galaxy S with 2.3.3 not fully

Hi. I use this great app on my desire for a while no problems, market works, browser too, shortly everything. But on my Galaxy S i9k with 2.3.3 original rooted rom does't, market does´t. Do you know why? Can I give you some log or something?

Galaxy S 2.3.3 ROM has it' s own implementation for proxies, but this works only for the browser. So it is not possible to connect even to account on gmail, after installation of transparent proxy it is :) thank you.
[Desire Android Development] bgdxv:
Can you please tell me how to setup iptables? :(
[Desire Android Development] flame10:
Coming back after almost a year, still TransProxy2.04.apk works perfectly on my cyanogenmod rom .. 3x versions still don't work. I use socks proxy .. since many people had success with the latest versions, just wondering if they tried the socks version and had success with it.
[Desire Android Development] vnl:
Is there any alternate solution to transproxy, as it looks like there is no development for this any more
[Desire Android Development] rfgamaral:
I use Socks with 3.07 and it works fine. However, 3.08 never worked for me. But this was back when I used Eclair 2.1. I have yet to test this app on Gingerbread 2.3.3.

Too bad the developer is missing, this app could really use a little bit of more polish...
[Desire Android Development] Thronesmasher:
I use ASProxy, it allows you to specify a proxy per WiFi access point, so no need to enable the proxy manually everytime you connect, and it's being actively developed
[Desire Android Development] king_roach:
Works wonderfully.

This has given me net access to other apps (market, weather, etc) over wifi in a network that requires proxy.

My device is Samsung Galaxy Ace (GT-S5830) running FroYo 2.2.1, rooted with SuperOneClick 1.9.1.

I hope this helps everyone who's had my problem.

Now the only remaining problem for this wretched device, HowTF am I supposed to arabize it? I need Arabic support to read SMS and webpages, and what I don't get is, howTF can something like text encoding be relevant to hardware (or maybe BIOS?) because I've read somewhere that arabization works for many most android devices but Samsung Galaxys are not supported, even though they pretty much run the same OS.

Sorry, irrelevant rant. Cheers for awesome apk.

BTW,

Keep in mind something very simple, like, this apk here is free while ASproxy costs £3.02 to buy.

Since the proxy problem thing is seen by many users as a shortcoming/mistake on behalf of google which they weren't aware of before they bought their handsets, and which I'm sure would have deterred many from buying had they known beforehand, I don't think most will believe they should pay even more moeny to fix problems.

I know developers are independent and paying them for their help makes sense, and we sure appreciate them and what they do lots, but I'm just saying this might be a little different from other applications as this is seen by many as a "fix".

I'm saying this because I personally would decline to get a fix if it's paid, but that's just me. Something about it is principally wrong.

I'm not encourange or discouraging anything, I'm not trying to make any kind of point except that you should consider that as a factor to keep in mind when people make their decisions.

Good luck for everybody!
[Desire Android Development] kunaljain:
I use Nexus One. Has anybody been able to connect to GTalk behind proxy using the native application ?
[Desire Android Development] rfgamaral:
Just tested 3.08 with Gingerbread 2.3.3 and although it works, the CPU usage spiked to 98% rendering the phone unusuable. I'm back at 3.07 which works just fine, minus the GUI which is damn ugly :X
[Desire Android Development] qexing:
It's a great app for android, and 3.08 version HTTP proxy works fine, but SOCKS doesn't work :(
[Desire Android Development] NicolaF78:
Just awsome !

The killer feature would be to automatically select proxy based on the current wifi network...

Is source code accessible somwhere ? Never coded for android, but would be very happy to try !
[Desire Android Development] Moronig:
Need suggestions

Hey NicolaF78, I'm working on a clone of TransProxy, same basic features, even based on the same script, but with auto select proxy. I'm wondering now how I could uniquely identify a network, even if many APs/SSIDs are available to connect to it.

Do you guys think gateway address + netmask would work?
[Desire Android Development] NicolaF78:
Hi !

IMHO, gateway address + netmask is not discriminant enough, far to complicated for the average user, and can change whenever an IT guy wants... Checking SSID once Wifi is connected should be enough and relatively easy to do. I think to the case where different APs w/ different MAC addresses are available for the same SSID, for instance "public" WIFI provided by some ISP, with proxy authentication.

I suggest you to check out this app : https://code.google.com/p/freewifi-connect/. This performs a web based authentication once connected to a particular French "public" WiFi. And this is opensource (apache license), so the "connected to wifi" event handling should be reusable.

To list the registered networks, if no API is available, you can always parse /data/misc/wifi/wpa_supplicant.conf (grep '^\s*ssid=(.*)').

Let me know if I can help you...
[Desire Android Development] NicolaF78:
Re-hi,

just checked out freewifi-connect, looks like all you need is in /src/com/mba/freewifi/FreeWifiListener.java : connection event handling, and it looks like he's able to list the configured networks...

Have fun !
[Desire Android Development] Moronig:
Seems to be working ok, autoconnect and everything. I'm fixing up the UI and catching some bugs, and should have a beta soon. I will start a new thread and link to it.

But I have a question, if anyone can help:

I'm using the redsocks binary from this app's 3.08 version, but I would like to make some changes. Does anybody have the sources for daveba's version? I asked him, but received no reply. I got the source from the redsocks git repository, and it compiles and works fine, but it's over a MB. Maybe I'm missing some optimizations, or need dynamic linking? I'm not experienced with g++.

Any help is appreciated.
[Desire Android Development] bringonblink:
Man this is confusing, how exactly do i set up iptables on my phone? :S
[Desire Android Development] Moronig:
If your phone doesn't already have iptables, you must try one of several binaries available and see if they work. What have you tried so far and what is the model of your phone?
[Desire Android Development] bringonblink:
I have the Nexus S SAMOLED version, all i have tried is downloading transproxy and running it, i really have no clue about all this iptales/binaries business :confused:
[Desire Android Development] daveba:
Due to family issues i am not able to work on this any longer and (as people have noticed) i have been vacant from the development scene for a while. I will upload the sources to the 1st post in the next half hour. Anyone is given full permission to dissect, fix, reuse anything and include it in their ROM as required. The backend (redsocks) code needs to be updated as the developer has also let me know that a new version is out. As always stated, NTLM is not supported, but with enough free time it should not be a gargantuan task to do so whomever picks up the gauntlet. I have returned to see 31 messages in my PM inbox so please don't expect personal responses.

This started as a pet project one day when i was onsite at a customer and turned into a beast where i got a lot of encouragement but also people felt i should respond to them even though i'd answered all the questions several times before. I know it's difficult for people to go thru pages and pages of posts but really all the answers are in the first post (believe it or not). I will try and monitor this thread, but please if you take this code and further it, start a new thread with the fork. There is (i believe) some good code in here for android beginners (which i was) so a good reference point on how to code an app and call external apps, kill them, etc. I'm only releasing v3 of the code as it should be the way forward. Again, the GUI android bit of the code is ONLY the controls to start up the real workhorse which is iptables and redsocks. The latter do all the necessary magic.

On the first post is now

1. TransProxy3.zip (the android code tha needs to be imported into eclipse)

2. redsocks4transproxy3.zip (the redsocks code and libevent - this need the SDK to compile the arm binaries which needs to be copied into the assets directory)

The latter #2 can be compiled on linux x86 for testing as it is linux code.
[Desire Android Development] Moronig:
Installing iptables on your rom

I assume since it's not working for you that you get an error message sying that iptables is missing?

Maybe you have it, but it's on another path. So try this:

go to a shell (either on your phone or adb)

Type: su (your phone must be rooted)

Type: iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to 8123

Type: iptables -L -n -t nat

If that doesn't work, then you don't have iptables on you rom. Try this binary:

View attachment iptables.rar

(It's not nexus S specific, but may work)

You have to:

unrar

su

move it to /data/data

chmod 700 /data/data/iptables

then run it: /data/data/iptables -L -n -t nat

Please note this is to test your kernel supports iptables. If it does, move the binary to /system/bin. You may have to remount your /system folder as read/write.

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system [optional]

mv /data/data/iptables /system/bin/iptables

chmod 700 /system/bin/iptables

let me know how that works for you, you can PM me if you need more details.
[Desire Android Development] eramirezus:
Does anyone know if there is a way to "autostart" the "Proxy" service (http type of proxy - wap.mycricket.com: 8080 with authentication info as well) in this app at bootup on the phone?

I have succesfully installed this app on my Jiminy Cricket ROM on Cricket Wireless. My phone is rooted. I am not on the Android plan (nor do I want to pay more to get it) so I have to use this app as a workaround to access Maps, MP3 Download, Redbox, and other assorted apps which require Internet access on my EVO through Cricket Wireless.

I DID setup a Tasker profile so that the Transparent Proxy app starts at bootup. But when it starts up, it just shows the Transparent Proxy page and I have to press the "Off Button" to manually turn it on.

Does anyone know how to automatically start the Proxy service? Is there a way? A different program? A different profile that I need through Tasker?

I did try ProxyDroid and it worked but it kept crashing my phone so I had to uninstall.
[Desire Android Development] Bradshort:
Thanks for all your work Dave, this app has been a lifesaver to soo many people way before other solutions were out there. I still use your app every day.

Wish you well in the future

Steve
[Desire Android Development] daveba:
Start it manually and look at your logcat output. It will show you what parameters need to be passed to the "start" script. Then you can just use Tasker to run the shellscript with the correct arguments.
[Desire Android Development] Moronig:
From the Android 3.1 Platform Highlights:

Users can now configure an HTTP proxy for each individual Wi-Fi access point, by touch-hold of the access point in Settings. The browser uses the HTTP proxy when communicating with the network over the access point and

other apps may also choose to do so

. The platform also provides backup and restore of the user-defined IP and proxy settings.

Now if only the other apps will choose to do so...
[Desire Android Development] alessandro_xda:
wow!!

i hope it can be grabbed from android 3.1...
[Desire Android Development] Moronig:
AutoProxy released!

Thanks to daveba for the releasing the source for this useful app. I have made it more useful still, by releasing a new app based on it, and created a new Thread for that. Find it here:

http://xdaforums.com/showthread.php?p=13877562

Here are a couple screenshots:
[Desire Android Development] eramirezus:
Forgive me for my late reply.

I read your reply above and I have no idea what it means. Logcat? Start script?

Looks like I'll do some googling around to try to figure all that out.

Thanks for the info though. Much appreciated.
[Desire Android Development] samdai:
COULD you add the port 8080

my company's port is 8080

COULD you add the port 8080 funtion?
[Desire Android Development] mistahd33:
The latest version of transproxy already supports custom port number, also this project has been discontinued and the work is being continued in an app called autoproxy.

Sent from my atari 2600 using a big scary looking, extremely modified double dragon cartridge.
[Desire Android Development] Fixup:
Thanks for the great work!
[Desire Android Development] cyberden:
Hi everybody and thanks for all the work done with this app.

I'm using it on a desire with CM7 to connect to an http tunnel opened via putty on my computer. Everything is working fine (radio streaming, web browsing, even installing app with the latest market).

However, the wifi icon in the notification is never "green" which means that I don't have push mail and automatic sync. The strange thing is I can send mail with the app and it works...

Has anybody seen that? Is there anything to do?
[Desire Android Development] Moronig:
For anybody searching in this thread, the successor for this app, Autoproxy, now has proxy.pac support, and a free version on the market. Check it out at https://market.android.com/details?id=com.mgranja.autoproxy_lite
[Desire Android Development] Zorigo:
The app doesn't seem to be working for me

I'm using This thread to try and set inverted colours in the browser, but when i'm setting my proxy host as localhost and port as 8118 using the Transparent Proxy app, when i try to turn the proxy on by clicking the on/off button, it says;

Failed to start proxy.sh (sh:applet not found)

Any help please?
[Desire Android Development] munirshah77:
excellent job
[Desire Android Development] woti23:
second option would be an update.zip to flash

with rommanager ie

maybe somebody here with an newer iptables version can provide you one

personally i use a mcr rom and modaco's kitchen for things like this

hope this helps
[Desire Android Development] magdap:
the newest version works for me, and most of my apps, although downloading apps from the market gives me errors.

Thanks!!!!
[Desire Android Development] daveba:
User 'magdap' just helped me to fix the issue with nexus one kernel for his ROM not having multiport iptables option working so i had to split the iptables into two command for each port. So i've just uploaded version 1.03. Please let me know if anyone has any more issues. I've also added the newer iptables binary in the package.
[Desire Android Development] flame10:
Thanks you might have created Google's most wanted android feature :-)

waiting eagerly for SOCKS 4a/5 support

Thanks again.. really mean it
[Desire Android Development] anto1208:
Apk This works on Galaxy S?

can be used for HSDPA connection?

Thanks
[Desire Android Development] daveba:
Try it and report back. Should work for any connection as it's working at the network layer not the app layer.
[Desire Android Development] davecore:
This is just amazing... I was waiting for this for ages now !! ;-)

Working great on MCR R9 ;-) Internet, maps ... !!

Big ups for that !

The only issue I have is with my exchange email corporate connexion... no ways to connect to exchange.. Is is because of the ports ?? Is there anything I can do to make it sync ??

BTW, I connect wifi using 802.1x EAP to my wifi network then start your tool and bang !! it work straight away..

So left only is the download from market (as already reported) and Exchange ActiveSync...

Thanks again for this magic tool !

Dave'

P.S. Ready to donate quite a bunch if you are able to make this work with exchange
[Desire Android Development] Sonic7:
Works preety good :D:D:D:D:D

Thx for that
[Desire Android Development] daveba:
Unfortunately i don't think market app talks HTTP(s) to their servers so the only way for that to work would be via a VPN. Just forwarding the ports to the HTTP server will not make it work.

As for corporate exchange, do you know what ports it uses ? Also does it speak http protocol to the exchange server (i know nothing about exchange myself). I think it uses some sort of MAPI or RPC over HTTPS which should work in theory. Maybe your corporate server uses some nonstandard ports ?
[Desire Android Development] woti23:
i use proxymator.apk and on a netbook/desktop linux privoxy server

market, gmail even cifsmanager etc go over proxy

found it here in the forum some time ago

well and then, the most missing thing is proxy-authentication

maybe you could get your affords together
[Desire Android Development] daveba:
Next version has authentication (basic) and socks support.
[Desire Android Development] daveba:
Actually i just did a tcpdump from my router and i am wrong. Market DOES use HTTP and it does work perfectly thru this proxy app... I have to use market enabler to 'fix' my operator settings as market is not enabled in my country, but after that it works fine.

Of course the better option is to use the appbrain app which doesn't have this idiotic restrictions that google places on countries.
[Desire Android Development] STetzel:
Sorry but transproxy only works for http. GMail and Market , OWA( Exchange ) needs https.
[Desire Android Development] daveba:
I think you're wrong about market, since i've tested it and it works fine with http. But yes https seems to fail even though it's reported to work from transproxy 1.4 onwards. I'm investigating. As mentioned i'm looking at chaining transproxy with polipo and using transproxy just as the transparent bit since polipo doesn't support that.
[Desire Android Development] andmark:
support for Samsung spica i5700

I installed last version of transproxy on my routed spica, but it doesn't work, although it has superuser acces, custom kernel (LK2.09.6 by Leshak) with iptables;

I tried to check if iptables supports redirecting:

which iptables

/system/bin/iptables

# iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123

iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:372

iptables: No chain/target/match by that name

Where is the problem?

Thanks
[Desire Android Development] anto1208:
Proven TransProxy.apk Galaxy's not working on my I-network

hsdpa proxy that requires authentication with the information required

Apn my setup on my Galaxy are

Settings-> Wireless-> mobile-> profiles-> new Apn

APN = xxxxxxxx.it

PROXY = xxxxxxxx.local

PORT = 8080

USERNAME = XXXXXX

PASSWORD = XXXXXX

Authentication Type = PAP
[Desire Android Development] guevor:
I tried it in my Milestone and does not work correctly.

The problem I've noticed is that instead of connecting to my proxy, netstat shows me that connect with 67.215.65.132 (I use opendns).

If I run tproxy by hand it work properly.

Another problem is that it does not close properly.

Cheers
[Desire Android Development] flame10:
APK Works perfectly through privoxy on my HD2, will love to chuck out privoxy as well .. that would be perfect, even iphone cannot do socks
[Desire Android Development] daveba:
Hang on for a day or so. I'm rewriting to code to just have the apk do the graphical bits and then run scripts in the background. This gives me more flexibility for chaning (i.e. providing authentication and socks) and also hopefully to fix the SSL issue. Whilst just having port 80 forwarding is good enough for lots, the https redirection would make more thing work (Gmail for one).

Currently i was doing an exec() to execute the tproxy process and then having to track the process state. This was not elegant in any way shape or from.

Hang on...
[Desire Android Development] flame10:
Definitely boss ..

Edit: While hanging on, options to specify ports will be useful and yes the gui needs a bit work.
[Desire Android Development] woti23:
buying an app in the market with google checkout will hopefully go over https?

couldn't believe otherwise
[Desire Android Development] mistahd33:
What a fantastic app.. great to see so much ground being made on this front. Most things work most of the time on my desire... can browse app market but not download apps. Can't wait for authentication support and ability to download market apps. Keep up the fantastic work!
[Desire Android Development] flame10:
+1 on market apps downloading, I thought this will be automatic, but somehow this doesn't happen, or am I doing something wrong
[Desire Android Development] The_Law2:
YES! Thank you so much for this. I can finally connect to Wifi at my work.
[Desire Android Development] sweetheater:
Can any of you guys tell with which of the custom roms does this app works perfectly...I am currently having opendesire custom rom in Desire mobile
[Desire Android Development] andmark:
Samsung spica i5700

with last version of TransProxy.apk i can't manage It to work, at least on rooted samsung Spica,

here what i am getting from adb:

# /system/bin/iptables -v

/system/bin/iptables -v

iptables v1.3.7: no command specified

Try `iptables -h' or 'iptables --help' for more information.

# iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123

iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-ports 8123

FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:372

iptables: No chain/target/match by that name

# /data/data/com.hasbox.tproxy/start.sh

/data/data/com.hasbox.tproxy/start.sh

[1] Segmentation fault /data/data/com.h...

[1] Segmentation fault /data/data/com.h...

#

Anybody, any ideea?

thanx
[Desire Android Development] woti23:
did you try a newer iptables binary?

most roms have version 1.4.7 nowadays
[Desire Android Development] andmark:
Yes, i tried with binary 1.4.7 taken from walldroid.apk and results are the same;

I think there is a kernel problem .. it has no support for redirect maybe it could work with an module(ipt_REDIRECT), but it misses from /lib/modules
[Desire Android Development] daveba:
Yes it looks like your kernel doesn't support REDIRECT. It doesn't necessarily need to be a module as it could be compiled in-kernel like most kernels (CM6 for sure).