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

#### 先決條件

* 一部筆電同你嘅 Android TV 已經連接到 **同一個 Wi‑Fi 網絡**
* **開發人員選項** 已喺你部電視上啟用
* **無線除錯** 已喺你部電視上啟用

<details>

<summary>點樣啟用開發人員選項</summary>

去 **設定** （齒輪圖示）→ **系統** 或者 **關於** → 搵 **Android TV OS build** 或者 **Build number** → 快速撳 7 至 8 次，直到你見到「你而家已經係開發人員！」

</details>

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

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

1. 去 **設定** → **系統** → **開發人員選項**
2. 啟用 **無線除錯**
3. 記低 **IP 位址、連接埠同配對碼** 會顯示喺畫面上

<figure><img src="/files/3a5bdd4ad1002dc4503b63e7925ec87cc9afb050" 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-yue/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.
