OSDN Git Service

GID-based permissions are defined by "android".
authorJeff Sharkey <jsharkey@android.com>
Sun, 10 Aug 2014 20:57:45 +0000 (13:57 -0700)
committerJeff Sharkey <jsharkey@android.com>
Sun, 10 Aug 2014 20:58:05 +0000 (13:58 -0700)
This matches all other permissions defined by framework-res.apk,
instead of leaving it null.

Bug: 16907551
Change-Id: I7e2d671443d987906b2f29aa1579bef6380e8a52

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

index 36dec3e..6be6b60 100644 (file)
@@ -1346,7 +1346,7 @@ public class PackageManagerService extends IPackageManager.Stub {
                 SystemConfig.PermissionEntry perm = permConfig.valueAt(i);
                 BasePermission bp = mSettings.mPermissions.get(perm.name);
                 if (bp == null) {
-                    bp = new BasePermission(perm.name, null, BasePermission.TYPE_BUILTIN);
+                    bp = new BasePermission(perm.name, "android", BasePermission.TYPE_BUILTIN);
                     mSettings.mPermissions.put(perm.name, bp);
                 }
                 if (perm.gids != null) {