# ADBコマンドを使った高度な設定

#### 前提条件

* ノートパソコンと、Android TV が接続された **同じ Wi‑Fi ネットワーク**
* **開発者向けオプション** を TV で有効にする
* **ワイヤレス デバッグ** を TV で有効にする

<details>

<summary>開発者向けオプションを有効にする方法</summary>

次へ移動 **設定** （歯車アイコン）→ **システム** または **端末情報** → を探す **Android TV OS ビルド** または **ビルド番号** → 「あなたは開発者になりました！」と表示されるまで、7〜8回すばやくクリックします

</details>

<figure><img src="/files/9691a033bad75117388904e3472e11c7d78585fb" alt=""><figcaption></figcaption></figure>

#### ステップ 1: ワイヤレス デバッグを有効にする

1. 次へ移動 **設定** → **システム** → **開発者向けオプション**
2. 有効にする **ワイヤレス デバッグ**
3. 次をメモしてください **IP アドレス、ポート、ペアリングコード** 画面に表示されている

<figure><img src="/files/8ede22c06c24e0870fb8938a9c112cc9d7602c1b" alt=""><figcaption></figcaption></figure>

#### ステップ 2: ノートパソコンを TV とペアリングする

ノートパソコンでターミナルを開き、次を実行します:

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

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

{% endcode %}

例: `adb pair 192.168.1.130:37081`

プロンプトが表示されたら、ペアリングコードを入力します。ペアリングに成功すると、TV に新しい接続ポートが表示されます（通常は `:5555`).

#### ステップ 3: TV に接続する

{% 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 が UI から削除した設定です）
* `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-ja/adbkomandowottana.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.
