blob: c96e996f59687830bab5ae9c842c75a3f1b27956 [file] [log] [blame]
James Hawkins6bff6392016-01-21 15:16:36 -08001# This file is the LOCAL_INIT_RC file for the bootstat command.
2
3on post-fs-data
4 mkdir /data/misc/bootstat 0700 root root
5
James Hawkinsc08e9962016-03-11 14:59:50 -08006# Record the time at which the user has successfully entered the pin to decrypt
7# the device, /data is decrypted, and the system is entering the main boot phase.
8#
9# post-fs-data: /data is writable
10# property:init.svc.bootanim=running: The boot animation is running
11on post-fs-data && property:init.svc.bootanim=running
12 exec - root root -- /system/bin/bootstat -r post_decrypt_time_elapsed
13
James Hawkinse4079fb2016-12-01 14:02:17 -080014# Record boot complete metrics.
15on property:sys.boot_completed=1
James Hawkinsc08e9962016-03-11 14:59:50 -080016 # Record boot_complete and related stats (decryption, etc).
17 exec - root root -- /system/bin/bootstat --record_boot_complete
James Hawkins6bff6392016-01-21 15:16:36 -080018
James Hawkinsa4a1a4a2016-02-09 15:32:38 -080019 # Record the boot reason.
20 exec - root root -- /system/bin/bootstat --record_boot_reason
21
James Hawkins53684ea2016-02-23 16:18:19 -080022 # Record time since factory reset.
23 exec - root root -- /system/bin/bootstat --record_time_since_factory_reset
24
James Hawkins6bff6392016-01-21 15:16:36 -080025 # Log all boot events.
26 exec - root root -- /system/bin/bootstat -l