( device: DeviceInfo, intent: string, options: OpenAndroidAppOptions, )
| 410 | } |
| 411 | |
| 412 | async function openAndroidIntent( |
| 413 | device: DeviceInfo, |
| 414 | intent: string, |
| 415 | options: OpenAndroidAppOptions, |
| 416 | ): Promise<void> { |
| 417 | if (options.activity) { |
| 418 | throw new AppError('INVALID_ARGS', 'Activity override requires a package name, not an intent'); |
| 419 | } |
| 420 | await runAndroidAdb(device, [ |
| 421 | 'shell', |
| 422 | 'am', |
| 423 | 'start', |
| 424 | '-W', |
| 425 | '-a', |
| 426 | intent, |
| 427 | ...androidLaunchArgs(options), |
| 428 | ]); |
| 429 | } |
| 430 | |
| 431 | async function openAndroidPackageActivity( |
| 432 | device: DeviceInfo, |
no test coverage detected