From 7c9c8f52e75daf30ae0cc6130c321769a23e320d Mon Sep 17 00:00:00 2001 From: Martin Stjernholm Date: Thu, 11 May 2023 16:02:30 +0100 Subject: [PATCH] Run art_boot before odsign. It's necessary to have the right dalvik.vm.* flags in place when they are validated by odrefresh. Test: See the other CL in the topic. Bug: 281850017 Ignore-AOSP-First: Will cherry-pick to AOSP later Change-Id: Ib64790dde97faaa6b62ead2c1c8dd53c97f97f9c --- rootdir/init.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 7326783c8..41c60a7f9 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -1024,6 +1024,11 @@ on post-fs-data exec_start derive_classpath load_exports /data/system/environ/classpath + # Start ART's oneshot boot service to propagate boot experiment flags to + # dalvik.vm.*. This needs to be done before odsign since odrefresh uses and + # validates those properties against the signed cache-info.xml. + exec_start art_boot + # Start the on-device signing daemon, and wait for it to finish, to ensure # ART artifacts are generated if needed. # Must start after 'derive_classpath' to have *CLASSPATH variables set.