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

Commit 1463bd8a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Crash invalid FGS notifications" into sc-dev am: bf79a4c4

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15223344

Change-Id: I002a4e24c2216ef4601e266630162fbd110f88bc
parents 00ce5656 bf79a4c4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -6194,8 +6194,10 @@ public class NotificationManagerService extends SystemService {
        // Fix the notification as best we can.
        try {
            fixNotification(notification, pkg, tag, id, userId);

        } catch (Exception e) {
            if (notification.isForegroundService()) {
                throw new SecurityException("Invalid FGS notification", e);
            }
            Slog.e(TAG, "Cannot fix notification", e);
            return;
        }