Android记录并修改所有HTTP请求 [英] Android log and modify all HTTP requests
本文介绍了Android记录并修改所有HTTP请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道我可以记录(嗅探)整个Android中传出和传入的所有HTTP请求的方式,并且可以在该过程或块中修改它们吗?
I am wondering what way I can log (sniff) all HTTP requests that are outgoing and incoming in whole Android and is it possible to modify them during that process or block ?
我应该使用哪些库?
推荐答案
你至少需要一个带根电话,这基本上排除了不幸地分发你在市场上发布的东西..
You're going to need a rooted phone at least, which basically rules out distributing what you make on the market unfortunately..
考虑到这一点,看一下 libpcap 和 iptables :)
With that in mind, take a look at libpcap and iptables :)
这篇关于Android记录并修改所有HTTP请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文