diff options
| author | 2023-08-02 22:56:31 +0000 | |
|---|---|---|
| committer | 2023-08-02 22:56:31 +0000 | |
| commit | ba41b02d60a2187df49134cc8be4115057c337dd (patch) | |
| tree | 3f90da0c74833d34a228a7fa90dfea6cf4b75cb8 | |
| parent | 2818ba8c93a6ad55ad58ed7955628aea4dcfa5ae (diff) | |
| parent | 75fcbb37617246c43c2af34b12c9ae4b4043f9ac (diff) | |
Merge "DO NOT MERGE Fix BAL via notification.publicVersion" into rvc-dev
| -rw-r--r-- | core/java/android/app/Notification.java | 7 | ||||
| -rwxr-xr-x | services/core/java/com/android/server/notification/NotificationManagerService.java | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 395cfe1f7b77..fbdd72768400 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -3078,8 +3078,11 @@ public class Notification implements Parcelable * * @hide */ - public void setAllowlistToken(@Nullable IBinder token) { - mWhitelistToken = token; + public void clearAllowlistToken() { + mWhitelistToken = null; + if (publicVersion != null) { + publicVersion.clearAllowlistToken(); + } } /** diff --git a/services/core/java/com/android/server/notification/NotificationManagerService.java b/services/core/java/com/android/server/notification/NotificationManagerService.java index 1c4d69136ece..8626f2277fe8 100755 --- a/services/core/java/com/android/server/notification/NotificationManagerService.java +++ b/services/core/java/com/android/server/notification/NotificationManagerService.java @@ -3942,7 +3942,7 @@ public class NotificationManagerService extends SystemService { // Remove background token before returning notification to untrusted app, this // ensures the app isn't able to perform background operations that are // associated with notification interactions. - notification.setAllowlistToken(null); + notification.clearAllowlistToken(); return new StatusBarNotification( sbn.getPackageName(), sbn.getOpPkg(), |