(port: number)
| 376 | // ─── Factory ───────────────────────────────────────────────────────────────── |
| 377 | |
| 378 | async function tryAdbForward(port: number): Promise<void> { |
| 379 | try { |
| 380 | await runCliCommand(`adb forward tcp:${port} tcp:${port}`); |
| 381 | } catch { |
| 382 | // adb may not be installed or no Android devices attached — non-fatal |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | export async function connectToDaemon(port: number = DEFAULT_PORT): Promise<DaemonConnection> { |
| 387 | // Only set up adb forwarding for mobile ports — standalone macOS apps listen |
no test coverage detected