DO NOT MERGE Fix BAL via notification.publicVersion am: 1896c2e706
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23982977 Change-Id: Id0430dff987b92b7e0b26cc3bd827f044c8c59b4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -3413,8 +3413,11 @@ public class Notification implements Parcelable
|
|||||||
*
|
*
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public void setAllowlistToken(@Nullable IBinder token) {
|
public void clearAllowlistToken() {
|
||||||
mAllowlistToken = token;
|
mAllowlistToken = null;
|
||||||
|
if (publicVersion != null) {
|
||||||
|
publicVersion.clearAllowlistToken();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -4341,7 +4341,7 @@ public class NotificationManagerService extends SystemService {
|
|||||||
// Remove background token before returning notification to untrusted app, this
|
// Remove background token before returning notification to untrusted app, this
|
||||||
// ensures the app isn't able to perform background operations that are
|
// ensures the app isn't able to perform background operations that are
|
||||||
// associated with notification interactions.
|
// associated with notification interactions.
|
||||||
notification.setAllowlistToken(null);
|
notification.clearAllowlistToken();
|
||||||
return new StatusBarNotification(
|
return new StatusBarNotification(
|
||||||
sbn.getPackageName(),
|
sbn.getPackageName(),
|
||||||
sbn.getOpPkg(),
|
sbn.getOpPkg(),
|
||||||
|
|||||||
Reference in New Issue
Block a user