From 1a3775bbb8c9d50a0ffdd944a2dd3d5fbfc4b262 Mon Sep 17 00:00:00 2001 From: Jiakai Zhang Date: Wed, 15 May 2024 14:20:22 +0000 Subject: [PATCH] Add a system property namespace for Pre-reboot Dexopt. We need to maintain the Pre-reboot Dexopt state across system server crashes and restarts, but not across reboots. System properties are suitable for this use case. The state includes whether the job has run and the OTA slot. Bug: 311377497 Change-Id: I527d4ba6064c1600d97ce2efc8be211b9460a8f0 Test: Presubmit --- private/property_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/private/property_contexts b/private/property_contexts index 8ade1b7c8..81370c0fb 100644 --- a/private/property_contexts +++ b/private/property_contexts @@ -532,6 +532,7 @@ dalvik.vm.image-dex2oat-cpu-set u:object_r:dalvik_dynamic_config_p dalvik.vm.image-dex2oat-threads u:object_r:dalvik_dynamic_config_prop:s0 exact int dalvik.vm.restore-dex2oat-cpu-set u:object_r:dalvik_dynamic_config_prop:s0 exact string dalvik.vm.restore-dex2oat-threads u:object_r:dalvik_dynamic_config_prop:s0 exact int +dalvik.vm.pre-reboot. u:object_r:dalvik_dynamic_config_prop:s0 prefix persist.sys.dalvik.vm.lib.2 u:object_r:dalvik_runtime_prop:s0 exact string