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: I8d7ec64ac89755c14b5959bb6ef0bce203c92bf0
This commit is contained in:
@@ -164,7 +164,7 @@ public class UsageStatsActivity extends ListActivity {
|
||||
intent.putExtra(EXTRA_KEY_TIMEOUT, true);
|
||||
mUsageStatsManager.registerAppUsageObserver(1, packages,
|
||||
60, TimeUnit.SECONDS, PendingIntent.getActivity(UsageStatsActivity.this,
|
||||
1, intent, 0));
|
||||
1, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -198,7 +198,7 @@ public class UsageStatsActivity extends ListActivity {
|
||||
intent.putExtra(EXTRA_KEY_TIMEOUT, true);
|
||||
mUsageStatsManager.registerAppUsageLimitObserver(1, packages,
|
||||
Duration.ofSeconds(60), Duration.ofSeconds(0),
|
||||
PendingIntent.getActivity(UsageStatsActivity.this, 1, intent, 0));
|
||||
PendingIntent.getActivity(UsageStatsActivity.this, 1, intent, PendingIntent.FLAG_MUTABLE_UNAUDITED));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user