frida_spawn
Spawns a new process and optionally attaches for Frida instrumentation, with configurable arguments, environment, working directory, and standard I/O. Resumes automatically unless disabled, enabling immediate hooking.
Instructions
Spawn a new process and optionally attach to it.
Args: program: Path or bundle identifier to spawn. device_id: Target device. Uses default if omitted. auto_resume: Whether to resume the process after attaching. argv: Command-line arguments for the spawned process. env: Environment variables as key-value pairs. cwd: Working directory for the spawned process. stdio: Standard I/O mode — "inherit", "pipe", or "redirect".
Note:
If spawn times out on Android, call frida_fix_usap to disable
the USAP pool and detect root-hiding modules that may interfere
with Frida's spawn interception.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cwd | No | ||
| env | No | ||
| argv | No | ||
| stdio | No | ||
| program | Yes | ||
| device_id | No | ||
| auto_resume | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||