> For the complete documentation index, see [llms.txt](https://buzzblender.gitbook.io/buzzblender-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://buzzblender.gitbook.io/buzzblender-docs/docs-zh/shi-yong-adb-ming-ling-jin-hang-gao-ji-she-zhi.md).

# 使用 ADB 命令进行高级设置

#### 先决条件

* 一台笔记本电脑，以及已连接到 **同一 Wi‑Fi 网络**
* **开发者选项** 在您的电视上已启用
* **无线调试** 在您的电视上已启用

<details>

<summary>如何启用开发者选项</summary>

前往 **设置** （齿轮图标）→ **系统** 或 **关于** → 找到 **Android TV OS 版本号** 或 **版本号** → 快速点击 7 到 8 次，直到看到“您现在已成为开发者！”

</details>

<figure><img src="/files/646e1ccc20831cc051839ed85e80ef64ed79cedb" alt=""><figcaption></figcaption></figure>

#### 步骤 1：启用无线调试

1. 前往 **设置** → **系统** → **开发者选项**
2. 启用 **无线调试**
3. 记下 **IP 地址、端口和配对码** 显示在屏幕上

<figure><img src="/files/cd2ecc0fcc820c189deca7b29fbc8e7aca5d7465" alt=""><figcaption></figcaption></figure>

#### 步骤 2：将您的笔记本电脑与电视配对

在笔记本电脑上打开终端并运行：

{% code lineNumbers="true" expandable="false" %}

```bash
adb pair IP:PORT
```

{% endcode %}

示例： `adb pair 192.168.1.130:37081`

在提示时输入配对码。配对成功后，电视将显示一个新的连接端口（通常以 `:5555`).

#### 步骤 3：连接到电视

{% code lineNumbers="true" expandable="false" %}

```bash
adb connect IP:5555
```

{% endcode %}

示例： `adb connect 192.168.1.50:5555`

#### 步骤 4：将 Buzzblender 设置为屏保

运行这些命令以启用屏保并将 Buzzblender 设置为默认值：

{% code lineNumbers="true" expandable="false" %}

```bash
adb shell settings put secure screensaver_enabled 1
adb shell settings put secure screensaver_activate_on_sleep 1
adb shell settings put secure sleep_timeout -1
adb shell settings put secure screensaver_components com.buzzblender.tv/.playback.PlaybackDreamService
adb shell settings put system screen_off_timeout 30000
```

{% endcode %}

每个命令的作用：

* `screensaver_enabled 1` — 启用屏保
* `screensaver_activate_on_sleep 1` — 设备休眠时激活屏保
* `sleep_timeout -1` — 禁用休眠超时限制
* `screensaver_components com.buzzblender.tv/.playback.PlaybackDreamService` — 将 Buzzblender 设置为默认屏保（这是 Google 从界面中移除的设置）
* `screen_off_timeout 30000` — 设置屏幕在 30 秒无操作后关闭

#### 步骤 5：验证设置

让您的 Android TV 空闲 30 秒。Buzzblender 现在应将您的内容作为屏保显示。

需要 ADB 设置帮助？发送邮件至 <help@buzzblender.com> 以与支持团队预约设置通话。
