adb_battery_drain
Measure Android battery drain over a set duration to calculate mA draw, mW consumption, and estimated percentage per hour, helping profile the power impact of specific operations.
Instructions
Measure battery drain rate over a specified duration. Takes initial and final readings and calculates mA draw, mW power consumption, and estimated percentage per hour. Useful for profiling power impact of specific operations.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "adb_battery_drain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial | |
| durationMs | No | Measurement duration in ms (3s-60s, default 10s) | |
| packageName | No | If specified, show battery stats for this package (requires root for detailed stats) |