diff options
author | James Hawkins <jhawkins@google.com> | 2016-12-01 14:02:17 -0800 |
---|---|---|
committer | James Hawkins <jhawkins@google.com> | 2016-12-01 14:02:17 -0800 |
commit | e4079fbdefac654f84b091335cc67fd89d79841c (patch) | |
tree | 32393ec4afa96b6861ddd7e5b4de644966ea078c /bootstat | |
parent | de07029ad07cc9f1da6fecdb8d81d039f7d1a8f5 (diff) | |
download | system_core-e4079fbdefac654f84b091335cc67fd89d79841c.tar.gz system_core-e4079fbdefac654f84b091335cc67fd89d79841c.tar.bz2 system_core-e4079fbdefac654f84b091335cc67fd89d79841c.zip |
bootstat: Fix the boot complete signal for FBE devices.
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
Diffstat (limited to 'bootstat')
-rw-r--r-- | bootstat/bootstat.rc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bootstat/bootstat.rc b/bootstat/bootstat.rc index ba8f81c9d..c96e996f5 100644 --- a/bootstat/bootstat.rc +++ b/bootstat/bootstat.rc @@ -11,13 +11,8 @@ on post-fs-data on post-fs-data && property:init.svc.bootanim=running exec - root root -- /system/bin/bootstat -r post_decrypt_time_elapsed -# 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 metrics. +on property:sys.boot_completed=1 # Record boot_complete and related stats (decryption, etc). exec - root root -- /system/bin/bootstat --record_boot_complete |