bootstat.rc revision 7763bcb1b8e9d44c61cd8c23e6d83f3eee29fdc3
1# 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 6# The first marker, boot animation stopped, is considered the point at which 7# the user may interact with the device, so it is a good proxy for the boot 8# complete signal. 9# 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 13 # Record boot_complete timing event. 14 exec - root root -- /system/bin/bootstat -r boot_complete 15 16 # Record the boot reason. 17 exec - root root -- /system/bin/bootstat --record_boot_reason 18 19 # Record time since factory reset. 20 exec - root root -- /system/bin/bootstat --record_time_since_factory_reset 21 22 # Log all boot events. 23 exec - root root -- /system/bin/bootstat -l 24