e4079fbdef
FBE devices suffice with bootanim=stopped, but must be gated on ro.crypto.type=file. Bug: 33049941 Test: adb reboot && adb logcat | grep bootstat < Has output Change-Id: I346d47aaf9d1d4b40f05906056849630b922a20d
26 lines
1,011 B
Text
26 lines
1,011 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
|
|
|
|
# Record the time at which the user has successfully entered the pin to decrypt
|
|
# the device, /data is decrypted, and the system is entering the main boot phase.
|
|
#
|
|
# post-fs-data: /data is writable
|
|
# property:init.svc.bootanim=running: The boot animation is running
|
|
on post-fs-data && property:init.svc.bootanim=running
|
|
exec - root root -- /system/bin/bootstat -r post_decrypt_time_elapsed
|
|
|
|
# Record boot complete metrics.
|
|
on property:sys.boot_completed=1
|
|
# Record boot_complete and related stats (decryption, etc).
|
|
exec - root root -- /system/bin/bootstat --record_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
|