get_pid
Retrieve the process ID of a running Android application using its package name, enabling subsequent debugging or analysis tasks with Frida.
Instructions
Get PID of a running app by package name. Useful before attaching with connect().
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| package | Yes | App package name (e.g., 'com.spotify.music') | |
| device_id | No | Device ID (optional) |