yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] tmp31416:
can't turn autoproxy off?

i recently bought a pre-paid telus lg optimus one to be used with petrocan mobility.

the phone was initially at version 2.2.1 of android; i used the desktop lg tool to upgrade it to android 2.3.3.

i unlocked the phone and subsequently rooted it with superoneclick.

next, i downloaded autoproxy from the android market and configured it to work with petrocan's "unlimited mobile browsing" service -- only port 80 (http) traffic goes through. and it seems to work: youtube, maps, android market, etc.

but when i tried to turn autoproxy off, i got the following error message:

Failed to stop proxy (

[: not found

killall: not found

busybox: not found

rm failed for /data/data/com.mgranja.

autoproxy/files/redsocks.conf, no such

files or directory)

using the adb shell, i've poked around my phone to find busybox & killall, to no avail.

right now i'm stuck with autoproxy in a funky state: it thinks it's connected, even though i now have turned wireless data off.

and i can't tell it to stop.

i've searched all forums high and low for an explanation of what the problem, and could not find anyone with the same problem, which i found surprising.

so, the question: how to i get autoproxy to turn itself off correctly?

thanks in advance!

p.s. (14:30): btw, autoproxy does work when activated: i was able to update skype from what came with my phone (or what came with the official telus android 2.3.3 release) and use it, despite petrocan's filtering of non-browser activity. so for that, i am a happy camper. but having to turn off my phone every time i want to turn autoproxy off, whilst a work-around, sort of ruins the picture.
[Android Apps and Games] mobinga:
AutoProxy works for direct ip addresses. But if I enter a domain name like google.com it times out. Help
[Android Apps and Games] tmp31416:
(x-post) success with autoproxy on my optimus one

*** i know most of this has already been mentioned on this website and elsewhere, but this is my attempt to summarize everything in one post.

so i finally got autoproxy to work 100% as expected. all in all, i feel that the pre-requisites were not correctly identified. so here they are below, to avoid anyone else with an lg optimus one p500h wasting time trying to make things work:

* unlock your phone (can't hurt, even if you don't have to)

download the following three windows packages:

* superoneclick (at least v2.3.3.0)

* android sdk (at least r16)

* java jdk (at least v7u3)

for the next two android apps, you will have to get yourself an android marketplace account and set up a payment arrangement with google to be able to purchase autoproxy (it's worth the small amount the dev asks for).

* busybox (from 'stericson' -- at least v7.5.5)

* autoproxy (android app -- at least v0.60)

your optimus one (or any other android device, for that matter) must be rooted to make use of autoproxy.

understand it's also missing busybox by default, this is why you need to download it.

install the windows apps: java jdk, then android sdk.

extract superoneclick from its .zip file.

connect your phone to your windows pc via usb, put it in usb debug mode.

start superoneclick and root your phone.

once you're done, go to the android market and get stericson's busybox.

even though it looks installed (nice little icon in the android gui), you have to start it to be able to install the core software that autoproxy uses. select version 1.19.2.

once busybox says it's fully installed, get autoproxy.

configure as needed.

voilà!
[Android Apps and Games] mobinga:
AutoProxy works with IPs in my case, I reckoned it could be from DNS issues. So .. I switched over to proxydroid which has a DNS setting. It works now.
[Android Apps and Games] theshowman:
Sorry I ask this question again,

Has anyone been able to get the default email client from GB/HC/ICS to use Autoproxy and receive POP email?

It is interesting to note that EAS (exchange active sync) seems to work by the default email client, through the HTTP proxy using Autoproxy, but all other POP based emails (eg Yahoo mail) doesn't seem to work. I guess it uses port 993.

Are there additional iptables rules required to redirect 993 t redsocks?

Any ideas?
[Android Apps and Games] tmp31416:
@theshowman

i'm not sure about pop3 usage, but the gmail client that comes standard with android 2.3.3 (lg optimus one p500h) does works with autoproxy. from my experience/observations, you need to manually refresh to get new mail, though.

i got my lg very recently and did not have time to fully explore/master it, so if there is another e-mail client, i did not notice it yet.

i hope this helps.
[Android Apps and Games] scottath:
Hey there, My uni is starting up again tomorrow and id like to get my new Galaxy Tab 7.7 (P-6810 - wifi only) onto the uni's network. They use the .pac method to run all the proxy stuff.

I installed Autoproxy Lite from the market, and opened the app and all i get is a white screen followed by a force close message.

Tab is rooted, superuser is installed and other root-access-required apps are working perfectly. I installed "Iptables" from the market too to support that too.

What can i try to get the program running?

Opened it on my ICS rom'd SGS1 and it seems to be working well (im not at uni to test the proxy actual though till Tuesday)
[Android Apps and Games] Moronig:
scottath, when it crashes, you can send me a report with a message to let me know it was from you, and I will take a look and fix it.
[Android Apps and Games] scottath:
Report sent. Thanks.
[Android Apps and Games] theshowman:
Thanks for the response.

The following Email methods work with AutoProxy:

- Gmail App

- Yahoo Mail App

- Default Email client with Exchange Activesyc to Corp Email "SSL +Accept all Certificates is enabled"

- Default Email Client using Exchange (eg Hotmail) only if "SSL +Accept all Certificates is enabled"

The following don't work with Autoproxy:

- Default Email Client using POP3 (eg Yahoo)

Mind you, I must say this this is the case using the HTTP proxy in our corporate environment.

I haven't tried it with any other proxy's yet just to rule out the proxy server as the culprit.
[Android Apps and Games] chrysophlax:
Hi all!!!

Any help would be very appericiated.

When I type on the shell as su

iptables -L -n -t nat

I am getting

/system/bin/iptable: not executable: magic 7F45

Also when I start AutoProxy it gives the following error,

Failed to start proxy.sh(/data/data/com.mgranja.autoproxy/files/proxy.sh[111]:/data/data/com.mgranja.autoproxy/files/redsocks: not executable: magic 7F45)

What is wrong with this? Do you have any idea about this?
[Android Apps and Games] Moronig:
What device are you trying to run Autoproxy on?
[Android Apps and Games] chrysophlax:
Hi Moronig!!

Firstly thanks a lot for this great application. It is running great on my wife's HTC HD2 (Gingerbread 2.3.5)

My device is Asus eee pc 901 running x86 Android ICS 4.0.3
[Android Apps and Games] Moronig:
Ok, that's what I thought. The binaries included with autoproxy were compiled for ARM processors, not x86. I can put together an x86 version of it this weekend, would you be willing to test it?
[Android Apps and Games] chrysophlax:
Yeah, of course, I would be very glad to test it. I will be waiting for your news.

Thanks in advance.
[Android Apps and Games] chrysophlax:
Hi Moronig!

Are there any news about the x86 version?
[Android Apps and Games] saulmrt:
I just tried AutoProxy with an proxy.pac, but it doesn't work. Neither in the browser nor in an app. Do I have to care about something special regarding pac-files?

Android 4.0.3, bmorn v99 Tablet
[Android Apps and Games] noseph:
Problem description: Autoproxy installs and says it is connected to my proxy, however I am unable to access any thing outside of the enterprise network.

Phone make/model: HP TouchPad

Android version: CM9 Alpha 2 (cm tenderloin 4.03)

Version of the app you're running: 0.60

Error messages(if any): none

Logs: attached

Type of proxy: HTTP
[Android Apps and Games] noseph:
I feel really stupid! Proxy support is built into ICS and additional programs are not required. It is under advanced options for each individual network you connect to.
[Android Apps and Games] chrysophlax:
In any case you need a program, because built in proxy support is only for the stock browser as far as I know. I am also using ICS but on a x86 platform and waiting for a x86 version of this program from Moronig. He said that he would do it but it has been a long time I did not hear from him.
[Android Apps and Games] noseph:
On my HP TouchPad running CM9 Alpha 2 (ICS 4.0.3) setting the Proxy on my work network connection seems to work for everything that needs internet access (Dolphin Browser, ICS Browser +, GMail, Play Store, App Store, weather apps, Beyond Pod, Netflix, Dropbox, etc).
[Android Apps and Games] Moronig:
noseph, I will take a look at your logs, and let you know.
[Android Apps and Games] Moronig:
Sorry chrysophlax, I've just been really busy lately with personal issues. My best ETA now is next week for this.
[Android Apps and Games] justaway2:
Is there a way to automatically turn on/off the proxy when I switch from 3G to wifi?
[Android Apps and Games] Moronig:
Yes, if you are using the Autoproxy paid version, just connect to the proxy in the network that you need it, and when you change to another network, it will disconnect automatically, and connect again when you return to that network.
[Android Apps and Games] P4K:
Hi Moronig, I am still not able to view log files :confused: but the app work fine (except for https links)

the strange thing is that viewing the memory usage of all applications, the #1 is Autoproxy with 191 Mb, and the second is Google Earth with only 22 Mb...

on a Nexus S with Vanilla Android 2.3.6, i've purchased the full version.
[Android Apps and Games] spuiqr:
I created an http proxy on my PC, in the beginning 2 days, autoproxy works with Google Play Store well. But 3 or 4 days ago, it can't work any more. The log file of proxy on PC doesn't have the logs of Google Play. I've tried many ways: kill the google play, clear the data of it.... it just can't work again.

But I can still use Gmail and surf the internet through the proxy.
[Android Apps and Games] chrysophlax:
Hi Moronig,

Are there any news about the x86 version?

Greetings
[Android Apps and Games] ikeny:
I also got the white screen + force close.

I have a Galaxy tab 10.1 3G, it is rooted. I downloaded Iptables (beta), ran it and selected "install" in the app. But when I tried to open Autoproxy lite, and showed white screen then forced close.
[Android Apps and Games] Gallus_gallus:
Some help please with cm7.1 on my color nook.

I'm new to the Color Nook, and to Android.

After purchasing my Nook, I installed CyanogenMod 7.10-encore on a Sandisk micro SD card. The CM7 boots from the SD card, and I have the option of booting to the Stock Nook on the internal memory if I wish to.

Everything that I have tried to do thus far in general seems to work well. But I cannot access my Linksys router at home, because my Proxy server requires an ip address such as 192.168.1.x and a port such as 808.

All of the reading that I did seemed to indicate the Autoproxy would allow me to work around this problem. So I purchase and installed the paid version on the Google App store, and also installed the iptables app. I set the iptables to give the super user full authority.

The Nook running CM 7.10 finds my router and connects, shows that it has a valid ip number handed out by the DHCP server, and Autoproxy also indicates that it is connected. I set up Autoproxy for the ip address and port number needed by my proxy server, but my browsers both say that cannot reach my requested url's (Amazon.com, Google.com, etc.)

I used both the default CM7 browser, and the Opera Mobile app that I downloaded from the Google Apps store. I tried using Opera with and without proxy settings entered into the Opera:Config settings sheet.

I tried using the CM7 terminal emulator to find an Autoproxy log file, but found it really difficult to navigate-- NO Control-C option that I could find to work.

I took the micro SD card out of the Nook, put it in an adapter, and then mounted a Linux Live CD to look at the file system. The card was broken into four partitions. I searched with both a GUI file manager and with 'grep' on all four partitions, but I could not find anything that looked like an Autoproxy log.

So (1), can you give me a specific path and filename for the log file, and (2), what other information do you need to help me determine what is wrong?

Thanks so much for any help you can provide.
[Android Apps and Games] scottath:
Ive tried again with 2 other roms for my tablet and it still does the white screen + crash.

Moronig - did you get anything useful from the handful of logs i sent?
[Android Apps and Games] Moronig:
Thanks everybody for reporting the issues, sorry I`ve been a little absent here. I`ve uploaded a fix to the white screen/force close issue.

Please try version 0.61 from the market, and let me know if that works.

Regards,

Moronig
[Android Apps and Games] ikeny:
Working perfectly. Galaxy tab 10.1 4G
[Android Apps and Games] scottath:
app works now, doesnt fix everything for me but thats my unis issue. thanks
[Android Apps and Games] gn2:
New version broke mine Please tell me where to get the previous version my 7" Tabs entire functionality depends on this working,
[Android Apps and Games] asharx:
update caused white screen & force close

I have the full version and I just updated to the latest app, now I am getting the white screen & force close. How do I uninstall the updates??? I was working flawlessly before the update. I will have to wait to get home or on wifi to load anything on my phone. I am on Petro Canada Mobility and my access to data depends on this app.

I just sent you a report, in the mean time I am going to go get autoproxy lite to see if that will work in the mean time..

Samsung Galaxy Gio
[Android Apps and Games] chickan:
Autoproxy Lite was working great on my Samsung Fascinate (running ICS 4.04 - Gummy) so I purchased Autoproxy (v0.61) and it now crashes saying "Unfortunately Autoproxy has stopped". The Lite version still works though.

Hope this gets fixed soon, I love the program! Its the only way for me to access the internet at work through my company Wifi network.
[Android Apps and Games] asharx:
Lite works, so I can use that untill the full version works.

But would rather have the full version up and running.....
[Android Apps and Games] Moronig:
Sorry everyone, it was just a bad compile. Upgrade again from the market, it`s fixed now.
[Android Apps and Games] Gallus_gallus:
Moronig,

Could you please look at my post # 352.

I upgraded my Autoproxy to the latest version .61.

I did get online for about 30 seconds to one website (energybulletin.net), using the Opera Mini browser. Any further attempts to get to a web page returns the error message "Could not locate remote server" in Opera Mini, and "Web Page Not Available" in the Default CM7 "Browser"

I'm going to try to upload the log files.

Thanks for your help.
[Android Apps and Games] 7ftnick:
Auth

Hello

Bought the 0.61 version off the market.

Proxies do work, but not all.

First of all when I visit the whoer.net website, in the "browser" section, my DNS doesn't change, it is still the DNS my ISP assigned.

Secondly when I use a proxy that requires authorizing (socks5) that proxy doesn't work at all.

Though it works fine with proxifier on my pc.

Please advise.
[Android Apps and Games] pederb:
I have a Motorola Atrix with its optional LapDock and I was told you can use the lapdock w/o wifi using 3g. How do I set it up for that?

Cheers
[Android Apps and Games] pederb:
Anybody?
[Android Apps and Games] Moronig:
I'm sorry, I didn't understand what you mean. Does the lapdock normally only allow you to use wifi to connect? Can you explain how it normally works?
[Android Apps and Games] gugaoforums:
ajuda amigo

olá Moronig !!!

puxa me senti orgulhoso agora de ser brasileiro graças a vc! heheheh

seu programa supera de longe os da concorrencia! legal!! parabens!!

update..

o problema que eu tinha já foi resolvido.. nao conseguia conectar a minha vpn pelo proxy do 3g..

mas agora entendi que tem q botar no openvpn para conectar ao proxy entao ta tudo maravilha!!
[Android Apps and Games] pederb:
Yes you are right, you must signup for ATT tethering plan to be able to use it with 3G, and it really makes no sense since the LapDock is only a screen and a keyboard

Cheers
[Android Apps and Games] chrysophlax:
Hi Moronig!

I am still waiting for your x86 version patiently!?
[Android Apps and Games] 3rsaku:
I am running resurrection remix v.2.1 (siyah kernel). I have installed autoproxy from the market and when I start the program, I have a blank white screen. Is there a fix for this? thank you!

EDIT: No probs...Reinstallation fixed it..bought the premium version to support the effort of the developer. thank you!
[Android Apps and Games] ujitnos:
HI, all you did was enable the "DNS Proxy" option?
[Android Apps and Games] noradoor:
hey,guys.I've been using autoproxy for several months.

But I encounter a connection problem when I use ICS rom.

the issue:my network disconnects occasionally and I have to reconnect the proxy.

Like I am a Taiwanese,and it fails to connect to any ".tw" sites.

However,I am still able to connect to international website like XDA.But if I want to link to website established in my country,I need to reconnect it.That's really weird.

Just want to ask if someone faces the same problem?Because it works fine in GB.:confused:

Thanks in advance.:)
[Android Apps and Games] AceRoom:
That was the only extra thing that I needed to do.
[Android Apps and Games] sany:
Voip/Sip application alone is not working in corporate wifi

Hi Moronig

Thanks for this great app, I installed and and it worked.

I am using pronto dialer from my android phone. When I try to use it from my home wifi or any open wifi there is no issue it worked like a charm.

When I try to connect via my office network wifi which uses a proxy server, it never connects from my android phone. This is the same with any application that requires internet - all these apps will not be able to connect. Only the inbuilt internet browser alone can connect not even Opera mini.

Hence, I rooted my android device in order to run your 'auto proxy lite' to enable the applications to access the corporate internet. All the apps are now working including skype, android market, samsung app store in my corporate wifi where they all didnt work before rooting and running proxydroid.

The only disappointment still is that, pronoto dialer still can't make a connection via this setup. All that I get to see is a message 'unknown error occured' when trying to register. Again when I went to a open wifi, it works without any issue. I know there is some sort of clash that is happening between proxydroid and pronto, since I am not an IT pro I am unable to identify. Can you please advice as to what could be a workaround solution for this issue?

Please suggest me what must be going wrong here.

thanks

Sany
[Android Apps and Games] JoeSixAtPack:
Port redirection to HTTPS

Hi,

I just bought v0.61 as it allows me to do custom port forwarding. Unfortunately all custom forwarded ports are redirected to the HTTP (8123) port of the proxy server.

In some cases it´s required to forward custom ports to the HTTPS (8124) port.

Any chance to configure this within AutoProxy?
[Android Apps and Games] Jimbroski:
Hey, Dumb question but this works on the S3 right?
[Android Apps and Games] noseph:
This app is not needed on a device running ICS, since proxy setting are built in.
[Android Apps and Games] Jimbroski:
Is VPN = Proxy Setting?
[Android Apps and Games] noseph:
No!
[Android Apps and Games] Jimbroski:
Lol, I got It working so no worries..
[Android Apps and Games] Moronig:
Latest version is out, changed the following:

Fixed FC issues

Added SSID/mobile network field in network list (can't edit yet)

Added log option to redsocks (see updated faq)

Back button from network list now returns to preferences
[Android Apps and Games] XZQ't:
Hi Moronig ,

Already sent you the log , hope you can find a way to fix the problem with Salaxy S 2 soon.

Thanks a million
[Android Apps and Games] Milraun:
Hi,

just testet Version 0.2. It still fails, but with a different error message.

Here is the log:

D/tproxy ( 9403): Dissociating network from proxy...
D/tproxy ( 9403): Updating wireless network info for proxy...
I/tproxy ( 9403): Received start id 17: Intent { cmp=net.moronigranja.tproxy/.ProxyService (has extras) }
I/tproxy ( 9403): Proxy is being stopped...
D/su ( 9805): 10059 net.moronigranja.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh
V/tproxy ( 9403): Successfully ran redirect.sh stop
D/TAG ( 9403): /data/data/net.moronigranja.tproxy/files/ntlm.sh stop /data/data/net.moronigranja.tproxy/files
D/su ( 9811): 10059 net.moronigranja.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh
I/tproxy ( 9403): Received start id 18: Intent { cmp=net.moronigranja.tproxy/.ProxyService (has extras) }
I/tproxy ( 9403): Proxy is being started...
V/tproxy ( 9403): proxy.sh start /data/data/net.moronigranja.tproxy/files type=http host=192.168.254.1 port=8000 auth=false user= p
ass=*****
D/su ( 9813): 10059 net.moronigranja.tproxy executing 0 /system/bin/sh using shell /system/bin/sh : sh
V/tproxy ( 9403): Error starting proxy.sh (
V/tproxy ( 9403): Failed to bind. Try later...)
V/tproxy ( 9403): Proxy was stopped.
D/tproxy ( 9403): Error:Failed to start proxy.sh (
D/tproxy ( 9403): Failed to bind. Try later...)

Any hint what is going wrong ?

Thx in advance

Milraun
[Android Apps and Games] fajarep:
hi, do you support UDP transparent over socks?
[Android Apps and Games] Milraun:
Hi,

in the meantime I managed it to get the proxy started without failure. Nevertheless browsing to an external address won't work.

iptables looks like this:

iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
REDIRECT tcp -- 0.0.0.0/0 !192.168.254.1 tcp dpt:80 redir ports 8123
REDIRECT tcp -- 0.0.0.0/0 !192.168.254.1 tcp dpt:443 redir ports 8124
REDIRECT tcp -- 0.0.0.0/0 !192.168.254.1 tcp dpt:5228 redir ports 8124

redsocks seems to be running:

ps | grep redsocks
app_59 2972 1 740 304 c00ef65c afd0c5bc S /data/data/net.moronigranja.tproxy/files/redsocks
#

Any idea what's going wrong ? Any hint for futher analysis ?

Thx in advance

Milraun
[Android Apps and Games] Moronig:
Hard to say, did you take a look at the redsocks.log? That may help find the problem.
[Android Apps and Games] Moronig:
UDP redirection support

There is no support for it in the user interface, but redsocks supports it. Only for socks proxies, though. If you want to help me test it, I can add the feature. Just give me some more details, like what ports you want udp forwarded from, and I will send you a test version.
[Android Apps and Games] Milraun:
Hi,

when I start autoproxy I get following redsock logs:

1305900167.932525 main.c:136 main(...) redsocks started
1305900167.945648 redsocks.c:661 redsocks_accept_client(...) [127.0.0.1:33774->127.0.0.1:8123]: accepted
1305900169.113830 redsocks.c:661 redsocks_accept_client(...) [127.0.0.1:39681->127.0.0.1:8123]: accepted

After starting the browser there is no additional log and the browser fails to google.com.

Should I see more ?

Thx

Milraun
[Android Apps and Games] Moronig:
I'm not sure what this problem is, someone else had the same problem... I suspect it might be a dns problem. Do you know what dns you're using? Try running a ifconfig. Also, try connect to google by ip address: http://209.85.149.104/