BatteryStats and Wakelock Debugging
Battery Historian popularized the right mental model: inspect events over time. Wakelocks, jobs, syncs, screen state and radio activity matter because they explain why the device stayed active.
Use BatteryStats, not guesswork
dumpsys batterystats exposes per-UID wake locks and machine-readable checkin records. Long partial wake locks are strong leads when they overlap screen-off periods and no useful work should be running.
adb shell dumpsys batterystatsadb shell dumpsys batterystats --checkinInterpret duration against the observation window
Five minutes of wake lock in a five-minute active test is normal; five minutes in an otherwise idle screen-off window may not be. Always state the collection window and workload.
Correlate wakeups with work
Group wake reasons with jobs, syncs, alarms, network/radio use and foreground transitions. Repeated short bursts can be more damaging to standby than one expected foreground session.