当前位置: 代码迷 >> Android >> android虚拟机设立http代理(续)
  详细解决方案

android虚拟机设立http代理(续)

热度:339   发布时间:2016-05-01 14:04:46.0
android虚拟机设置http代理(续)
通过前面所讲述方法,无法实现对webview http请求的代理,所以只能通过修改设置参数的形式进行http代理设置。

方法:
1、adb shell
进入到虚拟机的shell

2、sqlite3 /data/data/com.android.providers.settings/databases/settings.db
编辑参数数据

3、insert into system values(99, 'http_proxy', 'host:port')
插入代理参数

重新启动虚拟机,代理就会生效。

*查看了AndroidDevice代码发现还未支持proxy设置。
  相关解决方案