summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-12 20:32:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-02-12 20:32:33 +0000
commit0903c13ade29e6eedecd198ac54131248a1818f3 (patch)
tree721d505c9b0a37ec57429a290ecac905e8f56fab /rootdir
parent06b308bef0432db53c41b28930a857f6ab3cdcb6 (diff)
parent265df6f50c508710f0b717d67650732baa906976 (diff)
downloadsystem_core-0903c13ade29e6eedecd198ac54131248a1818f3.zip
system_core-0903c13ade29e6eedecd198ac54131248a1818f3.tar.gz
system_core-0903c13ade29e6eedecd198ac54131248a1818f3.tar.bz2
am 265df6f5: Merge "bootchart: fix bootchart can not be triggered problem"
* commit '265df6f50c508710f0b717d67650732baa906976': bootchart: fix bootchart can not be triggered problem
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 26cc121..ce7e0a9 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -233,6 +233,11 @@ on post-fs-data
# We restorecon /data in case the userdata partition has been reset.
restorecon /data
+ # Start bootcharting as soon as possible after the data partition is
+ # mounted to collect more data.
+ mkdir /data/bootchart 0755 shell shell
+ bootchart_init
+
# Avoid predictable entropy pool. Carry over entropy from previous boot.
copy /data/system/entropy.dat /dev/urandom