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

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

Merge "Crash invalid FGS notifications" into rvc-qpr-dev

parents 83b4fadc 26e9d222
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5823,8 +5823,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;
        }