Init BackgroundInstallControlService

The BackgroundInstallControlService monitors background installed apps.
It can provide the list of those apps to the service clients via binder.
See the following desgin doc and PRD for more details.
go/bg-install-control
go/BIC-prd

Bug: 244216300
Test: manual test (verify the binder service is published)
Change-Id: Ic45770061c1291ef3e650337514fca99e0c683b8
This commit is contained in:
Wenhao Wang
2022-10-17 09:57:34 -07:00
parent 2d78b627df
commit 7843bbb2f0
4 changed files with 170 additions and 0 deletions

View File

@@ -154,6 +154,7 @@ import com.android.server.os.SchedulingPolicyService;
import com.android.server.people.PeopleService;
import com.android.server.pm.ApexManager;
import com.android.server.pm.ApexSystemServiceInfo;
import com.android.server.pm.BackgroundInstallControlService;
import com.android.server.pm.CrossProfileAppsService;
import com.android.server.pm.DataLoaderManagerService;
import com.android.server.pm.DynamicCodeLoggingService;
@@ -2469,6 +2470,10 @@ public final class SystemServer implements Dumpable {
t.traceBegin("StartMediaMetricsManager");
mSystemServiceManager.startService(MediaMetricsManagerService.class);
t.traceEnd();
t.traceBegin("StartBackgroundInstallControlService");
mSystemServiceManager.startService(BackgroundInstallControlService.class);
t.traceEnd();
}
t.traceBegin("StartMediaProjectionManager");