platform_system_core/bootstat/bootstat.rc
James Hawkins 6bff639c19 bootstat: Hook up bootstat to record the boot complete signal and log
boot events in the LOCAL_INIT_RC file, bootstat.rc.

This change also creates the /data/misc/bootstat dir during the
filesystem creation block in init.rc.

Bug: 21724738
Change-Id: I2ad6913c0235d5f926c6ef8b3c65d650159c6ed7
2016-01-26 11:23:31 -08:00

14 lines
515 B
Text

# This file is the LOCAL_INIT_RC file for the bootstat command.
on post-fs-data
mkdir /data/misc/bootstat 0700 root root
# This marker, boot animation stopped, is considered the point at which the
# the user may interact with the device, so it is a good proxy for the boot
# complete signal.
on property:init.svc.bootanim=stopped
# Record boot_complete timing event.
exec - root root -- /system/bin/bootstat -r boot_complete
# Log all boot events.
exec - root root -- /system/bin/bootstat -l