# 使用 ADB 指令進行進階設定

#### 前置條件

* 一台筆電以及已連接到 **相同 Wi‑Fi 網路的 Android TV**
* **開發人員選項** 已在您的電視上啟用
* **無線偵錯** 已在您的電視上啟用

<details>

<summary>如何啟用開發人員選項</summary>

前往 **設定** （齒輪圖示）→ **系統** 或 **關於** → 找到 **Android TV OS 組建版本** 或 **組建號碼** → 快速點擊 7 到 8 次，直到看到「您現在已是開發人員！」

</details>

<figure><img src="/files/5e90fb988976341a940df66a4d0b831a3926991d" alt=""><figcaption></figcaption></figure>

#### 步驟 1：啟用無線偵錯

1. 前往 **設定** → **系統** → **開發人員選項**
2. 啟用 **無線偵錯**
3. 記下 **畫面上顯示的 IP 位址、連接埠和配對碼** 畫面上顯示的

<figure><img src="/files/f30bf5485e2c3092e6f86712d391a0c4ce7653ef" 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> 以安排與支援團隊的設定通話。


---

# 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://buzzblender.gitbook.io/buzzblender-docs/docs-zh-tw/shi-yong-adb-zhi-ling-jin-xing-jin-jie-she-ding.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.
