blob: 3c20fc8266a5f1171d83bb04a893ccdba85f096d [file] [log] [blame]
James Hawkins6bff6392016-01-21 15:16:36 -08001# This file is the LOCAL_INIT_RC file for the bootstat command.
2
3on post-fs-data
4 mkdir /data/misc/bootstat 0700 root root
5
James Hawkins5e655f02016-03-03 14:36:22 -08006# The first marker, boot animation stopped, is considered the point at which
James Hawkins6bff6392016-01-21 15:16:36 -08007# the user may interact with the device, so it is a good proxy for the boot
8# complete signal.
James Hawkins5e655f02016-03-03 14:36:22 -08009#
10# The second marker ensures an encrypted device is decrypted before logging
11# boot time data.
12on property:init.svc.bootanim=stopped && property:vold.decrypt=trigger_restart_framework
James Hawkins6bff6392016-01-21 15:16:36 -080013 # Record boot_complete timing event.
14 exec - root root -- /system/bin/bootstat -r boot_complete
15
James Hawkinsa4a1a4a2016-02-09 15:32:38 -080016 # Record the boot reason.
17 exec - root root -- /system/bin/bootstat --record_boot_reason
18
James Hawkins53684ea2016-02-23 16:18:19 -080019 # Record time since factory reset.
20 exec - root root -- /system/bin/bootstat --record_time_since_factory_reset
21
James Hawkins6bff6392016-01-21 15:16:36 -080022 # Log all boot events.
23 exec - root root -- /system/bin/bootstat -l