James Hawkins | 6bff639 | 2016-01-21 15:16:36 -0800 | [diff] [blame] | 1 | # This file is the LOCAL_INIT_RC file for the bootstat command. |
| 2 | |
| 3 | on post-fs-data |
| 4 | mkdir /data/misc/bootstat 0700 root root |
| 5 | |
| 6 | # This marker, boot animation stopped, is considered the point at which the |
| 7 | # the user may interact with the device, so it is a good proxy for the boot |
| 8 | # complete signal. |
| 9 | on property:init.svc.bootanim=stopped |
| 10 | # Record boot_complete timing event. |
| 11 | exec - root root -- /system/bin/bootstat -r boot_complete |
| 12 | |
James Hawkins | a4a1a4a | 2016-02-09 15:32:38 -0800 | [diff] [blame] | 13 | # Record the boot reason. |
| 14 | exec - root root -- /system/bin/bootstat --record_boot_reason |
| 15 | |
James Hawkins | 6bff639 | 2016-01-21 15:16:36 -0800 | [diff] [blame] | 16 | # Log all boot events. |
| 17 | exec - root root -- /system/bin/bootstat -l |