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

Commit baf1183d authored by Nate Myren's avatar Nate Myren
Browse files

Remove temp handling of POST_NOTIFICATIONS

I don't think this did anything anymore. It should have been removed a
while back.

Test: atest NotificationPermissionTest
Fixes: 205888750
Change-Id: Ie5f0f7b34f5a036fc8f5e54bc63ddd38360c45e7
parent fe6bf418
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -2636,12 +2636,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);