OSDN Git Service

PermissionController is now part of the core system.
authorHai Zhang <zhanghai@google.com>
Sat, 2 Feb 2019 00:23:04 +0000 (16:23 -0800)
committerHai Zhang <zhanghai@google.com>
Sat, 2 Feb 2019 00:23:04 +0000 (16:23 -0800)
PermissionController hosts default permission granting and role
management, so it's a critical part of the core system.

Bug: 123647060
Test: manual
Change-Id: I3cc1dc0c385676ab83b516b4d6b6642857b10865

services/core/java/com/android/server/pm/PackageManagerService.java

index 957fc4e..c63dc32 100644 (file)
@@ -3046,7 +3046,6 @@ public class PackageManagerService extends IPackageManager.Stub
                 mSharedSystemSharedLibraryPackageName = getRequiredSharedLibraryLPr(
                         PackageManager.SYSTEM_SHARED_LIBRARY_SHARED,
                         SharedLibraryInfo.VERSION_UNDEFINED);
-                mRequiredPermissionControllerPackage = getRequiredPermissionControllerLPr();
             } else {
                 mRequiredVerifierPackage = null;
                 mRequiredInstallerPackage = null;
@@ -3055,8 +3054,10 @@ public class PackageManagerService extends IPackageManager.Stub
                 mIntentFilterVerifier = null;
                 mServicesSystemSharedLibraryPackageName = null;
                 mSharedSystemSharedLibraryPackageName = null;
-                mRequiredPermissionControllerPackage = null;
             }
+            // PermissionController hosts default permission granting and role management, so it's a
+            // critical part of the core system.
+            mRequiredPermissionControllerPackage = getRequiredPermissionControllerLPr();
 
             // Initialize InstantAppRegistry's Instant App list for all users.
             final int[] userIds = UserManagerService.getInstance().getUserIds();