Collect suspend and resume info from power manager

Updated the unclean shutdown collector to check and report the
modification times of trace files left by power manager to indicate that
the system was suspended and that it was running on low battery.

These files are interpreted by the unclean shutdown collector to
determine the cause of an unclean shutdown -- either the battery ran
out during suspend or the battery ran out after resuming from a low
battery-induced suspend and it continued to run on battery.

TEST=Let the battery run below the cutoff, suspend & resume, and then
remove the battery to simulate running dry; check crash reporter
logs.  Alternatively/additionally, let it suspend and remove the battery
while suspended.  Restart and check crash reporter logs.

Signed-off-by: Simon Que <>

Change-Id: I8e6767e8457afb7abf1e7300eac020adda1ebb48

Review URL:
3 files changed
tree: eda95d60f1cf5a7d1c331dc99762b9299dcad03c
  1. crash_reporter/