我正在尝试让 Genymotion(Virtualbox 中托管的 x86 Android 模拟器)与 Charles 代理一起使用。我已经设法将设备连接到设备的 wifi 代理设置中的代理,使用网关 ip(vm 配置为使用仅限主机的适配器 fwiw)并且代理 http 流量就好了。我已经在 vm 上安装了 charles 证书,但所有 ssl 连接仍然失败,并显示“SSL:无法识别的 SSL 消息,纯文本连接?”错误。有没有人能够配置 genymotion 与 Charles 作为 ssl 代理一起工作?我可以通过 virtualbox 设置实现更通用的解决方案吗?
提前致谢。
最佳答案
转到您的 genymotion 模拟器
Settings -> Wifi -> Press and hold your active network
Select “Modify Network”
Select “Show Advanced Options”
Select “Proxy Settings -> Manual”
Set your Proxy to: 10.0.3.2 (Genymotion’s special code for the local workstation. the Network mode must be NAT on virtual device configuration)
Set your Port to: 8888
Press Save.
尽管在此之后您会看到在 charlesproxy 中记录的网络请求。打开 genymotion 浏览器 并转到以下 URL http://charlesproxy.com/getssl下载并安装证书。你应该很高兴。 复制自:http://rexstjohn.com/using-genymotion-charles-proxy/
关于android - Genymotion 和 Charles 的 SSL 代理?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19280987/