summaryrefslogtreecommitdiff
path: root/services/java/com/android
diff options
context:
space:
mode:
authorAlan Stokes <alanstokes@google.com>2021-11-17 14:28:43 +0000
committerAlan Stokes <alanstokes@google.com>2021-11-17 15:46:40 +0000
commit212ca4e19c5bb4552194af988d3d92d6ccc6bb12 (patch)
treee35901b178dda52705fa666bb87f2a38f20a9577 /services/java/com/android
parentce80de5db072878cc8e330dc716d411355b48d08 (diff)
Add Isolated Compilation service
Create a skeleton system service which will be used to run Isolated Compilation using a system server classpath fragment in the CompOS APEX. This has no effect if the CompOS APEX is not present (i.e. isolated compilation is not enabled). Bug: 199147668 Test: starts up with CompOS present & not Change-Id: I5ee853cfaf4d9633dd8db348d13e0dfe00bd4dca
Diffstat (limited to 'services/java/com/android')
-rw-r--r--services/java/com/android/server/SystemServer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java
index aca7cc9070b1..c719f4ade0a3 100644
--- a/services/java/com/android/server/SystemServer.java
+++ b/services/java/com/android/server/SystemServer.java
@@ -364,6 +364,8 @@ public final class SystemServer implements Dumpable {
"com.android.server.blob.BlobStoreManagerService";
private static final String APP_SEARCH_MANAGER_SERVICE_CLASS =
"com.android.server.appsearch.AppSearchManagerService";
+ private static final String ISOLATED_COMPILATION_SERVICE_CLASS =
+ "com.android.server.compos.IsolatedCompilationService";
private static final String ROLLBACK_MANAGER_SERVICE_CLASS =
"com.android.server.rollback.RollbackManagerService";
private static final String ALARM_MANAGER_SERVICE_CLASS =
@@ -2651,6 +2653,12 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(APP_SEARCH_MANAGER_SERVICE_CLASS);
t.traceEnd();
+ if (SystemProperties.getBoolean("ro.config.isolated_compilation_enabled", false)) {
+ t.traceBegin("IsolatedCompilationService");
+ mSystemServiceManager.startService(ISOLATED_COMPILATION_SERVICE_CLASS);
+ t.traceEnd();
+ }
+
t.traceBegin("StartMediaCommunicationService");
mSystemServiceManager.startService(MEDIA_COMMUNICATION_SERVICE_CLASS);
t.traceEnd();