renef_spawn
Spawn an Android app and inject the Renef agent, using signal-based injection by default or an optional ptrace pause to freeze startup for early deferred hooks.
Instructions
Spawn an Android app and inject the Renef v0.4.0 agent (libagent.so).
Default injection (pause=False) is signal-based (NO ptrace, immune to TracerPid checks).
With pause=True, uses the ptrace spawn gate to freeze the main thread before app code runs
so deferred hooks on not-yet-loaded libraries catch the very first call.
Anti-debug note: pause=True sets TracerPid != 0 while paused. Prefer pause=False against
targets suspected of anti-debug/ptrace checks unless early-hook timing is specifically needed.
Args:
package_name: Android package name (e.g., "com.example.app")
pause: Freeze the app at startup via ptrace spawn gate (default: False)
hold: When pause=True, keep the app frozen across multiple exec/hook calls until
renef_resume() is explicitly called (default: True)
timeout: Spawn & injection timeout in seconds (default: 30.0)
Returns: JSON status with spawned PID and next-step guidance
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>"
},
"name": "renef_spawn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hold | No | ||
| pause | No | ||
| timeout | No | ||
| package_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |