adb_battery_drain
Measure battery drain rate over a specified duration to profile power impact of operations, calculating mA draw, mW consumption, and estimated percentage per hour.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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) | |
| device | No | Device serial |