adb_battery_drain
Measure battery drain rate by taking initial and final readings to calculate mA draw, mW power, and percentage per hour. Profile 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.
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 |