如何使用Charles Proxy设置Android Lollipop模拟器? [英] How to setup Android Lollipop emulator with Charles Proxy?
问题描述
我一直在遵循其他问题的说明,例如 SSL代理/查尔斯和Android出现问题,我能够使用Charles Proxy一直分析Android模拟器的数据包到奇巧(Kitkat).
I've been following instructions from other questions such as How to configure SSL certificates with Charles Web Proxy and the latest Android Emulator on Windows? (I'm on a MAC though) and SSL Proxy/Charles and Android trouble and I'm able to use Charles Proxy to analyze the packets of Android emulators all the way up to Kitkat.
现在,我正在尝试对Lollipop模拟器执行相同的操作.但是,当我重复用于成功设置Kitkat模拟器的相同步骤时,Charles什么也没显示!当我尝试使用仿真器的浏览器连接到Web时,出现以下错误:
Now I'm trying to do the same for Lollipop emulators. However, when I repeated the same steps I used to successfully setup the Kitkat emulators, Charles show nothing! When I try to connect to the web using the emulator's browser, it gives the following error:
Mac OS X上的Android Lollipop仿真器是否需要采取任何特殊步骤才能启用数据包嗅探?
Are there any special steps required for the Android Lollipop emulator on Mac OS X in order to enable packet sniffng?
提前谢谢!
推荐答案
我也有同样的想法,最后找到了出路:按照您提到的链接中的说明进行操作:
I had the same, and finally find a way out: Follow the instruction in the link you mentioned: How to configure SSL certificates with Charles Web Proxy and the latest Android Emulator on Windows?
然后从查尔斯那里,我进入了代理"菜单并启用了"Mac OS X代理".突然间,东西传了过来.即使我关闭了"Mac OS X代理" ...
Then from charles I went into the 'Proxy' menu and enabled 'Mac OS X proxy'. Than suddenly stuff came through. Even after I switched off the 'Mac OS X proxy'...
ps:无法通过模拟器上的移动设置来设置代理;代理设置必须通过命令行完成(sdk/tools中的仿真器命令,应以类似以下命令的方式运行:./emulator -avd Nexus_4_API_21 -http-proxy http://<your-ip-as-in-charles-help-menu>:8888
).我还尝试了一些代理应用程序,例如proximator,但没有成功.另外,我遇到了问题,并重新启动了查尔斯修复了该问题.
ps: setting the proxy through the mobile settings on the emulator did not work; proxy setting has to be done through the command-line (The emulator command in in the sdk/tools and should be run something like : ./emulator -avd Nexus_4_API_21 -http-proxy http://<your-ip-as-in-charles-help-menu>:8888
). I've also tried some proxy-apps like the proximator without any succes. Also I've have problems and restarting charles fixed it.
这篇关于如何使用Charles Proxy设置Android Lollipop模拟器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!