From b24224d9c214daac096da50783490ae6f325d086 Mon Sep 17 00:00:00 2001 From: Wenhao Wang Date: Wed, 27 Jul 2022 22:05:57 -0700 Subject: [PATCH] Detail the REASON_LOCKDOWN docs Bug: 231496716 Test: N/A Ignore-AOSP-First: pending fix for a security issue. Change-Id: I25294c75e3180d177b5e7259e12874ae27437c46 --- .../service/notification/NotificationListenerService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/service/notification/NotificationListenerService.java b/core/java/android/service/notification/NotificationListenerService.java index 02176b0c123e5..fb52ed2b20fae 100644 --- a/core/java/android/service/notification/NotificationListenerService.java +++ b/core/java/android/service/notification/NotificationListenerService.java @@ -261,6 +261,10 @@ public abstract class NotificationListenerService extends Service { /** * Notification was canceled when entering lockdown mode, which turns off * Smart Lock, fingerprint unlocking, and notifications on the lock screen. + * All the listeners shall ensure the canceled notifications are indeed removed + * on their end to prevent data leaking. + * When the user exits the lockdown mode, the removed notifications (due to lockdown) + * will be restored via NotificationListeners#notifyPostedLocked() */ public static final int REASON_LOCKDOWN = 23;