Merge "Revert "Reset SYSTEM_FIXED flags for hard restricted perms"" into qt-dev

This commit is contained in:
Philip P. Moltmann
2019-06-03 15:28:21 +00:00
committed by Android (Google) Code Review

View File

@@ -1173,7 +1173,7 @@ public class PermissionManagerService {
}
}
if (hardRestricted
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.