summaryrefslogtreecommitdiffstats
path: root/services/core
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2015-09-08 22:02:37 +0900
committerLorenzo Colitti <lorenzo@google.com>2015-09-09 00:16:57 +0900
commitb9884663124b609a5cb093fc4a8a8a3b9a8d308d (patch)
tree0df90dc78e157288ad73b635668c8782022ba005 /services/core
parent9d1284eba79d8c0ffebf5387fad3e4a8889b38e1 (diff)
downloadframeworks_base-b9884663124b609a5cb093fc4a8a8a3b9a8d308d.zip
frameworks_base-b9884663124b609a5cb093fc4a8a8a3b9a8d308d.tar.gz
frameworks_base-b9884663124b609a5cb093fc4a8a8a3b9a8d308d.tar.bz2
Require the new PACKET_KEEPALIVE_OFFLOAD permission.
Bug: 23884210 Change-Id: I50a1a647a69deaba92e73021ee7d6cc0f3eb1eee
Diffstat (limited to 'services/core')
-rw-r--r--services/core/java/com/android/server/connectivity/KeepaliveTracker.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/connectivity/KeepaliveTracker.java b/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
index 25ebf66..90c9ddf 100644
--- a/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
+++ b/services/core/java/com/android/server/connectivity/KeepaliveTracker.java
@@ -62,8 +62,7 @@ public class KeepaliveTracker {
private static final String TAG = "KeepaliveTracker";
private static final boolean DBG = true;
- // TODO: Change this to a system-only permission.
- public static final String PERMISSION = android.Manifest.permission.CHANGE_NETWORK_STATE;
+ public static final String PERMISSION = android.Manifest.permission.PACKET_KEEPALIVE_OFFLOAD;
/** Keeps track of keepalive requests. */
private final HashMap <NetworkAgentInfo, HashMap<Integer, KeepaliveInfo>> mKeepalives =