# 告别网络受限(激活后)

参考教程：[悟空的谷歌TV激活教程](https://didiboy0702.gitbook.io/wukongdaily/wan-ke-yun-ji-qiao/google-tv-xiu-gai-ntp-fu-wu-qi-di-zhi)

{% hint style="info" %}
需要<mark style="color:yellow;">**激活之后**</mark>并打开开发者权限才行\
这个设置只是以后WiFi不需要UDP支持，<mark style="color:red;">但外网还是要连的</mark>

[寻找梯子](/ready/proxy-server.md)
{% endhint %}

首先你需要启用[开发者模式](/quest-use/dev-sq.md)，并安装SideQuest

打开SideQuest并连接头显，在头显中选择**允许**电脑访问，点击SideQuest右上角的 **`Run ADB...`** > **`CUSTOM...`**

<div align="left"><figure><img src="/files/Kuk5n0AeTXJs6gnjY12U" alt="" width="205"><figcaption></figcaption></figure></div>

在弹出的框中点击左侧的List Devices，如果列出了一串头显序列号，就是连接成功了，然后把下面的代码粘贴进去运行(连点三下选择一整行)

<mark style="color:red;">**一行一行运行，别4行一起进去了**</mark>

```sh
//设置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
```

验证设置是否成功，查看//后的返回值是否一致

<pre class="language-sh"><code class="lang-sh">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
<strong>//http://connect.rom.miui.com/generate_204
</strong></code></pre>

恢复默认

```sh
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
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ocguide.eyw015.com/quest-guide/ntp-adb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
