android_system_core/bootstat/bootstat.rc
James Hawkins c0188da289 bootstat: Record the time since factory reset on init.
Bug: 25448351
Change-Id: I71905a598e74f41c18a96d469c7a6ddd5a2e07fb
(cherry picked from commit 53684ea625)
2016-02-24 13:19:46 -08:00

20 lines
731 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
# Record the boot reason.
exec - root root -- /system/bin/bootstat --record_boot_reason
# Record time since factory reset.
exec - root root -- /system/bin/bootstat --record_time_since_factory_reset
# Log all boot events.
exec - root root -- /system/bin/bootstat -l