RESTRICT AUTOMERGE Validate permission tree size on permission update
Bug: 242537498 Test: manual Change-Id: I15343e84c1802d6b89249106263319a6539fa73b Merged-In: I15343e84c1802d6b89249106263319a6539fa73b
This commit is contained in:
@@ -942,8 +942,8 @@ public class PermissionManagerService {
|
|||||||
BasePermission bp = mSettings.getPermissionLocked(info.name);
|
BasePermission bp = mSettings.getPermissionLocked(info.name);
|
||||||
added = bp == null;
|
added = bp == null;
|
||||||
int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel);
|
int fixedLevel = PermissionInfo.fixProtectionLevel(info.protectionLevel);
|
||||||
|
enforcePermissionCapLocked(info, tree);
|
||||||
if (added) {
|
if (added) {
|
||||||
enforcePermissionCapLocked(info, tree);
|
|
||||||
bp = new BasePermission(info.name, tree.getSourcePackageName(),
|
bp = new BasePermission(info.name, tree.getSourcePackageName(),
|
||||||
BasePermission.TYPE_DYNAMIC);
|
BasePermission.TYPE_DYNAMIC);
|
||||||
} else if (!bp.isDynamic()) {
|
} else if (!bp.isDynamic()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user