test(android): add gateway connect adb probe · openclaw/openclaw@d7aa1f3
obviyus
·
2026-05-25
·
via Recent Commits to openclaw:main
File tree
app/src/debug/java/ai/openclaw/app
| Original file line number | Diff line number | Diff line change |
|---|
@@ -92,6 +92,13 @@ class VoiceE2eService : Service() {
|
92 | 92 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK or Intent.FLAG_ACTIVITY_SINGLE_TOP or Intent.FLAG_ACTIVITY_CLEAR_TOP), |
93 | 93 | ) |
94 | 94 | |
| 95 | +if (mode == "connect") { |
| 96 | +val resultJson = """{"ok":true,"mode":"connect","connected":true}""" |
| 97 | + writeResult(resultJson) |
| 98 | +Log.i(tag, "PASS $resultJson") |
| 99 | +return |
| 100 | + } |
| 101 | + |
95 | 102 | val transcript = |
96 | 103 | intent |
97 | 104 | .getDecodedStringExtra("transcript") |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,8 @@ usage() {
|
23 | 23 | Usage: apps/android/scripts/voice-e2e.sh [options] |
24 | 24 | |
25 | 25 | Options: |
26 | | - --mode normal|realtime|both Voice path to test. Default: both. |
| 26 | + --mode connect|normal|realtime|both |
| 27 | + Gateway probe or voice path to test. Default: both. |
27 | 28 | --transcript TEXT Synthetic user transcript for the voice turn. |
28 | 29 | --realtime-assistant TEXT Synthetic realtime assistant relay text. |
29 | 30 | --host HOST Gateway host visible from Android. Default: 127.0.0.1. |
@@ -209,6 +210,9 @@ case "$MODE" in
|
209 | 210 | realtime|talk) |
210 | 211 | run_mode realtime |
211 | 212 | ;; |
| 213 | + connect) |
| 214 | + run_mode connect |
| 215 | + ;; |
212 | 216 | *) |
213 | 217 | echo "unknown mode: $MODE" >&2 |
214 | 218 | exit 2 |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。