MCPcopy Index your code
hub / github.com/callstack/agent-device / openAndroidIntent

Function openAndroidIntent

src/platforms/android/app-lifecycle.ts:412–429  ·  view source on GitHub ↗
(
  device: DeviceInfo,
  intent: string,
  options: OpenAndroidAppOptions,
)

Source from the content-addressed store, hash-verified

410}
411
412async 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
431async function openAndroidPackageActivity(
432 device: DeviceInfo,

Callers 1

openAndroidAppFunction · 0.85

Calls 2

runAndroidAdbFunction · 0.90
androidLaunchArgsFunction · 0.85

Tested by

no test coverage detected