Bulk apply PendingIntent.FLAG_MUTABLE_UNAUDITED.
We've been working hard to require PendingIntents explicitly declare if they allow their contents to be mutated or not, and to finish landing that work this change applies the new FLAG_MUTABLE_UNAUDITED flag to all remaining code locations until they can be manually inspected. Bug: 160794467 Test: manual Change-Id: I7b9ef5dcd35187facef1ec424589b81f834f23c0
This commit is contained in:
@@ -99,7 +99,7 @@ public abstract class EuiccOperationSidecar extends SidecarFragment {
|
||||
Intent intent = new Intent(getReceiverAction());
|
||||
intent.putExtra(EXTRA_OP_ID, mOpId);
|
||||
return PendingIntent.getBroadcast(
|
||||
getContext(), REQUEST_CODE, intent, PendingIntent.FLAG_CANCEL_CURRENT);
|
||||
getContext(), REQUEST_CODE, intent, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_MUTABLE_UNAUDITED);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -173,7 +173,7 @@ public class MobileDataSlice implements CustomSliceable {
|
||||
private PendingIntent getPrimaryAction() {
|
||||
final Intent intent = getIntent();
|
||||
return PendingIntent.getActivity(mContext, 0 /* requestCode */,
|
||||
intent, 0 /* flags */);
|
||||
intent, PendingIntent.FLAG_MUTABLE_UNAUDITED /* flags */);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user