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

Commit 4a29b131 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: I25e9899a17b78894b7f4589ac680c3f81d1d5ba7
parents 6ccbe780 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;
        }