Start system service for AdServices.

Test: build (the service is empty)
Bug: 216375107
Change-Id: I6d8212f65e424c08a433e1dad54bf17dd50dba18
This commit is contained in:
Neha Pattan
2022-03-07 21:49:30 +00:00
parent f0d3c47fe6
commit 4b0e5661e8

View File

@@ -422,6 +422,8 @@ public final class SystemServer implements Dumpable {
private static final String SDK_SANDBOX_MANAGER_SERVICE_CLASS =
"com.android.server.sdksandbox.SdkSandboxManagerService$Lifecycle";
private static final String AD_SERVICES_MANAGER_SERVICE_CLASS =
"com.android.server.adservices.AdServicesManagerService$Lifecycle";
private static final String TETHERING_CONNECTOR_CLASS = "android.net.ITetheringConnector";
@@ -2604,6 +2606,11 @@ public final class SystemServer implements Dumpable {
mSystemServiceManager.startService(SDK_SANDBOX_MANAGER_SERVICE_CLASS);
t.traceEnd();
// AdServicesManagerService (PP API service)
t.traceBegin("StartAdServicesManagerService");
mSystemServiceManager.startService(AD_SERVICES_MANAGER_SERVICE_CLASS);
t.traceEnd();
if (safeMode) {
mActivityManagerService.enterSafeMode();
}