( serial: string, timeoutMs = ANDROID_BOOT_PROP_TIMEOUT_MS, )
| 77 | } |
| 78 | |
| 79 | async function readAndroidBootProp( |
| 80 | serial: string, |
| 81 | timeoutMs = ANDROID_BOOT_PROP_TIMEOUT_MS, |
| 82 | ): Promise<ExecResult> { |
| 83 | return runCmd('adb', adbArgs(serial, ['shell', 'getprop', 'sys.boot_completed']), { |
| 84 | allowFailure: true, |
| 85 | timeoutMs, |
| 86 | }); |
| 87 | } |
| 88 | |
| 89 | async function resolveAndroidDeviceName(serial: string, rawModel: string): Promise<string> { |
| 90 | const modelName = rawModel.replace(/_/g, ' ').trim(); |
no test coverage detected