summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2020-11-03 00:15:54 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-11-03 00:15:54 +0000
commit2c0bf15a21fc7e3e5a30e7c24e31fe3f338dec4a (patch)
tree33ed996dda51aa580b22c539541b0a247fddaab1
parent9fece51be56f6cd1da04083a869fc9c95af57ec6 (diff)
parent4a51385fd9825b33ce345a2beaa0534f39f7e8ce (diff)
Merge "Apply FLAG_IMMUTABLE to the PendingIntent in NetworkStatService.java"
-rw-r--r--services/core/java/com/android/server/net/NetworkStatsService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/net/NetworkStatsService.java b/services/core/java/com/android/server/net/NetworkStatsService.java
index 71e7c8adc5db..12c24d418611 100644
--- a/services/core/java/com/android/server/net/NetworkStatsService.java
+++ b/services/core/java/com/android/server/net/NetworkStatsService.java
@@ -552,7 +552,8 @@ public class NetworkStatsService extends INetworkStatsService.Stub {
// schedule periodic pall alarm based on {@link NetworkStatsSettings#getPollInterval()}.
final PendingIntent pollIntent =
- PendingIntent.getBroadcast(mContext, 0, new Intent(ACTION_NETWORK_STATS_POLL), 0);
+ PendingIntent.getBroadcast(mContext, 0, new Intent(ACTION_NETWORK_STATS_POLL),
+ PendingIntent.FLAG_IMMUTABLE);
final long currentRealtime = SystemClock.elapsedRealtime();
mAlarmManager.setInexactRepeating(AlarmManager.ELAPSED_REALTIME, currentRealtime,