ashishpnd7 / sandrop

Automatically exported from code.google.com/p/sandrop
0 stars 0 forks source link

For some apps it doesn't work #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run NavFree (for example. Ads works perfectly (;-)))
2. Tap on Search with google for a destination
3. NavFree return "no internet connection"

I expected i can search via google but it doesn't work. Perhaps the problem is 
my proxy doesn't manage that request

version SandroProxy: where i can see it? 
operating system: Android 4.1.2

Many other apps works greatly. Great SandroProxy.
(Sorry for my english, i'm italian).

Original issue reported on code.google.com by pzand...@gmail.com on 19 Jun 2013 at 8:31

GoogleCodeExporter commented 9 years ago
Tested with NavFree and looks that this app don't respects android proxy 
settings.
It makes direct connections to servers.

If you have rooted phone you can try with SandroPorxy APP tab and http/https 
redirection.

I will make some more tests.

Original comment by supp.san...@gmail.com on 19 Jun 2013 at 2:10

GoogleCodeExporter commented 9 years ago
Thank you.
I don't know if i have to do something else but....
I've tried to set in SandroProxy APP tab Navfree checked (http + https) .
It doesn't work.

Greetings

Original comment by pzand...@gmail.com on 19 Jun 2013 at 2:36

GoogleCodeExporter commented 9 years ago
Maybe you should also ask in this group what could be wrong.

https://groups.google.com/a/navmii.com/forum/#!topic/android-app/RvpKQqsmKWw

Original comment by supp.san...@gmail.com on 19 Jun 2013 at 2:41

GoogleCodeExporter commented 9 years ago
I find out that is working if you make redirection in SandroProxy APP tab for 
NavFree.
But you must also enabled transparent proxy with Settings->Transparent proxy
To achieve all that your device must be rooted.
If you need more help to set up send mail to supp.sandrob@gmail.com

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 7:13

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 7:23

GoogleCodeExporter commented 9 years ago
I checked transparent proxy.... doesn't work.

Original comment by pzand...@gmail.com on 20 Jun 2013 at 10:18

GoogleCodeExporter commented 9 years ago
Stop/start is needed to activate new settings.
Can you send what is in log tab when you activate Network Info action from Log 
TAB?
There should be lines that shows that device is listening on ports 8009 and 
8010 
and iptables rules for NavFree redirection to this ports.
Long click on log screen and context menu will appear 
where you can copy content to clipboard.

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 10:37

GoogleCodeExporter commented 9 years ago
Yes it shows 
Proxy listening on 127.0.0.1:8010 
Proxy listening on 127.0.0.1:8009
Proxy listening on 127.0.0.1:8008

A question:
- to stop/start i must simply tap on X and then on > to the top of App?

Many,many thx for your attention.

Original comment by pzand...@gmail.com on 20 Jun 2013 at 12:24

GoogleCodeExporter commented 9 years ago
Yes, you stop with X and start with >.
There should be also some lines like 
iptables -t nat -A OUTPUT -m owner --uid-owner <xxxxx> -p tcp --dport 80 -j 
DNAT --to 127.0.0.1:8009

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 12:54

GoogleCodeExporter commented 9 years ago
do you mean this:

#redirect outbound port from 80 to 127.0.0.1:8009
/data/data/org.sandroproxy/files/iptables_armv7 -t nat -A sandrop_proc -m owner 
--uid-owner 10171 -p tcp --dport 80 -j DNAT --to 127.0.0.1:8009
FIX ME! implement getprotobyname() bionic/libc/bionic/stubs.c:478
- successful.

Original comment by pzand...@gmail.com on 20 Jun 2013 at 1:37

GoogleCodeExporter commented 9 years ago
Yes, this also looks okey. And what is logged when you start NavFree?

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 1:43

GoogleCodeExporter commented 9 years ago
The strange thing is ads works perfectly in NavFree, but when i try to search 
somwthing with inside google icon it says No internet connection.
However, here the log when i try to search in Navfree

Reading request from the browser
Version: HTTP/1.1 keepAlive: Keep-Alive reuseCount:1
Finished writing the response to the browser
Writing the response to the browser
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 : 200 OK
Response:
200 OK
Via: 1.1 <proxyname>
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Content-Length: 0
Content-Type: text/html
Server: Jetty(7.6.1.v20120215)

Reading the response
Request : 
GET 
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 HTTP/1.1
Host: met.adwhirl.com
User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)
Proxy-Authorization: NTLM 
TlRMTVNTUAADAAAAGAAYAEAAAAAOAQ4BWAAAAAAAAAAAAAAAEAAQAGYBAAAWABYAdgEAAAAAAAAAAAAA
BYIIAPqKCRi150KHZFEDHUMcOP384yudOabmGmZ6fpKCv8Tz6qT2DN0xeSIBAQAAAAAAANBOWOu+bc4B
BLXUP0IN/6MAAAAAAgAaAFQARQBMAEUAQwBPAE0ASQBUAEEATABJAEEAAQAcAFQARQBMAFAAUgBBADEA
MAAxAFIATQAwADAAMQAEACYAdABlAGwAZQBjAG8AbQBpAHQAYQBsAGkAYQAuAGwAbwBjAGEAbAADAEQA
VABFAEwAUABSAEEAMQAwADEAUgBNADAAMAAxAC4AdABlAGwAZQBjAG8AbQBpAHQAYQBsAGkAYQAuAGwA
bwBjAGEAbAAFACYAdABlAGwAZQBjAG8AbQBpAHQAYQBsAGkAYQAuAGwAbwBjAGEAbAAAAAAAAAAAADEA
OQAwADYANgAzADgAOABKAEMASQBGAFMAMABfADEAXwBEAEUA

