win11安卓子系統(tǒng)經(jīng)常提示VirtWifi的連接受限怎么解決?
1、打開手機(jī)開發(fā)者模式
啟動適合android的windows子系統(tǒng)。
打開這種開發(fā)人員模式。
手機(jī)調(diào)試的IP和地址在這里可以看到,127.0.0.1:58526。
2、下載ADB工具
在純英語路徑下下下載ADB工具(如果你有,你會忽略它),比如C:/platform-tools
3、啟動ADB工具
在資源管理器中打開C:/platform-tools,直接將cmd輸入路徑欄,返回車輛,打開命令提示。
4、連接手機(jī)
將adb輸入命令提示行窗口 connect 127.0.0.1:58526,敲回車。
connected出現(xiàn)提示 to 127.0.0.1:58526表示連接成功。
5、修改網(wǎng)絡(luò)測試域名
輸入命令提示行窗口:
【adb shell settings put global captive_portal_server www.google.cn】。
敲回車。
【adb shell settings put global captive_portal_https_url https://www.google.cn/generate_204】。
敲回車。
【adb shell settings put global captive_portal_https_url http://www.google.cn/generate_204】。
敲回車。
如果你連google.如果cn無法訪問,可以嘗試將其改為MIUI測試網(wǎng)站。
輸入命令提示行窗口:
【adb shell settings put global captive_portal_server connect.rom.miui.com】。
敲回車。
【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 https://connect.rom.miui.com/generate_204】。
敲回車。
注:ADB連接的前提是你啟動了Android子系統(tǒng),所以只要你至少有一個(gè)APP在運(yùn)行。