直接用adb devices,老是找不到设备,或者反复验证,也不知道是什么原因,最后用sidequest搞定。
0、默认能上互联网
1、下载SideQuest Advanced Installer,安装之
https://sidequestvr.com/setup-howto
2、按Open setup instructions的提示操作,通过quest的adb安全验证
3、点击右上角按钮,在弹出菜单中,选择 Custom command
4、依次执行一下adb命令
adb shell settings put global captive_portal_https_url https://littlejake.net/generate_204
adb shell settings put global captive_portal_http_url http://littlejake.net/generate_204
adb shell settings put global captive_portal_mode 0
参考资料