From fa14d21ca44377f2c70769b6ebb2cc28a65d53d7 Mon Sep 17 00:00:00 2001 From: Wei Wang <wvw@google.com> Date: Wed, 5 Sep 2018 10:12:40 -0700 Subject: [PATCH] Move zygote start after loading persist properties Currently zygote is started before loading persistent properties which stops ART honor experiment flags planned landed as persistent properties. The original motivation is we would like zygote be started as early as possible and loading persistent properties taking time, but after fix of b/64392887 loading persist properties is now only taking 3ms on P18, 6ms on P16 respectively. Bug: 114044733 Test: Boot Change-Id: Ibc118966e975c741ee8ea47091b14d691692bf2c --- rootdir/init.rc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rootdir/init.rc b/rootdir/init.rc index 1c2ef64235..915540eff6 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -306,12 +306,12 @@ on late-init # /data, which in turn can only be loaded when system properties are present. trigger post-fs-data - # Now we can start zygote for devices with file based encryption - trigger zygote-start - # Load persist properties and override properties (if enabled) from /data. trigger load_persist_props_action + # Now we can start zygote for devices with file based encryption + trigger zygote-start + # Remove a file to wake up anything waiting for firmware. trigger firmware_mounts_complete -- GitLab