Fix wrong permission state changed being notified
Permission state changes are being notified even if no change while booting. It just removes wasChanged = true because it never happen. Bug: 285084131 Test: manually tested Change-Id: I9612f65b872a73ddc00db1cc7cd97d063179834b
This commit is contained in:
@@ -2868,9 +2868,7 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt
|
||||
} else if (!permissionPolicyInitialized
|
||||
|| (!hardRestricted || restrictionExempt)) {
|
||||
if ((origPermState != null && origPermState.isGranted())) {
|
||||
if (!uidState.grantPermission(bp)) {
|
||||
wasChanged = true;
|
||||
}
|
||||
uidState.grantPermission(bp);
|
||||
}
|
||||
}
|
||||
if (mIsLeanback && NOTIFICATION_PERMISSIONS.contains(permName)) {
|
||||
|
||||
Reference in New Issue
Block a user