DO NOT MERGE Fix BAL via notification.publicVersion am: 8d839e4985
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23983543 Change-Id: If2f86d38c7350b8bde1e4a993b55af142cdf292d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3366,8 +3366,11 @@ public class Notification implements Parcelable
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
public void setAllowlistToken(@Nullable IBinder token) {
|
||||
mAllowlistToken = token;
|
||||
public void clearAllowlistToken() {
|
||||
mAllowlistToken = null;
|
||||
if (publicVersion != null) {
|
||||
publicVersion.clearAllowlistToken();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4319,7 +4319,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(),
|
||||
|
||||
Reference in New Issue
Block a user