Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 212ca4e1 authored by Alan Stokes's avatar Alan Stokes
Browse files

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
parent ce80de5d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6252,6 +6252,10 @@
                 android:permission="android.permission.BIND_JOB_SERVICE">
        </service>

        <service android:name="com.android.server.compos.IsolatedCompilationJobService"
                 android:permission="android.permission.BIND_JOB_SERVICE">
        </service>

        <service android:name="com.android.server.PruneInstantAppsJobService"
                 android:permission="android.permission.BIND_JOB_SERVICE" >
        </service>
+8 −0
Original line number Diff line number Diff line
@@ -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();