get_pid
Retrieve the process ID (PID) of a running Android application using its package name, enabling subsequent connection for security testing and analysis.
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) |