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

This commit is contained in:
TreeHugger Robot
2019-05-31 23:17:35 +00:00
committed by Android (Google) Code Review

View File

@@ -1173,7 +1173,7 @@ public class PermissionManagerService {
}
}
if (hardRestricted && !restrictionExempt
if (hardRestricted
&& (flags & FLAG_PERMISSION_SYSTEM_FIXED) != 0) {
// Applying a hard restriction implies revoking it. This might
// lead to a system-fixed, revoked permission.