From 41a5d353ccf96c3e115355c6333bca7657dff29b Mon Sep 17 00:00:00 2001 From: JW Wang Date: Thu, 27 Feb 2020 15:25:09 +0800 Subject: [PATCH] Don't reference RollbackManagerService directly (2/n) This is an effort to modularize RollbackManager. As we move RollbackManagerService to apex/, SystemServer can't reference RollbackManagerService directly. Let's use the class name to start the service. Bug: 150347230 Test: m Change-Id: Ied68ad031f84ea4a416ad779e9ddf4cc912bd7b9 --- services/java/com/android/server/SystemServer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 6998999a666a4..0e67ccdfc82ee 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -145,7 +145,6 @@ import com.android.server.power.ThermalManagerService; import com.android.server.recoverysystem.RecoverySystemService; import com.android.server.restrictions.RestrictionsManagerService; import com.android.server.role.RoleManagerService; -import com.android.server.rollback.RollbackManagerService; import com.android.server.security.FileIntegrityService; import com.android.server.security.KeyAttestationApplicationIdProviderService; import com.android.server.security.KeyChainSystemService; @@ -291,6 +290,8 @@ public final class SystemServer { "com.android.server.blob.BlobStoreManagerService"; private static final String APP_SEARCH_MANAGER_SERVICE_CLASS = "com.android.server.appsearch.AppSearchManagerService"; + private static final String ROLLBACK_MANAGER_SERVICE_CLASS = + "com.android.server.rollback.RollbackManagerService"; private static final String TETHERING_CONNECTOR_CLASS = "android.net.ITetheringConnector"; @@ -961,7 +962,7 @@ public final class SystemServer { // Manages apk rollbacks. t.traceBegin("StartRollbackManagerService"); - mSystemServiceManager.startService(RollbackManagerService.class); + mSystemServiceManager.startService(ROLLBACK_MANAGER_SERVICE_CLASS); t.traceEnd(); // Service to capture bugreports.