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

Commit ea6e2753 authored by Harshit Mahajan's avatar Harshit Mahajan
Browse files

For now the class would be instantiated in platform itself.

Use the class name directly instead of trying to find the class in jars.
System is unable to find the service while using this string.
We would be reverting this, while moving this service to apex.

Bug: 338468233
Test: Service is started without the flags.
Flag: android.crashrecovery.flags.refactor_crashrecovery
Change-Id: Id16a30adb404ff7bfa13919359c3e6cdf8023399
parent 3a33d422
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -153,6 +153,7 @@ import com.android.server.contentsuggestions.ContentSuggestionsManagerService;
import com.android.server.contextualsearch.ContextualSearchManagerService;
import com.android.server.coverage.CoverageService;
import com.android.server.cpu.CpuMonitorService;
import com.android.server.crashrecovery.CrashRecoveryModule;
import com.android.server.credentials.CredentialManagerService;
import com.android.server.criticalevents.CriticalEventLog;
import com.android.server.devicepolicy.DevicePolicyManagerService;
@@ -381,8 +382,6 @@ public final class SystemServer implements Dumpable {
                    + "OnDevicePersonalizationSystemService$Lifecycle";
    private static final String UPDATABLE_DEVICE_CONFIG_SERVICE_CLASS =
            "com.android.server.deviceconfig.DeviceConfigInit$Lifecycle";
    private static final String CRASHRECOVERY_MODULE_LIFECYCLE_CLASS =
            "com.android.server.crashrecovery.CrashRecoveryModule$Lifecycle";


    /*
@@ -2939,7 +2938,7 @@ public final class SystemServer implements Dumpable {

        if (Flags.refactorCrashrecovery()) {
            t.traceBegin("StartCrashRecoveryModule");
            mSystemServiceManager.startService(CRASHRECOVERY_MODULE_LIFECYCLE_CLASS);
            mSystemServiceManager.startService(CrashRecoveryModule.Lifecycle.class);
            t.traceEnd();
        } else {
            if (Flags.recoverabilityDetection()) {