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

Commit bf79a4c4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Crash invalid FGS notifications" into sc-dev

parents 1dd6f20e 6f657f8f
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;
        }