Enforce persisted snoozed notifications limits
Prevent DoS attack that causes boot-looping by serializing a huge amount of snoozed notifications: - Check snooze limits for persisted notifications - Remove persisted group summary notification when in-memory counterpart is removed - Prevent unpriviledged API calls that allow 3P apps to snooze notifications with context/criterion Test: atest SnoozeHelperTest Test: atest NotificationManagerServiceTest Bug: 307948424 Change-Id: I3571fa9207b778def652130d3ca840183a9a8414
Showing
- services/core/java/com/android/server/notification/SnoozeHelper.java 7 additions, 1 deletion...re/java/com/android/server/notification/SnoozeHelper.java
- services/tests/uiservicestests/src/com/android/server/notification/SnoozeHelperTest.java 96 additions, 2 deletions...src/com/android/server/notification/SnoozeHelperTest.java
Loading
Please register or sign in to comment