Merge "Crash invalid FGS notifications" into rvc-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
e91ae52a85
@@ -5823,8 +5823,10 @@ public class NotificationManagerService extends SystemService {
|
|||||||
// Fix the notification as best we can.
|
// Fix the notification as best we can.
|
||||||
try {
|
try {
|
||||||
fixNotification(notification, pkg, tag, id, userId);
|
fixNotification(notification, pkg, tag, id, userId);
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
if (notification.isForegroundService()) {
|
||||||
|
throw new SecurityException("Invalid FGS notification", e);
|
||||||
|
}
|
||||||
Slog.e(TAG, "Cannot fix notification", e);
|
Slog.e(TAG, "Cannot fix notification", e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user