Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d45efacb authored by Nate Myren's avatar Nate Myren Committed by Automerger Merge Worker
Browse files

Merge "Remove temp handling of POST_NOTIFICATIONS" into tm-dev am: 65dc0639

parents d47227ef 65dc0639
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2645,12 +2645,9 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt

                    // Cache newImplicitPermissions before modifing permissionsState as for the
                    // shared uids the original and new state are the same object
                    // TODO(205888750): remove the line for LEGACY_REVIEW once propagated through
                    // droidfood
                    if (!origState.hasPermissionState(permName)
                            && (pkg.getImplicitPermissions().contains(permName)
                            || (permName.equals(Manifest.permission.ACTIVITY_RECOGNITION)))
                            || NOTIFICATION_PERMISSIONS.contains(permName)) {
                            || (permName.equals(Manifest.permission.ACTIVITY_RECOGNITION)))) {
                        if (pkg.getImplicitPermissions().contains(permName)) {
                            // If permName is an implicit permission, try to auto-grant
                            newImplicitPermissions.add(permName);