Merge "Revert "Remove REVIEW_REQUIRED from droidfooder phones"" into tm-dev

This commit is contained in:
Nate Myren
2022-05-04 20:42:48 +00:00
committed by Android (Google) Code Review

View File

@@ -2816,14 +2816,12 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
} }
// Remove review flag as it is not necessary anymore // Remove review flag as it is not necessary anymore
// TODO(b/227186603) re-enable check for notification permission once if (!NOTIFICATION_PERMISSIONS.contains(perm)) {
// droidfood state has been cleared
//if (!NOTIFICATION_PERMISSIONS.contains(perm)) {
if ((flags & FLAG_PERMISSION_REVIEW_REQUIRED) != 0) { if ((flags & FLAG_PERMISSION_REVIEW_REQUIRED) != 0) {
flags &= ~FLAG_PERMISSION_REVIEW_REQUIRED; flags &= ~FLAG_PERMISSION_REVIEW_REQUIRED;
wasChanged = true; wasChanged = true;
} }
//} }
if ((flags & FLAG_PERMISSION_REVOKED_COMPAT) != 0 if ((flags & FLAG_PERMISSION_REVOKED_COMPAT) != 0
&& !isPermissionSplitFromNonRuntime(permName, && !isPermissionSplitFromNonRuntime(permName,