1.和监听的接口不同的设置

日期: 栏目:文章分享 浏览:751 评论:0

我最近在尝试使用mitmdump和Charles,监听的是雷电模拟器。
雷电模拟器新版无法在自己的WiFi里设置代理(设置了也不生效),只能转而求助于adb。

问题:

1.和监听的接口不同,每次要换用的时候,都需要重新设置代理,很麻烦。

2.每次重新设置代理需要重新启动雷电模拟器,做多了挺烦的。

所以,我写了个能设置代理并自动重启的bat

@echo off
tasklist|find /i "dnplayer.exe" 
if %errorlevel%==0 GOTO end1
if %errorlevel%==1 (
start /d "D:\program\LeiDian\LDPlayer4.0" dnplayer.exe
TIMEOUT /T 20
)
:end1
adb shell settings put global http_proxy :0
adb shell settings put global http_proxy ip地址:端口号
taskkill /f /im dnplayer.exe
TIMEOUT /T 2
start /d "D:\program\LeiDian\LDPlayer4.0" dnplayer.exe

写过bat的应该都看得懂雷电模拟可以设置代理吗,很简单的一个小东西雷电模拟可以设置代理吗,里面的模拟器位置自行设置,间隔时间根据电脑性能设置。ip地址和端口号根据你用的来决定

此外,不同版本的雷电模拟器可能名字不同,也根据自己的情况改。

标签:

评论留言

我要留言

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。发布前请先查看评论规则:点我查看