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

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

Merge "DO NOT MERGE Crash invalid FGS notifications" into qt-dev

parents 248bbf2d b6b2906e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4848,8 +4848,11 @@ public class NotificationManagerService extends SystemService {
        try {
            fixNotification(notification, pkg, userId);

        } catch (NameNotFoundException e) {
            Slog.e(TAG, "Cannot create a context for sending app", e);
        } catch (Exception e) {
            if (notification.isForegroundService()) {
                throw new SecurityException("Invalid FGS notification", e);
            }
            Slog.e(TAG, "Cannot fix notification", e);
            return;
        }