diff options
author | James Hawkins <jhawkins@google.com> | 2016-03-03 14:36:22 -0800 |
---|---|---|
committer | James Hawkins <jhawkins@google.com> | 2016-03-03 14:40:29 -0800 |
commit | 5e655f02c5e772447254d68a5b299a625399f3cb (patch) | |
tree | 50cf311ea67e624879b2b3231fa42248e9ee42dd /bootstat | |
parent | ad5dc479cd8333da389fab6d8e270bf6e7428151 (diff) | |
download | core-5e655f02c5e772447254d68a5b299a625399f3cb.tar.gz core-5e655f02c5e772447254d68a5b299a625399f3cb.tar.bz2 core-5e655f02c5e772447254d68a5b299a625399f3cb.zip |
bootstat: Gate boot time metrics logging on an encrypted device being decrypted.
This prevents double-counting boot metrics for encrypted devices.
Bug: 27454346
Change-Id: If63dd421e4f91a01b43d730d59896544a26d138a
Diffstat (limited to 'bootstat')
-rw-r--r-- | bootstat/bootstat.rc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bootstat/bootstat.rc b/bootstat/bootstat.rc index 13ef27ea0..3c20fc826 100644 --- a/bootstat/bootstat.rc +++ b/bootstat/bootstat.rc @@ -3,10 +3,13 @@ on post-fs-data mkdir /data/misc/bootstat 0700 root root -# This marker, boot animation stopped, is considered the point at which the +# 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. -on property:init.svc.bootanim=stopped +# +# 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 |