Merge "Don't create system fixed, revoked permissions" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ed225f65b0
@@ -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) {
|
if (wasChanged) {
|
||||||
updatedUserIds = ArrayUtils.appendInt(updatedUserIds, userId);
|
updatedUserIds = ArrayUtils.appendInt(updatedUserIds, userId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user