(serial: string, feature: string)
| 163 | } |
| 164 | |
| 165 | async function probeAndroidFeature(serial: string, feature: string): Promise<boolean | null> { |
| 166 | const result = await runCmd( |
| 167 | 'adb', |
| 168 | adbArgs(serial, ['shell', 'cmd', 'package', 'has-feature', feature]), |
| 169 | { |
| 170 | allowFailure: true, |
| 171 | timeoutMs: ANDROID_BOOT_PROP_TIMEOUT_MS, |
| 172 | }, |
| 173 | ); |
| 174 | const output = commandOutput(result).toLowerCase(); |
| 175 | if (output.includes('true')) return true; |
| 176 | if (output.includes('false')) return false; |
| 177 | return null; |
| 178 | } |
| 179 | |
| 180 | async function hasAnyAndroidTvFeature(serial: string): Promise<boolean> { |
| 181 | const featureChecks = await mapWithConcurrency( |
no test coverage detected