Loading services/core/java/com/android/server/notification/NotificationManagerService.java +26 −24 Original line number Diff line number Diff line Loading @@ -6674,6 +6674,7 @@ public class NotificationManagerService extends SystemService { // package or a registered listener can enqueue. Prevents DOS attacks and deals with leaks. if (!isSystemNotification && !isNotificationFromListener) { final int callingUid = Binder.getCallingUid(); synchronized (mNotificationLock) { if (mNotificationsByKey.get(r.getSbn().getKey()) == null && isCallerInstantApp(callingUid, userId)) { // Ephemeral apps have some special constraints for notifications. Loading Loading @@ -6701,6 +6702,7 @@ public class NotificationManagerService extends SystemService { return false; } } } // limit the number of non-fgs outstanding notificationrecords an app can have if (!n.isForegroundService()) { Loading Loading
services/core/java/com/android/server/notification/NotificationManagerService.java +26 −24 Original line number Diff line number Diff line Loading @@ -6674,6 +6674,7 @@ public class NotificationManagerService extends SystemService { // package or a registered listener can enqueue. Prevents DOS attacks and deals with leaks. if (!isSystemNotification && !isNotificationFromListener) { final int callingUid = Binder.getCallingUid(); synchronized (mNotificationLock) { if (mNotificationsByKey.get(r.getSbn().getKey()) == null && isCallerInstantApp(callingUid, userId)) { // Ephemeral apps have some special constraints for notifications. Loading Loading @@ -6701,6 +6702,7 @@ public class NotificationManagerService extends SystemService { return false; } } } // limit the number of non-fgs outstanding notificationrecords an app can have if (!n.isForegroundService()) { Loading