Device Info¶
Read-only introspection of currently connected devices.
list_connected_devices
¶
List currently connected adb devices, as reported by adb devices -l.
Returns:
| Type | Description |
|---|---|
list[ConnectedDevice]
|
One entry per connected device, in whatever state adb currently reports (including unauthorized or offline devices). Empty list if none are connected. |
Example
Called with no arguments. A typical response:
{
"status": "success",
"message": "list_connected_devices completed successfully.",
"data": [
{"serial": "emulator-5554", "state": "device", "model": "Pixel", "product": "redfin"}
],
"error": null
}