手机设置
1.开启手机 开发着模式
2.在开发者模式内,打开 “USB 调试”,手机数据线连接到电脑
下载ADB
SDK Platform Tools 下载地址,选择你对应的系统下载,我这边以windows为例
把下载的压缩包解压到C盘
开始操作
以管理员身份运行 windows PowerShell
cd 到刚才解压的文件夹内,我这边是放在C盘,路径C:\platform-tools
cd C:\platform-tools
运行adb shell
.\adb shell
手机和电脑应该都会弹出授权网络和操作一律允许
删除网络设置
.\adb shell settings delete global captive_portal_http_url
.\adb shell settings delete global captive_portal_https_url
更改成小米网络验证URL
.\adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
.\adb shell settings put global captive_portal_https_url http://connect.rom.miui.com/generate_204
开启飞行模式,在关闭,现在应该就不会在提示 网络连接受限
评论区