This prevents double-counting boot metrics for encrypted devices. Bug: 27454346 Change-Id: If63dd421e4f91a01b43d730d59896544a26d138a
23 lines
879 B
Text
23 lines
879 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
|
|
|
|
# The first marker, boot animation stopped, is considered the point at which
|
|
# the user may interact with the device, so it is a good proxy for the boot
|
|
# complete signal.
|
|
#
|
|
# The second marker ensures an encrypted device is decrypted before logging
|
|
# boot time data.
|
|
on property:init.svc.bootanim=stopped && property:vold.decrypt=trigger_restart_framework
|
|
# 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
|