10f54be6d0
This value is read from the ro.boot.bootreason system property.
Bug: 21724738
Change-Id: I43bef3d85ba9c8d87669a91da1aa675d9a86e348
(cherry picked from commit a4a1a4ac85
)
17 lines
612 B
Text
17 lines
612 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
|
|
|
|
# Log all boot events.
|
|
exec - root root -- /system/bin/bootstat -l
|