adb_shell_exec
Execute ADB shell commands and capture output with adjustable delay, combining write and read in one call.
Instructions
Send a command to an ADB shell session and wait for the output. Combines write + delay + read in one call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Buffer clear flag: 1 (default) = clear buffer before collecting, 0 = append to buffer | |
| delay | No | Wait time in milliseconds before reading output (default: 1000) | |
| command | Yes | The command to send to the shell | |
| session_id | Yes | The session ID returned by adb_shell_open |