首先你需要启用开发者模式,并安装SideQuest
打开SideQuest并连接头显,在头显中选择允许电脑访问,点击SideQuest右上角的 Run ADB... > CUSTOM...
在弹出的框中点击左侧的List Devices,如果列出了一串头显序列号,就是连接成功了,然后把下面的代码粘贴进去运行(连点三下选择一整行)
一行一行运行,别4行一起进去了
复制
//设置NTP服务器
adb shell settings put global ntp_server ntp3.aliyun.com
//打开WiFi可用性验证
adb shell settings put global captive_portal_mode 1
//关闭https模式
adb shell settings put global captive_portal_use_https 0
//设置WiFi验证地址
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
验证设置是否成功,查看//后的返回值是否一致
复制
adb shell settings get global ntp_server
//ntp3.aliyun.com
adb shell settings get global captive_portal_mode
//1
adb shell settings get global captive_portal_use_https
//0
adb shell settings get global captive_portal_http_url
//http://connect.rom.miui.com/generate_204
恢复默认
复制
adb shell settings delete global ntp_server
adb shell settings delete global captive_portal_mode
adb shell settings delete global captive_portal_use_https
adb shell settings delete global captive_portal_http_url vr助手解一下就行了,没那么复杂
页:
1
[2]