(serial: string)
| 413 | } |
| 414 | |
| 415 | async function isAndroidBooted(serial: string): Promise<boolean> { |
| 416 | try { |
| 417 | const result = await readAndroidBootProp(serial); |
| 418 | return result.stdout.trim() === '1'; |
| 419 | } catch { |
| 420 | return false; |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | export async function ensureAndroidEmulatorBooted(params: { |
| 425 | avdName: string; |
no test coverage detected