Merge "DO NOT MERGE Fix BAL via notification.publicVersion" into sc-dev
This commit is contained in:
@@ -3358,8 +3358,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