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

Commit 8356a5c5 authored by George Chan's avatar George Chan Committed by Android (Google) Code Review
Browse files

Merge "Added BackgroundInstallControlManager to system service." into main

parents 72e885eb de153d18
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -1618,6 +1618,19 @@ public final class SystemServiceRegistry {
                        return new ContactKeysManager(ctx);
                    }});

        // DO NOT do a flag check like this unless the flag is read-only.
        // (because this code is executed during preload in zygote.)
        // If the flag is mutable, the check should be inside CachedServiceFetcher.
        if (Flags.bicClient()) {
            registerService(Context.BACKGROUND_INSTALL_CONTROL_SERVICE,
                    BackgroundInstallControlManager.class,
                    new CachedServiceFetcher<BackgroundInstallControlManager>() {
                        @Override
                        public BackgroundInstallControlManager createService(ContextImpl ctx) {
                            return new BackgroundInstallControlManager(ctx);
                        }
                    });
        }
        sInitializing = true;
        try {
            // Note: the following functions need to be @SystemApis, once they become mainline