Add AdServicesManagerService to system_server_dumper

Test: adb shell dumpsys system_server_dumper --name AdServices
Bug: 280677793

Change-Id: I2da6527977d0188f5cc0616505280720a841d160
This commit is contained in:
Felipe Leme
2023-05-03 16:12:05 -07:00
parent 9abe4e544a
commit df1927d4f5

View File

@@ -735,7 +735,7 @@ public final class SystemServer implements Dumpable {
final String name = args[1];
final Dumpable dumpable = mDumpables.get(name);
if (dumpable == null) {
pw.printf("No dummpable named %s\n", name);
pw.printf("No dumpable named %s\n", name);
return;
}
@@ -2644,7 +2644,11 @@ public final class SystemServer implements Dumpable {
// AdServicesManagerService (PP API service)
t.traceBegin("StartAdServicesManagerService");
mSystemServiceManager.startService(AD_SERVICES_MANAGER_SERVICE_CLASS);
SystemService adServices = mSystemServiceManager
.startService(AD_SERVICES_MANAGER_SERVICE_CLASS);
if (adServices instanceof Dumpable) {
mDumper.addDumpable((Dumpable) adServices);
}
t.traceEnd();
// OnDevicePersonalizationSystemService