Existing socket is valid, reusing it!
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 : 407 Proxy Authentication Required ( 
Access is denied.  )
Response:
407 Proxy Authentication Required ( Access is denied.  )
Via: 1.1 <proxyname>
Proxy-Authenticate: NTLM 
TlRMTVNTUAACAAAAGgAaADgAAAAFgokCMD84opZghaEAAAAAAAAAAN4A3gBSAAAABQLODgAAAA9UAEUA
TABFAEMATwBNAEkAVABBAEwASQBBAAIAGgBUAEUATABFAEMATwBNAEkAVABBAEwASQBBAAEAHABUAEUA
TABQAFIAQQAxADAAMQBSAE0AMAAwADEABAAmAHQAZQBsAGUAYwBvAG0AaQB0AGEAbABpAGEALgBsAG8A
YwBhAGwAAwBEAFQARQBMAFAAUgBBADEAMAAxAFIATQAwADAAMQAuAHQAZQBsAGUAYwBvAG0AaQB0AGEA
bABpAGEALgBsAG8AYwBhAGwABQAmAHQAZQBsAGUAYwBvAG0AaQB0AGEAbABpAGEALgBsAG8AYwBhAGwA
AAAAAA==
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 0

Reading the response
Request : 
GET 
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 HTTP/1.1
Host: met.adwhirl.com
User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)
Proxy-Authorization: NTLM 
TlRMTVNTUAABAAAAB6IIAAAAAAAAAAAACwALACAAAABKQ0lGUzBfMV9ERQ==

Existing socket is valid, reusing it!
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 : 407 Proxy Authentication Required ( The 
ISA Server requires authorization to fulfill the request. Access to the Web 
Proxy filter is denied.  )
Response:
407 Proxy Authentication Required ( The ISA Server requires authorization to 
fulfill the request. Access to the Web Proxy filter is denied.  )
Via: 1.1 <proxyname>
Proxy-Authenticate: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Connection: Keep-Alive
Proxy-Connection: Keep-Alive
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 4126

Reading the response
Request : 
GET 
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2 HTTP/1.1
Host: met.adwhirl.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)

Connect to <proxyname:port>
Opening a new connection
requested : GET 
http://met.adwhirl.com:80/exmet.php?appid=5958645d8aca4f26bca7624bbf81e72a&nid=3
b00351f657e473db0ddc94cd66a0db4&type=17&uuid=7d1dd13a2fa91c0ad174cb69a11549a3&co
untry_code=it_IT&appver=320&client=2

Original comment by pzand...@gmail.com on 20 Jun 2013 at 2:28

GoogleCodeExporter commented 9 years ago
I tested also with ISA proxy and windows authentication and is working well.
But search is done by google and in your log should be someting like
http://ajax.googleapis.com:80/ajax/services/search/local?v=1.0&q=venezia

Original comment by supp.san...@gmail.com on 20 Jun 2013 at 3:05

GoogleCodeExporter commented 9 years ago

Original comment by supp.san...@gmail.com on 22 Aug 2013 at 12:39