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

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

Do not reset the Notification permission on TV

The permission is automatically granted, and should not be denied.

Bug: 280745713
Test: manual
Change-Id: If83fdb7457d84f3a467feac4bd09dde1552140af
parent d6e28c1d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1747,6 +1747,10 @@ public class PermissionManagerServiceImpl implements PermissionManagerServiceInt

        final String packageName = pkg.getPackageName();
        for (final String permName : pkg.getRequestedPermissions()) {
            if (mIsLeanback && NOTIFICATION_PERMISSIONS.contains(permName)) {
                // Do not reset the Notification permissions on TV
                continue;
            }
            final boolean isRuntimePermission;
            synchronized (mLock) {
                final Permission permission = mRegistry.getPermission(permName);