( device: DeviceInfo, packageName: string, activity: string, launchCategory: string, options: OpenAndroidAppOptions, )
| 429 | } |
| 430 | |
| 431 | async function openAndroidPackageActivity( |
| 432 | device: DeviceInfo, |
| 433 | packageName: string, |
| 434 | activity: string, |
| 435 | launchCategory: string, |
| 436 | options: OpenAndroidAppOptions, |
| 437 | ): Promise<void> { |
| 438 | const component = activity.includes('/') |
| 439 | ? activity |
| 440 | : `${packageName}/${activity.startsWith('.') ? activity : `.${activity}`}`; |
| 441 | try { |
| 442 | await runAndroidAdb(device, buildAndroidActivityLaunchArgs(component, launchCategory, options)); |
| 443 | } catch (error) { |
| 444 | await maybeRethrowAndroidMissingPackageError(device, packageName, error); |
| 445 | throw error; |
| 446 | } |
| 447 | } |
| 448 | |
| 449 | async function openAndroidPackage( |
| 450 | device: DeviceInfo, |
no test coverage detected