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

posted @ 2021-06-09 11:15  adam.li  阅读(290)  评论(0编辑  收藏  举报