spawn_and_attach
Force stop and relaunch Android apps to attach Frida for security testing, avoiding connection timeouts during dynamic analysis.
Instructions
Force stop app, launch fresh, and attach Frida. The reliable alternative to connect(spawn=True) which often times out.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | App package name (e.g., 'com.bestbuy.android') | |
| device_id | No | Device ID (optional) | |
| wait_ms | No | Time to wait for app to start in ms (default: 3000) |