Merge "Don't create system fixed, revoked permissions" into qt-dev am: ed225f65b0
am: 260eb1893e
Change-Id: I51f16388fbe6f3f70770243aa11e445c89572ce2
This commit is contained in:
@@ -1173,6 +1173,14 @@ public class PermissionManagerService {
|
||||
}
|
||||
}
|
||||
|
||||
if (hardRestricted && !restrictionExempt
|
||||
&& (flags & FLAG_PERMISSION_SYSTEM_FIXED) != 0) {
|
||||
// Applying a hard restriction implies revoking it. This might
|
||||
// lead to a system-fixed, revoked permission.
|
||||
flags &= ~FLAG_PERMISSION_SYSTEM_FIXED;
|
||||
wasChanged = true;
|
||||
}
|
||||
|
||||
if (wasChanged) {
|
||||
updatedUserIds = ArrayUtils.appendInt(updatedUserIds, userId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user