From 3745ce7aa84e9007c94cb64ac631f4fa15efe051 Mon Sep 17 00:00:00 2001 From: Wei Wang Date: Wed, 7 Jul 2021 17:46:28 -0700 Subject: [PATCH] task_profiles.json: add taskprofile for dex2oat boot_complete policy Since installation time is also critical and sometime we want a finer control on its behavior for vendor. Instead of set dex2oat to background group, add a new task profile. The default policy is to mirror SP_BACKGROUND to be compatible with legacy devices. Test: Boot Bug: 188947181 Signed-off-by: Wei Wang Change-Id: I7d5e113d1c368205f712eadad27775de226131ce --- libprocessgroup/profiles/task_profiles.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libprocessgroup/profiles/task_profiles.json b/libprocessgroup/profiles/task_profiles.json index b5fa475fa..449a50546 100644 --- a/libprocessgroup/profiles/task_profiles.json +++ b/libprocessgroup/profiles/task_profiles.json @@ -584,7 +584,7 @@ } } ] - }, + } ], "AggregateProfiles": [ @@ -635,6 +635,10 @@ { "Name": "CPUSET_SP_RESTRICTED", "Profiles": [ "ServiceCapacityRestricted", "TimerSlackNormal" ] + }, + { + "Name": "Dex2OatBootComplete", + "Profiles": [ "SCHED_SP_BACKGROUND" ] } ] }