AS模拟器联网方法

1、adb shell settings put global http_proxy 19.12.32.11:83

2、修改模拟器dns:adb setprop net.dns1 电脑dns地址
先查询dns执行命令:ipconfig -all,找到如下信息,
DNS Servers . . . . . . . . . . . : 19.244.1.140
..
即执行命令:adb shell setprop net.dns1 19.244.1.140

原文地址:https://www.cnblogs.com/adamli/p/14866084.html