本地代理服务器上运行的Andr​​oid设备 [英] Local Proxy Server Running On Android Device

查看:121
本文介绍了本地代理服务器上运行的Andr​​oid设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写一个HTTP代理服务器将运行在设备上。事实上,需要找到一种方式来捕捉由设备所产生的出站HTTP流量。

I am trying to write a http proxy server that would run on the device itself. In fact, need to find a way to capture the outbound http traffic generated by the device.

在code我至今被编译好了,它是基于code在这里找到:的http://www.jtmelton.com/2007/11/27/a-simple-multi-threaded-java-http-proxy-server/

The code I have so far is compiling OK, it is based on the code found here: http://www.jtmelton.com/2007/11/27/a-simple-multi-threaded-java-http-proxy-server/

的问题是,http请求到实际的服务器将阻塞和不会返回

The problem is that the http request to the actual server would block and never return .

有没有更好的办法,而不生根设备写这样的服务?

Is there a better way to write such a service without rooting the device?

推荐答案

您应该检查SandroProxy。 可以caputre交通非root权限的设备,如果使用操作系统的代理服务器设置,或与根1 iptables规则。 交通存储它的本地SQLite数据库。捕获的数据也可以通过检测铬devtools。为了捕捉流量您的应用程序,你应该检查源$ C ​​$ C的插件。它具有所有$ C $下iptables的重定向和正确的设置。

You should check SandroProxy. Can caputre traffic on non rooted device if os proxy settings are used, or with iptables rules on rooted one. Traffic is stored it in local sqlite database. Captured data can be also examined by chrome devtools. To capture traffic in your app you should check source code for plugins. It has all the code for iptables redirections and proper settings.

检查出谷歌源$ C ​​$ C维基链接HowToInterceptTrafficOnMyOwn

Check out the wiki link on google source code HowToInterceptTrafficOnMyOwn

HTTP://$c$c.google.com/p/ sandrop /维基/ HowToInterceptTrafficOnMyOwn

BTW:发送由sandroproxy支持:)

btw: send by sandroproxy support :)

这篇关于本地代理服务器上运行的Andr​​oid设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