Merge "DO NOT MERGE Crash invalid FGS notifications" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e7da6dd26e
@@ -4848,8 +4848,11 @@ public class NotificationManagerService extends SystemService {
|
|||||||
try {
|
try {
|
||||||
fixNotification(notification, pkg, userId);
|
fixNotification(notification, pkg, userId);
|
||||||
|
|
||||||
} catch (NameNotFoundException e) {
|
} catch (Exception e) {
|
||||||
Slog.e(TAG, "Cannot create a context for sending app", e);
|
if (notification.isForegroundService()) {
|
||||||
|
throw new SecurityException("Invalid FGS notification", e);
|
||||||
|
}
|
||||||
|
Slog.e(TAG, "Cannot fix notification", e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user